Commit graph

138 commits

Author SHA1 Message Date
jperkin
2a79e209d9 pbulk-base-0.48: Fix pbulk-scan on OSX.
On OSX pbulk-scan can fail to bind with EADDRNOTAVAIL due to sin_zero being
used uninitialised.  Ensure the sockaddr_in is cleared before use.
2014-03-14 09:45:31 +00:00
obache
f90ef806cd Note "used by" 2014-03-03 04:38:43 +00:00
obache
7f2a37cb1a Just define PKGNAME and use it. 2014-03-03 03:30:52 +00:00
jperkin
ed7b64bf1f pbulk-0.52: ensure sort(1) is called with LC_ALL=C
Without this, a LANG of e.g. en_US.UTF-8 would sort "- *" before "+ <file>",
resulting in no packages being uploaded.
2014-02-22 00:35:41 +00:00
joerg
5566693e4a Format string annotations. 2014-01-15 13:52:10 +00:00
dholland
ed06a60994 Minor tidyup to error reporting. (This has been sitting in one of my trees
for a year and a half and I don't remember the context.) ok'd by joerg
2013-04-14 17:03:30 +00:00
jperkin
d39201e64e pbulk-base-0.47: Portability fixes
- Prefer fcntl FD_CLOEXEC to ioctl FIOCLEX.

 - Reset SIGPIPE action to default for the build child, avoids 'yes' spinning
   indefinitely on EPIPE in Solaris builds, notably for print/pdf2djvu.
2013-01-14 14:33:28 +00:00
jperkin
75d0dc86dd Fix a couple of typos. 2013-01-07 14:15:35 +00:00
joerg
8b5fee07ef Make GCC happy and set s_start and s_end explicitly. 2012-11-30 16:22:49 +00:00
joerg
2c879bc7ca Update pbulk to 0.51 and pbulk-base to 0.46. Add support for reusing old
scan results to speed up the process. Fix a bug that overwrote the
package.log during installation.
2012-11-23 12:13:34 +00:00
asau
0d2b63b3a3 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
jperkin
0351f8f979 pbulk-0.50: Portability fix, use 'id' instead of 'whoami'. 2012-06-19 13:40:07 +00:00
joerg
9208902a6c pbulk-0.49: Fix a bug in the computation of the restricted subset. 2012-05-20 20:12:02 +00:00
joerg
32c8d39ca5 pbulk-0.45: make order function stable 2012-03-19 12:17:15 +00:00
joerg
eb43d76b21 Shut up cast warning. 2012-01-19 18:53:32 +00:00
joerg
7ab88afd17 pbulk-base-0.44: Fix hash function to actually do proper hashing.
Do some further tweaking to improve matching by storing string size.
While here, add the necessary .WAIT to allow parallel builds.
2011-11-27 19:53:30 +00:00
joerg
d5610719ca Simplify to not trigger non-literal format string warnings. 2011-09-24 12:58:55 +00:00
joerg
fdd3e4413e pbulk-base-0.43: Explicitly re-run make clean after create-usergroup, if
it was run before configure. This ensures that the work directory gets
the correct owner. Fixes strange error in qmail build.
2011-09-21 11:55:15 +00:00
seanb
7a007d5dc5 - pass fullpath in argv[0] when pkg-scan spawns bmake so that
the same gets inherited across a sub make.
2011-03-06 02:23:32 +00:00
joerg
d1f2d83167 pbulk-0.48: If pkg_add fails, remove binary package 2010-07-23 21:19:40 +00:00
joerg
673c6cbeee pbulk-0.47:
- Explicitly call make create-usergroup if USERGROUP_PHASE is specified
  and DESTDIR is active
- If the current user is not root, don't use su.
- Skip lines starting with # in the limited bulk build list.
2010-06-15 21:11:43 +00:00
joerg
59cac6ad38 pbulk-base-0.41:
Improve diagnostic message for dependency cycles by actually showing the
path.
2010-05-05 00:07:07 +00:00
tnn
bcd887b4db remove unused leftover 2010-03-11 16:31:43 +00:00
tnn
c75eb3f11f simplify previous fix 2010-03-11 16:31:11 +00:00
tnn
0050067bea mawk(1) doesn't know how to take length() of an array. 2010-03-11 13:18:16 +00:00
joerg
09dc413bb0 pbulk-base-0.40:
Don't print all failed/successful jobs at the beginning, just a small
message when it is done.
2010-02-26 16:25:49 +00:00
joerg
1826bfbf92 pbulk-0.46: Use stage-install instead of install.
[Change in pbulk-0.45, but be explicit here]
2010-02-24 22:54:54 +00:00
joerg
f2f638cca8 pbulk-0.45:
Make the age check for packages an option, but keep it enabled by
default.
2010-02-24 22:51:37 +00:00
joerg
383ef9fa38 pbulk-0.44: Remove a second call to pscan from a failed merge. 2009-12-30 21:14:43 +00:00
joerg
f50628932c pbulk-0.43:
Remove the content of bulklog, not the directory. Much nicer if nullfs
is used. Log error output of pscan.
2009-12-16 19:41:41 +00:00
joerg
0f19c1cc66 pbulk-0.41:
- Consider packages silently outdated if recorded files are missing.
- Explicitly pass down tar to pbulk-save-wrkdir, TAR is unset at that
  point.
2009-10-25 23:08:02 +00:00
joerg
d4a25a3252 pbulk-0.41:
Create & chown work.log for destdir builds too, as the normal build is
run unprivileged.
2009-09-04 22:06:18 +00:00
joerg
b5765f0012 pbulk-base-0.39:
Fix ordering of event handler vs queue modification. This can result in
queue corruption or use after free when the master can't handle a
request before the next arrives. From Matt Dillon.
2009-08-23 18:02:04 +00:00
joerg
0b8fdfcdfa Remove @dirrm entries from PLISTs 2009-06-14 18:10:40 +00:00
joerg
9b0458dcdd pbulk-0.40:
Use plain sed to extract RCS IDs. GNU ident has issues with unexpanded
RCS IDs.
2009-06-08 16:02:52 +00:00
joerg
4a4989c3be Add forgotten file from pbulk-base split off. 2009-06-08 15:37:50 +00:00
joerg
692eaaba7d Split pbulk into pbulk-base (the backend programs) and pbulk (rest). 2009-06-07 18:07:00 +00:00
joerg
e892e17182 pbulk-0.38:
Skip lines starting with # in the limited list.
2009-06-07 17:59:50 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
tnn
5d68b98b8d joergs says the problem is with &&, so revert to revision 1.4 which should
be safe everywhere.
2009-03-06 15:53:21 +00:00
joerg
0e85145c05 Add explicit cast to silence GCC on comparing different signs. 2009-03-06 15:21:17 +00:00
joerg
4778d3c99e Merge lib/dewey.c rev 1.11 from pkg_install:
Avoid sign comparision issues.
2009-03-06 15:19:04 +00:00
tnn
83c08423d2 fix previous:
actually, if our /bin/sh has some bug related to set -e,
it's better to write the test with if-then-fi instead.
2009-03-06 13:05:21 +00:00
tnn
2c965309de Invert logic of the package timestamp check, as at least ksh and bash
terminate the shell due to "set -e" when the [ ... ] part is false.
This behaviour seems correct to me, but I can't explain why this code
doesn't fail with our /bin/sh.
2009-03-06 13:00:29 +00:00
joerg
f774c82b95 Include sys/poll.h and poll.h directly if they exist.
nbcompat/poll.h conflicts with the system header on Solaris
and is implicitly included by nbcompat.h already, if needed.
Fixes PR 40756.
2009-02-25 19:31:53 +00:00
joerg
360471cf79 pbulk-0.37:
- replace libevent dependency with internal event loop to make the pbulk
  core standalone
- open success and error log with O_APPEND, which allows e.g. cleaning
  up the error build during build without breaking it if done with care.
2009-01-31 23:25:37 +00:00
wiz
d150578c8e PKGREVISION bump for libevent shlib name change. 2008-10-16 21:52:16 +00:00
joerg
66667a43ee pbulk-0.36:
Avoid grep -q and use awk instead. This has the side effect of parsing
presolve only once for each file. grep -q doesn't exist on Solaris.
2008-10-08 16:43:34 +00:00
joerg
212f32736f pbulk-0.35:
Sync Dewey with pkg_install(-renovation) and add a fast check if a
pattern could ever match. This reduces the time for pbulk-resolve on a
full tree on my laptop from 12.9s to 5.3s.
2008-09-22 11:31:16 +00:00
joerg
b049ec1593 pbulk-0.34:
- version configuration file, object if the version doesn't match
- add an option for pbulk-resolve to ignore unresolvable dependencies
similiar to the incremental mode
- use this option to run pbulk-resolve again if ignore_missing_depencies
is set to yes. Report this explicitly to un-confuse readers and point
them to the logfile.
2008-09-16 18:21:30 +00:00