Commit graph

117 commits

Author SHA1 Message Date
joerg
d8d13db647 Explain unprivileged_user. 2008-01-26 03:14:18 +00:00
joerg
e562ac2e2f pbulk-0.25:
Add bulkbuild-rebuild which can be used to build packages individually.
It assumes that all dependencies are built and the results of the scan
phase exists. That means it can be used after a bulk build to try to
rebuild a failing package. Fixes PR 37407.
2008-01-26 01:57:00 +00:00
joerg
d84d1ca637 pbulk-0.24:
When all jobs are processed in master mode, close the listen socket
and shutdown(2) all peers. Give them a second to close(2) the
connection themselve, so that the port remains usable on the master.
This is the standard compliant fix for PR 37002.
2008-01-26 00:34:57 +00:00
tnn
34692a4cfc Fixed a problem in pkg-build, bump rev. 2008-01-21 13:11:56 +00:00
tnn
44711aada0 Fix a hardcoded path (probably a mistake in rev 1.8) 2008-01-21 12:37:46 +00:00
joerg
235f1bf734 No revision bump for pkgsrc native tools, update version. 2008-01-18 15:46:22 +00:00
rillig
a83158c015 PKGREVISION++ for the invalid definition of shell functions. 2008-01-18 11:38:17 +00:00
rillig
06c878c3b1 Fixed the definition of shell functions, as reported in PR 37795.
See also:
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_05
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_04
2008-01-18 11:36:18 +00:00
joerg
5eda607514 pbulk-0.21:
Don't try to remove a non-existing file if no package had an error
during the build.
2008-01-17 19:25:33 +00:00
joerg
a166fd74ea pbulk-0.20:
- run checksum stage of a build with the privileged user, as DISTDIR
  might not be writeable
- create the actual package as privileged user as well
- pre-create work.log when using user-destdir
- in pre-build, only wait if the meta subdirectory exists. bulklog itself
  can often be a mount point.
2008-01-17 17:47:09 +00:00
joerg
4498fe021c pbulk-0.19:
- add support for building using DESTDIR.
2008-01-16 14:20:08 +00:00
joerg
dd293c5fa6 Use %lu + casts instead of depending on size_t's %z. Some Operating
Systems like Solaris don't implement %z.
2008-01-15 22:14:30 +00:00
joerg
a4b00a08e7 pbulk 0.18:
- If not running on NetBSD or not using /usr/bin/make, set the default
  of pbulk's make to ${prefix}/bin/bmake.
- Make path to neato an option and don't install it on demand.
- Fix a bug in the master mode that should fix the strange faults seen
  with native libevent on NetBSD.
- Add option to skip checksum computation. Don't upload a checksum file
  if that option is active.
2008-01-15 21:43:31 +00:00
joerg
026ceb86b5 Force dependency on libevent from pkgsrc on NetBSD, the native version
is broken. This shows e.g. as querying the status can trigger a signal
10. Bump version.
2007-12-15 11:06:12 +00:00
joerg
88572b8312 Skip empty lines in the limited list. Bump to 1.16. 2007-12-05 21:33:58 +00:00
rillig
085721094b In error messages, it is important to be as specific as possible, to
help the user understand the problem.
2007-11-30 17:31:38 +00:00
rillig
532c6fad52 Added some comments that explain the data structures. 2007-11-28 11:34:20 +00:00
rillig
800c101860 Some shells, for example /bin/ksh on Solaris, don't like "else fi"
without any commands in between.
2007-11-14 12:38:18 +00:00
rillig
32b2e77b19 There are several error messages with the same words. To make finding
the cause easier, add more information to one of them.
2007-11-13 19:30:26 +00:00
joerg
e725e20c42 Bump version or revision of all packages that have a runtime dependency
on gzip.
2007-11-08 19:39:42 +00:00
joerg
a82568cd03 Make language lawyers happy and rename report_recipient to plural. 2007-10-17 20:42:30 +00:00
rillig
f44cba8d1a I just removed the $bulklog directory once again, due to running
bin/bulkbuild when instead I wanted to resume the bulk build. To prevent
this frustration, added a warning and a five second waiting period.
2007-10-15 07:26:34 +00:00
rillig
4d0642f1f2 When installing the bootstrap kit from a directory, correctly handle the
case when ${prefix} already exists.
2007-10-10 09:04:21 +00:00
rillig
ca6b5bf2c5 Reverted two of my recent changes.
See: http://mail-index.netbsd.org/pkgsrc-changes/2007/09/21/0046.html
2007-09-22 00:12:33 +00:00
rillig
468f3fe28a Removed code duplication by calling the client-clean script.
Before removing prefix, fix the permissions. Everything inside that
directory must be writable and all directories must be searchable.
NetBSD's chmod has an option -P which I would have liked to use, but
POSIX requires only -R to be implemented. Therefore, it is possible that
permissions of files outside the prefix are changed due to symlinks.

The client-clean program promises to clean $prefix, so fail if that is
not possible. A common cause for this is that some files inside have
their flags set (see chflags(1) on NetBSD).

When installing the bootstrap kit, the source may be either a regular
file (which is then assumed to be a tar archive) or a directory (which
is copied directly). The latter option is new and allows for easier
changes of files once the bulk build has started.
2007-09-21 13:42:54 +00:00
rillig
a51fc4af4a Only save PREFIX in a tar file if the package has reached the install
phase. This saves some disk space, and in most cases the contents of
PREFIX is not interesting before.

Added quotes around keep_wrkdir and keep_prefix because they were
missing in a previous version of the example configuration file.
2007-09-21 13:34:52 +00:00
rillig
de9db037a8 Thou shalt not nest double quotes in backticks, for the Solaris /bin/ksh
cannot handle it.
2007-09-21 09:08:08 +00:00
jlam
2761568ac2 Convert to use the features framework. 2007-09-08 21:57:57 +00:00
rillig
91c415b938 The WRKDIR and PREFIX can be saved in the log directory when a package
doesn't build properly. These options are off by default since they
require much disk space.
2007-09-07 15:51:53 +00:00
rillig
b289c83c80 Clean up the old log files when retrying to build a package. 2007-08-24 07:17:46 +00:00
rillig
8e4f54e5cc Added some comments to the configuration file, to help the uninitiated
reader.
2007-08-24 06:32:41 +00:00
joerg
1d9752887b close is a function, fix C&P errors. From Aleksey Cheusov.
Bump version, remove pkgrevision.
2007-08-16 13:02:05 +00:00
joerg
6eee19dc11 Work around broken default visibility in Linux (PR 36790).
Linux has sin_len either (PR 36791).
2007-08-16 12:50:34 +00:00
tnn
38c78edf17 Revbump sweep of all libevent consumers due to update to libevent-1.3d. 2007-08-16 09:27:03 +00:00
joerg
020f22df97 Don't hard-code tar as tar, but make it an option and use the tool
version correctly. Fixes issues on platforms where the first tar
in path doesn't support -z. Bump to pbulk-0.12.
2007-08-15 21:10:54 +00:00
joerg
515bcbf499 Shorten wording. 2007-08-15 20:55:28 +00:00
joerg
7d8b7c6596 Fix grammar. From salo@ 2007-08-15 20:52:02 +00:00
joerg
f8f97243e2 Fix indentation. 2007-08-14 13:15:58 +00:00
joerg
e2a9c6ca63 Don't compare a function name against NULL, master_mode is meant here.
Thanks tnn@.

Reverse the test for extracting the bootstrap kit as the old version
hits set -e error handling.

Bump to pbulk-1.11.
2007-08-05 14:15:55 +00:00
tnn
a3b45d16a1 Do SUBST handling in post-patch instead of pre-configure. This makes
substitution (and any substitution warnings) run before the build starts,
rather than after building libnbcompat. The reason for this is that
libnbcompat is _built_ in the pre-configure stage when in inplace mode.
2007-08-05 12:30:10 +00:00
tnn
49bc4064e5 Add some useful comments. 2007-08-05 09:37:19 +00:00
tnn
15823f5d6b No sin_len on digital unix derivatives. (xxx: time for a configure test?) 2007-08-05 09:03:09 +00:00
wiz
581b49d91c Fix two typos, and improve wording. 2007-07-28 07:26:26 +00:00
joerg
20911999c4 Some people actually watch the pbulk-build client output, so add
a newline after each message. Bump to pbulk-0.10.
2007-07-27 09:59:36 +00:00
joerg
057de8d82c pkgsrc_base_dir is now without leading /, compensate. GC it in the HTML
report script. Bump to pbulk-0.9.
2007-07-25 15:12:53 +00:00
joerg
a25b67ca2e Remove an additional ) and correct the assignment of a variable.
Bump to 0.8.
2007-07-25 11:07:28 +00:00
tnn
0466c89ba4 Wrap inclusion of inttypes.h in #ifdef HAVE_INTTYPES_H 2007-07-21 15:44:02 +00:00
tnn
0cf99d1015 Uses ntohl(), so include <arpa/inet.h> 2007-07-21 15:36:36 +00:00
tnn
d600ba1e7f Add workaround for broken 'struct sigaction' on Interix. 2007-07-21 15:29:50 +00:00
tnn
495f8a912e Add workaround for broken 'struct sigaction' on Interix. 2007-07-21 15:12:06 +00:00
tnn
bde72979d7 Interix doesn't have sockaddr_in.sin_len. 2007-07-21 14:45:12 +00:00
joerg
e00c79e3eb Always call setprogname for platforms that don't have __progname.
Don't depend on date to implement %s or even %F and %R or support -r,
compute dates as one comment and split. This works even with the very
special HP-UX date. Requested and tested by tnn@

Bump to pbulk-0.7.
2007-07-20 19:39:33 +00:00
tnn
f5e2487470 Link libnbcompat before libevent (which may link to libc), so that
libnbcompat is guaranteed to appear before libc. Avoids various weak
aliasing problems with getopt on HPUX. Ok joerg@
2007-07-17 18:11:37 +00:00
tnn
d1718215ba HPUX's sockaddr_in doesn't have a sin_len member, so don't initialise it. 2007-07-17 12:09:29 +00:00
joerg
4c2322c0eb Add two variables to specify the prefix of the report mail's subject
and the recipient. Bump to pbulk-0.6.
2007-07-16 20:35:04 +00:00
joerg
68254bb9e4 bulkdir was an old configuration variable and replaced with bulklog
in the example config. Catch up in the scripts as well.
Create the log directory first for limited bulk builds.

Bump to pbulk-0.5.
2007-07-16 19:25:25 +00:00
wiz
2ba0c80af0 Fix a typo. Improve heading for top ten. 2007-07-07 13:54:36 +00:00
joerg
7c7be6491b #!/usr/bin/awk -f -
works for some reasons on NetBSD, but not with other versions
of one-true-awk or gawk. Bump to 0.4.
2007-06-29 22:43:26 +00:00
joerg
f4d685fd16 Scripts get installed without suffix, so fix default configuration
to match the installed names. Bump version to 0.3.
2007-06-28 23:19:17 +00:00
joerg
08e238e949 Use libnbcompat and fix build issues on Solaris.
Don't depend on sin_len. Slightly factor out code for setting
non-blocking IO.

Bump to pbulk-0.2. Tested by dmcmahill@.
2007-06-25 21:38:43 +00:00
joerg
f00ac9b035 Force devel/libevent on NetBSD 2, as it is far too old. Found by Dan on
NetBSD/alpha.
2007-06-20 13:31:26 +00:00
joerg
412ff09fd5 Missing cast to to int for %.*s as noted by dmcahill@ and wiz@. 2007-06-20 13:04:15 +00:00
rillig
0b04c80905 This package uses BSD-style Makefiles. 2007-06-19 23:51:18 +00:00
joerg
19c1ea3335 Two more includes of sys/types.h to fix build on Mac OS X.
From schmonz@
2007-06-19 21:06:05 +00:00
joerg
5547b07b46 Include sys/types.h first to help Mac OS X. 2007-06-19 20:42:49 +00:00
joerg
5f93d7559f Remove duplicate assignment. 2007-06-19 20:38:43 +00:00
joerg
8d27258d17 Initial import of pbulk, the new pkgsrc bulk build framework.
Discussion of various parts of the design with jlam@, wiz@, tls@
and many other developers. Special thanks to David Maxwell for
testing the initial prototype and finding some bugs with
Coverity Prevent.

Supported by Google's Summer of Code 2007 project.

OK for import during the freeze: jlam@

From DESCR:
pbulk is the modular bulk build framework for pkgsrc.

This package contains:

- pbulk-scan, a program to scan the entire pkgsrc tree
  or a list of directories therein for packages and
  dependencies. Distributed operation using a master/client
  mode is supported.

- pbulk-resolve, a program to resolve the dependencies
  from the output of pbulk-scan

- pbulk-build, the build scheduler. Distributed builds via TCP
  are supported.

- bulkbuild and related scripts to implement full and limited
  bulk builds on top of those programs.

The pbulk framework is considered experimental.
2007-06-19 19:49:55 +00:00