chiark / gitweb /
Ian Jackson [Fri, 6 Oct 2017 18:04:03 +0000 (19:04 +0100)]
fishdescriptor: Utility for RTLD_NOW
Actually we don't want to do this. It is better to use the python dl
or os modules, so we will do that in a moment.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Fri, 6 Oct 2017 18:03:25 +0000 (19:03 +0100)]
fishdescriptor: work on python code
Still very incomplete
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Thu, 5 Oct 2017 17:06:23 +0000 (18:06 +0100)]
fishdescriptor: .so can be loaded
(gdb) print (void*)dlopen("/u/iwj/things/chiark-utils.git/fishdescriptor/libfishdescriptor-donate.so.1.0",2)
$5 = (void *) 0x8f0d408
(gdb) print (void*)dlsym($5, "fishdescriptor_donate")
$6 = (void *) 0xf6953620 <fishdescriptor_donate>
(gdb) print (( int (*)(const char *, const int *) )$6)("/dev/enoent", (int[2]){0,-1})
$7 = 2
(gdb) print strerror(2)
$8 = 0xf74697e8 "No such file or directory"
(gdb)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Thu, 5 Oct 2017 16:21:11 +0000 (17:21 +0100)]
fishdescriptor: donate: some bugfixes
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Thu, 5 Oct 2017 16:10:00 +0000 (17:10 +0100)]
fishdescriptor: More work, before trying to compile it
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Thu, 5 Oct 2017 15:25:41 +0000 (16:25 +0100)]
fishdescriptor: reorganise to my taste
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Wed, 4 Oct 2017 13:48:13 +0000 (14:48 +0100)]
fishdescriptor: Upgrade licence of code from libxl
See LGPL-2.1 s3. This is necessary to preserve the copyright and
licence status of chiark-utils as a whole.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Wed, 4 Oct 2017 13:38:56 +0000 (14:38 +0100)]
fishdescriptor: Copy fd passing C sender code from libxl
Copy int libxl__sendmsg_fds from libxl so we can clone and hack it.
Source was:
xen.git#
38ab259f559be5457f6866ba24185e013f27defb
tools/libxl/libxl_utils.c
libxl is LGPL2.1-only. We will upgrade this licence to be compatible
with the rest of chiark utils (GPL3+) in a moment. This is permitted
by LGPL-2.1 section 3.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Mon, 8 May 2017 16:26:49 +0000 (17:26 +0100)]
changelog: start ~iwj again
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Mon, 8 May 2017 16:22:04 +0000 (17:22 +0100)]
changelog: finalise 5.0.3~citrix2
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Mon, 8 May 2017 16:21:12 +0000 (17:21 +0100)]
git-cache-proxy: Radically increase several timeouts.
Experience in the Xen Project Massachusetts test lab shows that these
are too low.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Mon, 8 May 2017 16:20:39 +0000 (17:20 +0100)]
git-cache-proxy: New --serve-timeout option.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Wed, 3 May 2017 20:39:59 +0000 (21:39 +0100)]
changelog: Document -t option
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Matthew Vernon [Wed, 3 May 2017 13:30:02 +0000 (14:30 +0100)]
with-lock-ex: Provide -t (timeout) option
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
---
v4: Initial capital and final full-stop on sentences
Remove code that attempted to reduce post-lock timeout race
Move timer clearing to outside the retry loop
v3: split off from conversion to getopt
Matthew Vernon [Wed, 3 May 2017 13:30:02 +0000 (14:30 +0100)]
with-lock-ex: Replace ad-hoc option parser with getopt.
Also, fix typo in usage message (missing -ex).
Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
---
v5: Fix commit message.
v4: make coding style consistent
fix typo in usage message (missing -ex)
v3: split off from timeout patch
add copyright notice
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Wed, 3 May 2017 13:51:20 +0000 (14:51 +0100)]
with-lock-ex: Convert to MIT
Since the PD dedication is not effective in some jurisdictions.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Wed, 3 May 2017 13:50:00 +0000 (14:50 +0100)]
Add DEVELOPER-CERTIFICATE file and start using S-o-b practice.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Wed, 3 May 2017 13:28:44 +0000 (14:28 +0100)]
changelog: start new entry
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Wed, 26 Apr 2017 12:04:19 +0000 (13:04 +0100)]
changelog: finalise 5.0.3~citrix1
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Wed, 26 Apr 2017 12:03:14 +0000 (13:03 +0100)]
Merge remote-tracking branch 'mariner/master'
Ian Jackson [Wed, 26 Apr 2017 11:56:14 +0000 (12:56 +0100)]
changelog: finalise 5.0.1~citrix1
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Wed, 26 Apr 2017 11:09:33 +0000 (12:09 +0100)]
git-cache-proxy: Add Citrix to copyright notices
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Wed, 26 Apr 2017 11:08:22 +0000 (12:08 +0100)]
git-cache-proxy: Do not spuriously timeout on too many simultaneous invocations
Specifically, do not timeout when reacquiring the lock before serving.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Mon, 23 Jan 2017 18:13:05 +0000 (18:13 +0000)]
Portability fix: Fix on libcs where st_mtime is not a macro (ie, ones lacking st_mtim.)
Ian Jackson [Mon, 23 Jan 2017 17:54:05 +0000 (17:54 +0000)]
finalise 5.0.1
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Wed, 16 Nov 2016 15:21:51 +0000 (15:21 +0000)]
with-lock-ex: provide -l
Ian Jackson [Wed, 16 Nov 2016 15:20:19 +0000 (15:20 +0000)]
changelog: start 5.0.1~
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 13:48:50 +0000 (13:48 +0000)]
changelog: finalise 5.0.0
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 13:30:50 +0000 (13:30 +0000)]
xduplic-copier: Use XkbKeycodeToKeysym instead of XKeycodeToKeysym.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 13:29:11 +0000 (13:29 +0000)]
xduplic-copier: Print error message, rather than segfaulting, if XOpenDisplay fails.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 13:24:13 +0000 (13:24 +0000)]
xduplic-copier: Drop obsolete variable "ts_last".
ad24e88eee84 (from cvs) "abolish daft stream burst thing" left this
now-unused variable behind.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 12:52:54 +0000 (12:52 +0000)]
rules: Drop seddery for libgmp3c2 C++ ABI transition.
c1372c51e9a4 (was from CVS) "better treatment of dependencies" says
* seddery libgmp3 dependencies to libgmp3 | libgmp3c2 since
we are C and not C++ and care nothing for C++ ABI transitions.
That was in 2007. We do not need this any more. Current libgmp is
libgmp10.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 12:39:28 +0000 (12:39 +0000)]
Fix build repro by using gzip -n. Closes:#777300. (Chris Lamb.)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 12:32:08 +0000 (12:32 +0000)]
Fix tiny typo in long description. Closes:#819746. (Luke Faraone.)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 12:29:21 +0000 (12:29 +0000)]
changelog: Mention cgi-fcgi-interp argv fix
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 12:07:15 +0000 (12:07 +0000)]
cvs-adjustroot: reinvoke oursevles via "$0" rather than our hardcoded name. Makes testing easier, etc.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 12:06:33 +0000 (12:06 +0000)]
cvs-adjustroot: silently succeed for */CVS/Root entries which already match the new value. Closes:#839708 (second half).
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 11:56:19 +0000 (11:56 +0000)]
cvs-adjustroot: properly exit nonzero in case of error. Fixes the first half of #839708.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 11:33:50 +0000 (11:33 +0000)]
changelog: Mention that rebuild will close #811216
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 11:28:54 +0000 (11:28 +0000)]
nntpid: install in /usr/bin. Closes:#773651.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 11:28:10 +0000 (11:28 +0000)]
nntpid: Chiark::NNTP: spot if cat /etc/nntpserver fails
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 5 Nov 2016 11:27:50 +0000 (11:27 +0000)]
nntpid: Rename ChiarkNNTP to Chiark::NNTP
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Tony Finch [Fri, 7 Oct 2016 12:57:57 +0000 (13:57 +0100)]
cgi-fcgi-interp: support CGI command line arguments
If the QUERY_STRING does not contain an = then it is also passed
on the command line.
See https://tools.ietf.org/html/rfc3875#section-4.4
Ian Jackson [Sat, 5 Nov 2016 12:23:58 +0000 (12:23 +0000)]
cgi-fcgi-interp: correct the copyright header rubric.
Reported-by: Tony Finch <dot@dotat.at>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Tue, 26 Apr 2016 23:35:33 +0000 (00:35 +0100)]
debian/changelog: finalise 4.5.0~iwj4
Ian Jackson [Tue, 26 Apr 2016 23:34:27 +0000 (00:34 +0100)]
Backup: Honour CHIARK_BACKUP_SHAREDIR in snap/lvm script.
Ian Jackson [Tue, 26 Apr 2016 23:33:14 +0000 (00:33 +0100)]
Backup: Add daft_sleep calls to snapshot code.
Nowadays udev (and other things) tend to randomly open new block
devices, and cause other kinds of trouble. Bodge around this by
adding some sleeps.
Empirically tested on old-zealot.
Ian Jackson [Tue, 26 Apr 2016 23:29:15 +0000 (00:29 +0100)]
Backup: No longer attempt to lvchange -a n the snapshot volume.
With modern LVM this would deactivate the source volume too. So
instead it stops and prompts. It's not necessary anyway given that we
are passing -f to lvremove.
Ian Jackson [Tue, 26 Apr 2016 23:23:00 +0000 (00:23 +0100)]
Add debian/.debhelper to .gitignore.
Ian Jackson [Mon, 25 Apr 2016 01:45:49 +0000 (02:45 +0100)]
cgi-fcgi-interp: Fix logger buffer-handling bugs.
Ian Jackson [Wed, 30 Mar 2016 01:25:51 +0000 (02:25 +0100)]
cgi-fcgi-perl: wip new stderr logging, does not work properly right now
Ian Jackson [Wed, 30 Mar 2016 00:20:18 +0000 (01:20 +0100)]
cgi-fcgi-interp: Send our own stage2 messages to syslog
And (sadly), provide the actual interpreter with /dev/null as stderr.
This is necessary because the caller expects us to behave like a
proper cgi script and close our stderr. So we do that (as late as we
can).
Ian Jackson [Wed, 30 Mar 2016 00:03:19 +0000 (01:03 +0100)]
cgi-fcgi-interp: Constify stage2
Ian Jackson [Wed, 30 Mar 2016 00:02:24 +0000 (01:02 +0100)]
cgi-fcgi-interp: Remove use of err.h (preparation for syslog)
Ian Jackson [Tue, 29 Mar 2016 23:40:57 +0000 (00:40 +0100)]
cgi-fcgi-interp: Demote its dependencies to Recommends.
Ian Jackson [Tue, 29 Mar 2016 23:02:39 +0000 (00:02 +0100)]
cgi-fcgi-interp: Actually get run in ~ right
Ian Jackson [Tue, 29 Mar 2016 22:54:56 +0000 (23:54 +0100)]
cgi-fcgi-interp: Provide -E option.
Ian Jackson [Tue, 29 Mar 2016 22:48:57 +0000 (23:48 +0100)]
cgi-fcgi-interp: Provide -G option.
Ian Jackson [Tue, 29 Mar 2016 22:47:42 +0000 (23:47 +0100)]
cgi-fcgi-interp: Reformat option table (nfc)
Ian Jackson [Tue, 29 Mar 2016 22:45:14 +0000 (23:45 +0100)]
cgi-fcgi-interp: Make ident_sc global, and introduce ident_addstring (nfc)
Ian Jackson [Tue, 29 Mar 2016 22:39:04 +0000 (23:39 +0100)]
cgi-fcgi-interp: Document accurately the default ident
Ian Jackson [Tue, 29 Mar 2016 22:09:49 +0000 (23:09 +0100)]
cgi-fcgi-interp: mkdir ~/.cgi-fcgi-interp if necessary.
Ian Jackson [Tue, 29 Mar 2016 21:55:15 +0000 (22:55 +0100)]
Finalise changelog for 4.5.0~iwj1
Ian Jackson [Tue, 29 Mar 2016 21:53:52 +0000 (22:53 +0100)]
Drop a lot of -l options from xduplic-copier.
This gets rid of a lot of these:
dpkg-shlibdeps: warning: package could avoid a useless dependency if /home/ian/things/Chiark-utils/chiark-utils.git/debian/tmp/chiark-utils-bin/usr/bin/xduplic-copier was not linked against libXt.so.6 (it uses none of the library's symbols)
On platforms without shared library support, it may be necessary to
edit the Makefile to put them back.
Ian Jackson [Tue, 29 Mar 2016 21:52:02 +0000 (22:52 +0100)]
cgi-fcgi-interp: Drop pointless linking -lgmp
Ian Jackson [Tue, 29 Mar 2016 21:49:41 +0000 (22:49 +0100)]
Drop `-isp' from dpkg-gencontrol invocation.
Ian Jackson [Tue, 29 Mar 2016 21:49:37 +0000 (22:49 +0100)]
Fix .gitignore for new .txts
Ian Jackson [Tue, 29 Mar 2016 21:47:06 +0000 (22:47 +0100)]
Provide more .txt `docs' (xbatmon-simple.txt, rcopy-repeatedly.txt).
Ian Jackson [Tue, 29 Mar 2016 21:46:30 +0000 (22:46 +0100)]
Install manpage summer(1).
Ian Jackson [Tue, 29 Mar 2016 21:41:43 +0000 (22:41 +0100)]
cprogs: Generalise watershed.txt doc generation
Ian Jackson [Tue, 29 Mar 2016 21:39:44 +0000 (22:39 +0100)]
Packaging: Include git-branchmove and cgi-fcgi-interp, add to changelog
Ian Jackson [Tue, 29 Mar 2016 20:26:28 +0000 (21:26 +0100)]
cgi-fcgi-interp: test script prints pids etc.
Ian Jackson [Tue, 29 Mar 2016 20:26:09 +0000 (21:26 +0100)]
cgi-fcgi-interp: actually pass numservers
Ian Jackson [Tue, 29 Mar 2016 20:20:42 +0000 (21:20 +0100)]
cgi-fcgi-interp: Fixes from tests. Seems to mostly work.
Ian Jackson [Tue, 29 Mar 2016 20:20:20 +0000 (21:20 +0100)]
cgi-fcgi-interp: Test program does more useful things
Ian Jackson [Tue, 29 Mar 2016 19:05:48 +0000 (20:05 +0100)]
cgi-fcgi-interp: Fix a typo
Ian Jackson [Tue, 29 Mar 2016 18:45:59 +0000 (19:45 +0100)]
cgi-fcgi-interp: wip test program
Ian Jackson [Tue, 29 Mar 2016 18:33:08 +0000 (19:33 +0100)]
Revert "cgi-fcgi-interp: Temporarily disable compilation"
It compiles again now.
This reverts commit
0365afd4f10e79e06784bd33193ecd2d0a0d1d3e.
Ian Jackson [Tue, 29 Mar 2016 18:29:30 +0000 (19:29 +0100)]
cgi-fcgi-interp: new garbage collection approach, compiles
Ian Jackson [Tue, 29 Mar 2016 18:25:28 +0000 (19:25 +0100)]
cgi-fcgi-interp: new garbage collection approach, wip compile
Ian Jackson [Tue, 29 Mar 2016 18:19:58 +0000 (19:19 +0100)]
cgi-fcgi-interp: new garbage collection approach, wip compile
Ian Jackson [Tue, 29 Mar 2016 17:35:44 +0000 (18:35 +0100)]
cgi-fcgi-interp: new garbage collection approach, wip compile
Ian Jackson [Tue, 29 Mar 2016 17:30:29 +0000 (18:30 +0100)]
cgi-fcgi-interp: new garbage collection approach, wip implementation
Ian Jackson [Fri, 25 Mar 2016 00:58:21 +0000 (00:58 +0000)]
cgi-fcgi-interp: new garbage collection approach, wip implementation
Ian Jackson [Fri, 25 Mar 2016 00:58:16 +0000 (00:58 +0000)]
cgi-fcgi-interp: new garbage collection approach, spec (more)
Ian Jackson [Thu, 24 Mar 2016 22:03:16 +0000 (22:03 +0000)]
cgi-fcgi-interp: new garbage collection approach, wip implementation
Ian Jackson [Thu, 24 Mar 2016 22:03:07 +0000 (22:03 +0000)]
cgi-fcgi-interp: new garbage collection approach, spec (more)
Ian Jackson [Thu, 24 Mar 2016 21:46:09 +0000 (21:46 +0000)]
cgi-fcgi-interp: new garbage collection approach, spec
Ian Jackson [Thu, 24 Mar 2016 19:30:15 +0000 (19:30 +0000)]
cgi-fcgi-interp: wip garbage collection, before new pidfile-based approach
Ian Jackson [Wed, 23 Mar 2016 18:36:12 +0000 (18:36 +0000)]
cgi-fcgi-interp: wip garbage collection
Ian Jackson [Tue, 29 Mar 2016 18:30:40 +0000 (19:30 +0100)]
cgi-fcgi-interp: Temporarily disable compilation
We are going to break it; keep bisectability for the rest of cprogs.
Ian Jackson [Wed, 23 Mar 2016 18:27:46 +0000 (18:27 +0000)]
cgi-fcgi-interp: Implement stab_isnewer properly
Ian Jackson [Wed, 23 Mar 2016 18:25:23 +0000 (18:25 +0000)]
cgi-fcgi-interp: Import timespeccmp from FreeBSD
Ian Jackson [Wed, 23 Mar 2016 18:22:53 +0000 (18:22 +0000)]
cgi-fcgi-interp: wip check_garbage
Ian Jackson [Wed, 23 Mar 2016 18:22:07 +0000 (18:22 +0000)]
cgi-fcgi-interp: copyright notice
Ian Jackson [Wed, 23 Mar 2016 18:03:31 +0000 (18:03 +0000)]
cgi-fcgi-interp: Rename "command" to "script" throughout
Ian Jackson [Tue, 22 Mar 2016 14:26:42 +0000 (14:26 +0000)]
cgi-fcgi-interp: Do not eat an option in squashed arg style
Ian Jackson [Tue, 22 Mar 2016 14:26:29 +0000 (14:26 +0000)]
cgi-fcgi-interp: Add -D
Ian Jackson [Tue, 22 Mar 2016 14:23:41 +0000 (14:23 +0000)]
cgi-fcgi-interp: fix -M to actually work
Ian Jackson [Tue, 22 Mar 2016 14:06:44 +0000 (14:06 +0000)]
cgi-fcgi-interp: Rename from cgi-fcgi-perl, and adjust arg handling