Commit graph

534 commits

Author SHA1 Message Date
rillig
7fca192e2e Replaced all references to pkglint with lintpkgsrc, which has its own
package since a few days.
2008-01-04 15:49:07 +00:00
wiz
7512dd9d36 Revert unintended commit. 2007-12-02 12:58:25 +00:00
wiz
6bfb4a5067 Fix typo in error message. From Sergey Svishchev. 2007-12-02 12:57:32 +00:00
rillig
9fab8079e7 Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needs
it. It had only been used to change the "nerrors" variable in bulk
builds, but this variable is not used further anyway.
2007-12-01 11:11:53 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
kano
abdb54b351 fix obsolete URLs for www.NetBSD.org
close PR pkg/37071
reviewd by xtraeme@
2007-10-07 12:59:11 +00:00
adrianp
ccc8f33d94 The new audit-packages code goes to stdout now. 2007-08-27 15:38:08 +00:00
adrianp
d176003e13 audit-packages prints vulnerabilities to stdout so compensate for this. 2007-08-06 02:43:34 +00:00
adrianp
35f7e128c2 Add --config <file> from build script 2007-07-25 12:00:21 +00:00
adrianp
554cf5daf1 Make sure PKG_INFO is set 2007-07-25 10:57:44 +00:00
adrianp
b61d8add4a Define ${PKG_INFO} before using it - from wiz@ 2007-07-21 12:48:31 +00:00
adrianp
9b5c38d79d Add support for the upcoming pkg_install-20070714 which now includes
audit-packages.
2007-07-14 17:17:45 +00:00
joerg
409b183fc0 Remove USE_MTREE support. Keep one copy (the NetBSD version) for
the purpose of print-PLIST in plist/common-dirs.mtree.

Discussed with wiz@, no objections on tech-pkg@.
2007-07-02 14:54:09 +00:00
wiz
e57a27b67c Fix PR 34139 for bulk builds too.
Patch from Sergey Svishchev.
2007-06-15 22:28:53 +00:00
rillig
3a6deb3539 The option --prepare only generates the bulk build database. 2007-06-15 15:52:22 +00:00
rillig
be572cf6c1 If a package is already installed, bulk-install should not try to build
it again.
2007-05-31 11:49:09 +00:00
rillig
4a63eaf9f3 When removing an already installed package, the correct package version
is reported.

Fixed the output by not nestedly redirecting the output of "bmake debug".
2007-05-23 10:50:44 +00:00
kristerw
c54aa3660b Add all packages that are used by pkgsrc/bootstrap to the list of
packages that should not be built on non-NetBSD systems.
2007-05-20 23:33:06 +00:00
wiz
43948ca294 Revert previous (1.140), committed by accident. 2007-05-19 14:10:35 +00:00
wiz
daff9198ed On Linux (at least Red Hat Enterprise 3), openssl needs libraries
from /usr/kerberos and /dev/random in sandbox.  On FreeBSD, use
devfs to populate /dev in sandbox.

From Sergey Svishchev.
2007-05-19 14:09:54 +00:00
rillig
6dd050be15 It makes more sense to run "bmake debug" when the WRKDIR is still
populated with all sorts of files, since they provide the most useful
information.
2007-04-15 22:14:44 +00:00
rillig
b425a8ed66 The egrep line can be removed when audit-packages becomes fast enough. 2007-03-22 11:43:18 +00:00
rillig
5e2cc53c82 A hint to the real problem is a nice addition to an error message. 2007-03-07 23:32:49 +00:00
rillig
f25aeae6f1 Added the BULK_ID to BULK_BUILD_ID_FILE, so that multiple bulk builds can
share the same pkgsrc tree in read-write mode. Fixes PR 35939.
2007-03-07 22:13:38 +00:00
rillig
b1deb83ac9 The first few lines of a bulk build log don't need to be printed on the
terminal.

The wrapper warnings are included in the build log, no matter if it
succeeds or not.
2007-03-06 15:54:54 +00:00
rillig
07da582827 Removed the unused "arch" variable. 2007-03-06 10:57:11 +00:00
rillig
ffa8f5f575 The warnings from the wrapper log are added to the report file. 2007-03-06 10:56:34 +00:00
rillig
3d61247309 The post-build-only option also needs to load the variables. 2007-02-23 03:43:53 +00:00
rillig
d1b2c5f7f4 At the very beginning, the variables are extracted by running bmake in
the pkglint directory. This part had been more time-consuming than
necessary. Now it only needs one call to bmake instead of n.
2007-02-21 14:25:20 +00:00
jschauma
b9211a69aa - also find possible listings in {whatever}foo variations
- use PKGVULNDIR from env for correct location of pkg-vulnerabilities
2007-02-21 05:32:30 +00:00
jschauma
853b673667 Only invoke audit-packages if we do find the package-name prefix in
the vulnerabilities file.  This cuts down significantly on the time
spent running sort-packages:
On 3228 packages before:
20259.43s real  9888.82s user 13138.60s system

With this change:
 6595.97s real  3215.58s user  4265.13s system
2007-02-20 06:46:20 +00:00
rillig
56ae0e7a97 The error output of "make debug" may be useful to know, too. 2007-02-19 12:10:43 +00:00
wiz
a9be4d8d01 Remove some legacy variable handling after 2-3 branches. 2007-01-30 07:11:19 +00:00
kristerw
d96a551412 Remove old .bulk-not_available (NOT_AVAILABLE_FILE) files that are left
from previous run.
2007-01-28 19:23:22 +00:00
rillig
492c03802f Empty files are so ambiguous, so better leave a friendly message in the
STARTFILE.
2007-01-24 02:48:51 +00:00
rillig
2d13644250 Quick fix: The main code of the bulk build cannot be run in the shell's
"set -e" mode, since it would fill up the temporary directory. Reverted
that change.
2007-01-24 01:37:20 +00:00
rillig
70259785af A big cleanup:
- The "header" of the build log is always printed, not only when
  PRECLEAN is set.

- The variable "installed" was redundant. Removing it saves 5 lines
  of code.

- When the package is outdated and currently installed, it suffices to
  just run pkg_delete. The "make deinstall" is too expensive and doesn't
  do anything further.

- Completely rewrote the section that deinstalls unneeded packages. It
  seems to me that the pkg_info -Q flag has been introduced after the
  bulk build was initially written, so it wasn't used here.

- A package that doesn't get deinstalled with a simple pkg_delete
  probably has a reason for that. Don't try to run pkg_delete -f after
  it.

- To remove all packages, it isn't necessary to iterate over the
  installed packages. Just pkg_delete -r "*".

- Replaced "required package" with "dependency" in the log messages,
  since that is shorter. Maybe the term "required package" comes from
  the time where packages also depended on shared library versions, so
  that terminology made sense back in 2000. Anyway, that's long ago.
2007-01-22 12:24:20 +00:00
rillig
2e84b4080a Fixed misleading indentation. 2007-01-21 23:42:29 +00:00
rillig
d817b0900c pkgsrc bulk builds need much CPU time, but do they also need much stack? 2007-01-18 09:04:53 +00:00
rillig
e605b6ff86 Made the database lookup for deinstalling the unneeded packages less
obscure by using awk instead of sed.
2007-01-15 07:12:15 +00:00
rillig
5c9820e74b Packages that are not available on the current platform (and the
packages depending on them) are listed in a separate category in the
bulk build report.
2007-01-08 22:42:00 +00:00
rillig
af7757c981 Shortened the code. 2007-01-08 21:36:07 +00:00
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