Commit graph

944 commits

Author SHA1 Message Date
wiz
ccbccdc81b Fix show-var target (if variable contains " or `, like some COMMENTs do). 2001-02-17 19:36:27 +00:00
wiz
8fb0f10972 Handle new category-Makefile format 2001-02-17 16:45:10 +00:00
tron
7811606bd1 Add german CPAN mirror. 2001-02-17 15:55:47 +00:00
dmcmahill
4e817902cb reduce the verbosity when adding/removing pkgs. Suggested by Hubert 2001-02-17 15:48:51 +00:00
wiz
1b7f0d246f Change COMMENT handling:
COMMENTs are now a variable in the Makefile instead of a pkg/COMMENT
file. The COMMENT var should be in the maintainer block after the
homepage.
Modify bsd.pkg.mk, pkglint, url2pkg, and port2pkg (last one untested)
for the new behaviour. Document new state in Packages.txt.
This should save lots of inodes, and lots of time when untarring/updating.
Idea by Alistair Crooks.
For the time being, accept pkg/COMMENT instead of a COMMENT var to avoid
a flag day.
2001-02-16 13:06:17 +00:00
wiz
45e53b4367 Fix 2 typos in comments. 2001-02-16 12:58:57 +00:00
dmcmahill
7a46b730b6 when removing out of date binary packages from ${PACKAGES}/All, also remove
the links from the package category subdirectories so we don't leave bad
links around.
2001-02-15 20:13:28 +00:00
agc
15fb820a13 Mention opera-license in the list of ACCEPTABLE_LICENCES 2001-02-15 14:22:18 +00:00
agc
63fe128a5a Make sure we record the RCS Ids of all of the patch files in the
BUILD_VERSION information (pkg_info -b)

Correct the English in the licence gripe.
2001-02-15 13:49:04 +00:00
dmcmahill
8595fb34da only use the depends cache files during a bulk build, otherwise revert to
the old behaviour.  This is done because unless we're in the middle of a
bulk build, we don't really know that the cache files are up to date.  These
are fairly time consuming (relative to a single smallish package build) to
generate and depend on all of the pkgsrc makefiles.  During a bulk build, the
overhead is far outweighed by the savings.

In particular, 'make bulk-install' will now work correctly outside of a bulk
build (useful for debugging broken packages).

Thanks to Hubert who noted the 'make bulk-install' problem in a private email.
2001-02-13 23:02:23 +00:00
tron
dd09712ae5 Rename "${LOCALEBASE}" variable to "${LOCALEDIR}" to avoid mix-ups with
"${LOCALBASE}".
2001-02-13 11:47:00 +00:00
sommerfeld
cfdc9474b8 Work around (now fixed) bug in file(1) for arm32 a.out dynamically
linked programs.  The buggy file(1) on arm32 objects reports "shared
library" for both programs and shared libraries, which results in
broken automatic shared lib handling.

Discussed on tech-pkg, approved two weeks ago by agc.
2001-02-12 01:17:24 +00:00
dmcmahill
7774f864f9 finish incomplete sentence (who contributed the code) 2001-02-11 17:07:34 +00:00
jlam
70c3bccc00 Document CCLIENT_MBOX_FMT, used in imap-uw to set the default format used
by c-client programs for new mailbox creation.
2001-02-09 16:21:37 +00:00
simonb
ee83c04389 Update for current patch fuzz factor defaults. 2001-02-09 13:03:05 +00:00
dmcmahill
82f326d1da when a package fails to package, keep a count of how many others packages
fail as a result.  Then report this number in the generated email and
html summary.  The goal is to help the pkgsrc crew focus our efforts
on the broken packages which have the largest impact.  Thanks to
Christoph Badura for suggesting that I do this and Hubert Feyrer who
suggested an easier to read output format.
2001-02-08 19:17:38 +00:00
dmcmahill
f0bcd612c4 fix a bug which causes a few pkgs to be dropped from the output of
tflat -u.  Causes by not fully initializing an array before looping over
the array.

Other minor code cleanup.
2001-02-06 17:57:11 +00:00
skrll
bf7394d921 Fix print-PLIST target so that files with whitespace in are dealt with
correctly.
2001-02-05 18:35:48 +00:00
dmcmahill
be6dc59837 fix a bug which caused pkgs with no dependens to get dropped from the output
when looking up the tree.
2001-02-02 18:18:17 +00:00
jtb
077fab1d0a Set the variables F77 and FFLAGS in the configure environment (CONFIGURE_ENV). 2001-02-02 04:53:31 +00:00
dmcmahill
bf85b1aa00 This commit incorporates several speed improvements which have been tested
over several bulk builds on an alpha:

- At the start of a bulk build, 4 files are created to allow fast lookup of
  various dependency tree things.  These files are
  .index       ==  maps package name (foo-2.3) to directory (bar/foo)
  .dependstree == contains the complete pkgsrc dependency tree in a tsort(1)
                  compatible format.
  .depends     == contains 1 line per package and lists all the build depends
                  for the package.
  .supports    == contains 1 line per package and lists all packages which
                  depend on this package.

- When a package fails to build, the list of all packages which depend upon
  it is read from .supports.  Each of those packages is immediately marked
  as broken.  This prevents us from trying to build those packages which can
  have significant overhead if lots of other depends are installed before the
  system notices the broken one.

  In addition, the post-build postprocessing will now indicate that a package
  is 'truely broken' (ie, bad PLIST, failed compilation) vs. a package which
  is broken because it depends on a failed package.  This assists in determining
  where to focus our efforts in fixing broken packages.

- In the old approach, all packages are removed after each one is built.  The
  purpose was to a) conserve disk space, b) verify that all required dependencies
  are in fact listed, and c) prevent conflicts.  The problem was that often times
  several packages in a row have similar depends.  For example we might want to
  build several perl packages in a row.  In the old approach, we would install perl,
  build the pkg, deinstall perl and continue with the next one.

  In the new approach, when it is decided that a pkg is out of date and should be
  rebuilt, the .depends file is used to obtain a list of pkgs we require.  Then
  and pkgs which are no longer needed are removed.  This helps to minimize the total
  number of pkg_add/pkg_delete's in a bulk build.

- Since the order of the build is controlled by the depends tree, all depends for a
  given package will have been built by the time the pkg in question needs them.
  If any of the depends failed to build, then the pkg which needs the failed one will
  have been marked as broken.  Given this, the complete depends list for a pkg is
  read from .depends and the depends installed via pkg_add rather than relying on
  recursive make calls to install the depends.

- while here, fix a few minor bugs
  x - don't leave .make log files around when the build succeeds
  x - make sure we refer to the correct report file in the email
  x - use '.order' for the build order file instead of '.l'
  x - use 'grep -c' instead of 'grep | wc -l'
2001-02-01 08:47:29 +00:00
dmcmahill
a5051ede14 take advantage of new target in bsd.pkg.mk to simplify the script and be
sure to not miss libtool depends.
2001-02-01 08:28:07 +00:00
dmcmahill
6d09a84540 - when deleting packages, don't try and delete packages which have already
been deleted.

- when removing the '.start' file, don't remove them all, only the one we
  created.  Prevents clashes when pkgsrc is shared among multiple machines.
2001-02-01 08:25:39 +00:00
hubertf
d0319ffdcf add ftp-access for MASTER_SITE_SOURCEFORGE (on ftp.sourceforge.net) 2001-01-31 00:34:41 +00:00
jlam
c91f1d5afe Typo in comment for SMART_MESSAGES. 2001-01-30 23:18:36 +00:00
wiz
b96e0b67e2 Don't do input redirection for sed if not necessary. 2001-01-29 14:40:26 +00:00
wiz
73bcd897a6 Update gnupg to 1.0.4nb2:
Fix a bug in ~/.gnupg creation.
Honor USE_IDEA, and add the IDEA extension in that case.
Addresses pkg/11876.
2001-01-29 11:52:59 +00:00
wiz
b979f7222a Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced,
not @VARIABLE@, nor @@VARIABLE@@).
By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX,
X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST.
Clean up some packages while I'm there; add RCS tags to most MESSAGEs.
Remove some uninteresting MESSAGEs.
2001-01-29 11:34:21 +00:00
jwise
8fbf4b11a5 As per discussion on tech-pkg, correct behavior of `make package' in the
case where DESTDIR is set.

Previously, if DESTDIR was set when a pkg was installed, $DESTDIR/var/db/pkg/+CONTENT
would get `@cwd $DESTDIR/$PREFIX', as would the +CONTENT archived in the
binary package.  The first is correct, the second is not.

Now, @cwd in the +CONTENT recorded in the binary package gets $PREFIX (no $DESTDIR).
This allows binary packages built into a DESTDIR to be installed on a
real system.  The @cwd in the installed PKG_DBDIR ($DESTDIR/var/db/pkg)
remains the same.

In addition, the full path ($DESTDIR/$PREFIX) is recorded in @src in the
binary package's +CONTENT, for reference purposes.

This patch is the same as that posted to tech-pkg, except that variable
names have been clarified as suggested by hubertf.
2001-01-29 01:56:51 +00:00
dmcmahill
7954444aca be consistant about the use of "BULK> " as the prompt relating to the bulk
build system instead of a mix of ">> " and "BULK> ".

replace a few foo -> ${FOO}
2001-01-28 21:20:48 +00:00
dmcmahill
2d077a7db7 Initial commit.
tflat is a small awk script used to flatten a dependency tree.  It can
process a tsort(1) compatible input file and produce a flattened
list showing all packages which depend on a particular package or
all packages which are depended upon by a package.  This is used by
the bulk pkgsrc build system.

Written by Dan McMahill after careful study of a perl program that
does the same function in a nicer way written by Thomas Klausner
<wiz@netbsd.org>.  The reason for rewriting it without perl was to
make it work with only in-tree utilities.
2001-01-28 20:58:50 +00:00
dmcmahill
9381c7a654 Initial commit.
printindex is a small shell script run from /usr/pkgsrc.  It generates
an index file which associates package directory (foo/bar) to package name
(bar-3.2) for the entire pkgsrc tree.  The index file is useful for
processing of some of the dependencies during a bulk build.

Written by Dan McMahill using a little bit of the code from printdepends.
2001-01-28 20:56:34 +00:00
dmcmahill
35c7ea926b always show depends in show-depends-dirs even if the package is broken. 2001-01-28 18:53:58 +00:00
itojun
62ae90f361 more on limited-distribution 2001-01-28 03:21:47 +00:00
itojun
79c05c3224 give more description to ACCCEPTABLE_LICENSES items. 2001-01-28 03:20:25 +00:00
skrll
e88e90d76d Look for the latest libtool. 2001-01-26 16:48:17 +00:00
agc
71d2649a63 Don't use a Dewey decimal relational operator when matching package names
in the "show-downlevel" target, since a number of package names do not
correspond to Dewey decimal version numbers (e.g. 2.4.1p1)

Instead, use pkg_info(1) to retrieve the installed package name, and
compare that against ${PKGNAME}.

Fixes PR 12041, from Bernd Ernesti
2001-01-25 21:20:05 +00:00
wiz
eb0f106fcf Remove OVERRIDE_LIBTOOL code per discussion on packages.
(There's no package that's not happy enough with OVERRIDE_LTCONFIG.)
2001-01-25 10:43:21 +00:00
dmcmahill
39e5bd2d7c make the show-depends-dirs target be robust for depends which have
their directories specified as :../foo instead of :../../bar/foo
2001-01-22 22:43:10 +00:00
dmcmahill
daf18d1a07 make sure the libtool dependency caused by USE_LIBTOOL is in place for
the show-depends-dirs target.
2001-01-22 04:06:45 +00:00
dmcmahill
700bd47064 add 'show-depends-dir' target. This shows the directories of the "top level"
depends for the package.  Both build and run depends are shown.  This is
a non-recursive target.  Ie, only explicitly depends are shown.

Example:
bondage 109 # cd /usr/pkgsrc/cad/geda && make show-depends-dirs
 cad/gschem cad/gnetlist cad/gsymcheck cad/geda-utils cad/geda-docs

This target is useful for collecting dependency tree information for bulk
builds.
2001-01-22 04:00:54 +00:00
veego
aaa83f3415 Add support for SVR4_PKGNAME:
SVR4 has a lenght limitation of the package name: Only 9 characters are allowed.
 Thats not a real problem since gensolpkg, which is used to create a SVR4
 packages, truncates the PKGNAME to 9 characters, but there is a second problem.

 Normaly you have a vendor identifier in that package name. gensolpkg uses
 at the moment TNF, so we only have 6 characters left, and that is insufficient
 for a few packages like the amanda ones. Where the real lenght should be
 limited to 5 characters so one can choose to use a vendor string up to 4
 characters.

 SVR4_PKGNAME should be only added to a few packages where the truncation of
 the PKGNAME does not produce an unique package name, e.g the amanda packages.

You will need pkgsrc/pkgtools/gensolpkg 1.9 which will be commited in the
next few days to use SVR4_PKGNAME.

TODO: add SVR4_PKGNAME support to pkglint.
2001-01-21 22:41:03 +00:00
tron
53c8b8c46f Solaris 8 includes the GNU patch command as "/usr/bin/gpatch". 2001-01-17 20:46:57 +00:00
agc
e9f4c3ed7d Remove NO_WRKDIR, which is incompatible with read-only pkgsrc, and not used 2001-01-15 19:46:29 +00:00
jlam
a2ca4cdaa9 Add SSLCERTS make variable, set to either /etc/openssl/certs or
${SSLBASE}/certs depending on whether we use in-tree OpenSSL or
pkgsrc/security/openssl.
2001-01-13 18:35:09 +00:00
tv
03c1600fe7 Add "show-var" to the list of recursable targets. 2001-01-13 15:35:53 +00:00
tron
3a68b03e5e Don't cause a build failure if "${CC} -version" doesn't work. 2001-01-13 00:18:51 +00:00
tron
f875da8c21 Use input redirection when invoking "bzcat" because at least the version
distributed with Solaris 8 doesn't like symbolic links.
2001-01-11 10:53:10 +00:00
tron
8e16d67590 Invoke second "xargs" command with "-n 256" in "print-pkg-size-depends"
because Solaris's "xargs" will otherwise invoke "pkg_info" with no
package names when a package has no dependences.
2001-01-10 13:10:46 +00:00
tron
96ab8e4f4b Solaris 2.8 and newer includes "gzip". 2001-01-10 11:54:59 +00:00