Commit graph

492 commits

Author SHA1 Message Date
wiz
296e5fd984 Bump date for previous. 2006-12-23 08:11:30 +00:00
martti
e2610fb8c8 Remove trailing tabs. 2006-12-15 13:15:06 +00:00
martti
2cc4216d5e Remove trailing spaces. 2006-12-15 12:46:23 +00:00
dmcmahill
ac4d662ef8 Use '-o' instead of '-or' in find(1) arguments as the former seems to
be more portable (works on at least NetBSD, SunOS-5.9, and Linux).
Addressed PR pkg/35245
2006-12-14 14:37:32 +00:00
dmcmahill
afa2891d96 If a package build fails, append the output of 'make debug' to the log
since sometimes there are questions about various variables and settings.
This should help in people trying to investigate build failures.
2006-12-14 14:32:04 +00:00
dmcmahill
b3c2d58dbe add /usr/sadm to the list of sandboxMountDirs for SunOS 2006-12-14 14:29:22 +00:00
dmcmahill
7d2f31a32e include the PKGSRC_COMPILER setting in the report 2006-12-13 16:05:25 +00:00
rillig
6a8cee099a Fixed the creating of numerous zombie processes, which is a bug in the
NetBSD /bin/sh, reported in PR 35227.
2006-12-10 13:59:31 +00:00
jschauma
1b4c29c245 report correct pkgcount by first cd'ing to PKGDB_DIR, then FINDing in there.
(else -prune will cause us to return immediately, always reporting 1 installed
package even if we have more)
2006-12-09 19:56:54 +00:00
jschauma
f4da15a1a7 straighten out FIND command to figure out if a package needs to be rebuilt.
This should fix the problem reported by wiz@.
2006-12-09 19:40:53 +00:00
rillig
be43e26193 Due to a misunderstanding of mine, preventing to upload restricted
binary packages has not worked in the last few months. Now I fixed the
rsync command line to use --files-from instead of --include-from, which
does the right thing.

Tested in a directory of about 20 binary packages, including one that is
restricted. Everything worked as expected.

Fixes PR 35199.
2006-12-07 23:31:48 +00:00
jschauma
1471b23218 - modularize functionality into a number of distinct functions
- add the option "-p|--post-build" to allow you to only run the
  post-build portion of the bulk-build
2006-11-27 00:05:22 +00:00
rillig
b4ca67c5db The bulk builds now use the new target can-be-built-here, which checks
if some of PKG_SKIP_REASON, PKG_FAIL_REASON, NOT_FOR_*, ONLY_FOR_* are
set.

The code uses some shell trickery to avoid the use of subshells, since
these would prevent the variable assignments from being effective.
2006-11-26 08:39:52 +00:00
jschauma
913617419c - Run a single find(1) command to get the list of new files rather than running
two finds+two greps.
- Run a single find(1) command rather than ls | grep to determine pkg count.
2006-11-26 03:08:24 +00:00
jschauma
dea4bd6524 nuke two Useless Use of Wc and let awk do the legwork. This saves us
two forks per package.
2006-11-19 03:06:26 +00:00
tv
a45179fb8a Also add bin/nawk to the tarred-up files. 2006-11-06 21:45:18 +00:00
tv
f91b394772 Add lang/nawk and sysutils/install-sh to the "don't blow away" package
list for bulk builds.  (Revert previous on bootstrap; the PKG_PRESERVE
hack didn't work as expected.)
2006-11-06 21:08:42 +00:00
rillig
90f265272e Creating an archive from the working directory may take some time for
big packages, so print an informational message before doing that.
2006-10-13 23:14:45 +00:00
rillig
ee85496ac5 Renamed the "pack" option for _PRESERVE_WRKSRC to "pack-if-failed",
since that's what I really wanted. It's just one day old, so I hope that
nobody has gotten used to it.
2006-10-07 06:35:01 +00:00
rillig
e20633395b _PRESERVE_WRKDIR can be set to "pack" to save a .tar.gz archive of
WRKDIR in the directory where the other log files are.
2006-10-06 09:41:23 +00:00
dmcmahill
74c579fb19 Change the quoting to let this work with solaris-2.9 /bin/sh.
The particular /bin/sh bug that was biting here is

  "${x}"/*/*/"$y"

doesn't expand the *'s if $y starts with a "." which, unfortunately, it
does.  Using

  "${x}"/*/*/$y

works correctly.
2006-10-02 16:37:22 +00:00
rillig
2527b18e5a Progress messages are prefixed with "sort-packages>", not "upload>". 2006-10-01 14:54:16 +00:00
minskim
2b7640f4c7 Use /bin/mount if it exists on Linux, because some distros (e.g. Ubuntu
Linux) do not have /sbin/mount.
2006-09-26 20:56:28 +00:00
rillig
dd2923d156 When installing packages, first "cd $USR_PKGSRC" to be independent of
the current working directory.

See http://mail-index.netbsd.org/tech-pkg/2006/08/08/0006.html
2006-08-10 17:58:10 +00:00
rillig
5b2a5cfec6 Rewrote upload to use the newly introduced sort-packages program.
While here, ...
- Added stricter checking by using "set -eu".
- The bulk build configuration file is properly included, and the
  MAKECONF definition that it may contain is properly exported.
- All progress messages and error messages are prefixed by "upload>",
  so that it is obvious where the messages come from.
- Since extracting the make(1) variables takes quite a long time, print
  an informational message before doing that.
- Removed the use of the error-prone lintpkgsrc to detect whether a
  package is restricted or vulnerable.
- If an error occurs, the upload program returns an exitcode of 1,
  which is common among Unix utilities.
- Removed almost all pipe operators, since they tend to hide program
  failures.
- All error messages are redirected to stderr instead of stdout.
2006-08-01 13:16:41 +00:00
rillig
aeeeee3d46 Always create the files for the lists, even if they would end up empty. 2006-08-01 07:50:04 +00:00
rillig
9aefe26fce Oops, fixed a typo and tested it again. Now it works. 2006-08-01 06:10:44 +00:00
rillig
e888cd24c2 Added a program that sorts binary packages into categories, depending on
whether they may be uploaded, are vulnerable, or good.
2006-08-01 06:05:15 +00:00
dmcmahill
f1ac5f909e - add a -h|--help flag
- add a -n|--no-upload flag which does everything but actually executing
  the upload to help see what would happen

- add a -d|--debug flag to preserve the temporary files to help with
  debugging

- add a -V|--version flag
2006-08-01 00:53:24 +00:00
jschauma
a380b42fa0 - use ${BMAKE} instead of 'make' in one instance
- if we can't build one of the required packages, bail out
2006-07-30 14:31:10 +00:00
jlam
c489860d62 Whenever we invoke a recursive make, we need to ensure that the proper
environment ${PKGSRC_MAKE_ENV} is also passed along.  Create a
convenience variable RECURSIVE_MAKE that does exactly this and that
can be used in place of MAKE when invoking make recursively.

Use RECURSIVE_MAKE everywhere in pkgsrc/mk that we invoke make
recursively.
2006-07-27 21:46:45 +00:00
wiz
7400a7cf16 When the bulk build code encounters a directory in *SPECIFIC_PKGS
that does not exist, it stopped.

Now it instead adds an entry to the main broken file and marks
it as not package with maintainer "directory_does_not_exist"
in the HTML output. (Not packaged directories are not mentioned
in the text version.)
2006-07-26 17:00:03 +00:00
rillig
9ead885465 After converting it to HTML format, the build log file is not needed
anymore.
2006-07-03 00:00:56 +00:00
joerg
abd93e2085 Restore ls -t | grep idiom, the whole package list is too big for the
argument list on at least on OS.
2006-06-22 11:09:18 +00:00
minskim
cbf5ec4bec Create /var/spool/lock in the sandbox. The directory is needed to
build comm/minicom.
2006-06-08 01:11:43 +00:00
dillo
f2d9a1c52f Adapt to create pkg_summary file via pkg_info -X. Prompted and
reviewd by joerg.
2006-06-02 22:01:46 +00:00
joerg
88a346cbc7 Add an option (MKSUMMARY) to create pkg_chk index for binary-only updates
during mk/bulk/upload. Disabled by default.
2006-03-28 10:56:52 +00:00
rillig
bca88fe217 Only write the terminating HTML code to the ${_BROKENFILE} if the
package is really broken.
2006-02-13 14:55:26 +00:00
rillig
efd0e15ce9 The security/kth-krb4 package does not install bin/ftp anymore (since
February 2004), so it doesn't conflict with bootstrap-pkgsrc.
2006-02-12 05:00:33 +00:00
rillig
d9f528e7fb Added "pre-build>" identifier to two echo commands. 2006-02-11 23:54:25 +00:00
rillig
5258ae8fb8 Renamed the `restart'' variable to `resume'', as that is what the
variable does.
2006-02-11 21:44:16 +00:00
rillig
c04d1cf1cf Fixed double quoting of _BROKENWRKLOG. 2006-02-11 11:46:41 +00:00
rillig
cf9992988e A small step in the direction of valid HTML for the build log files. 2006-02-10 12:21:16 +00:00
rillig
91f9cc1a62 Indented the variable definitions more consistently. 2006-02-10 10:41:58 +00:00
rillig
d846e3c2b5 When in "set -e" mode, the Solaris /bin/sh exits when "cd" fails, even
if it occurs as the condition of a "while" or "if", or in combination
with && or ||. This, of course, introduces a race condition if someone
removes the directory between the two "cd"s. The result would be that
the bulk build terminates, but that's not a big issue, as in this case
there must be something much more severely broken.
2006-02-07 21:34:48 +00:00
rillig
09e7dbca5e Added the KEEP_BUILDLOGS variable. If it is set to "yes", the build logs
of successful builds are not removed, only renamed. This variable will
be useful for examining the warnings that appear during the bulk builds
but are thrown away because the package builds fine. This feature is
experimental and thus not enabled by default.
2006-02-04 01:08:25 +00:00
rillig
2aa47ceaea If a package is still up to date, it doesn't matter if it is currently
installed or not. So there is no need for two different messages. (They
had been necessary in revision 1.1, though.)
2006-02-03 20:47:06 +00:00
rillig
0cca385f2a Added the bulk build ID to the subject line of the report mail. It had been
${BUILDDATE} before, which has disappeared with the REPORTS_* change.
2006-01-30 20:06:51 +00:00
rillig
c22e7cd031 Don't test(1) and cd(1), cd(1) directly. As long as "set -e" is not
activated this prevents unexpected behavior.
2006-01-29 23:07:04 +00:00
rillig
b7de3baf8d In the FTPHOST compatibility mode, there was a slash missing when
constructing REPORTS_DIR out of FTPHOST and FTPURL.
2006-01-24 19:19:01 +00:00