Commit graph

6065 commits

Author SHA1 Message Date
rillig
9a06c399d7 Converted the commands that output lists to make(1) loops instead of
passing the lists literally. This avoids calling printf(1) with only one
argument, since POSIX and bash differ in the implementation.
2006-10-26 20:41:56 +00:00
rillig
43f0fe2662 Change INSTALL_MAKE_FLAGS to be _appended_ to MAKE_FLAGS when running
"make install". That way, packages don't have to say:

    INSTALL_MAKE_FLAGS+=    ${MAKE_FLAGS} foo=bar,

instead it suffices to say

    INSTALL_MAKE_FLAGS+=    foo=bar,

which is also more appropriate since multiple files (Makefile,
Makefile.common, options.mk, *.mk) don't need to care about whether
INSTALL_MAKE_FLAGS already includes MAKE_FLAGS or not.

Note: It is no longer possible to override MAKE_FLAGS completely. But
except for some exotic platforms, the default value is empty anyway.
2006-10-26 20:05:03 +00:00
rillig
b1352a6a2e Replaced a .sinclude with .include to catch errors when X11_TYPE is not
one of "native" or "xorg". Failing with an error message in the right
file is better than failing somewhere else with a completely obscure
error message.
2006-10-26 17:08:08 +00:00
tv
4b29649f1c PKG_DEVELOPER is a defined check; it doesn't need to equal the string "yes". 2006-10-26 14:42:53 +00:00
rillig
f00e3cc513 -E is an alias for --export-dynamic, which the Solaris linker does not
understand, too.
2006-10-26 07:01:46 +00:00
rillig
a48ed73d67 Tried to document some of the *_ENV variables. There are still many TODO
and XXX tags.
2006-10-25 17:21:35 +00:00
rillig
690d9f411e The file directories.mk provides a short help on some directories that
are important to pkgsrc.
2006-10-25 08:39:29 +00:00
smb
0dd1f0146e Add memtest+ 1.65 to pkgsrc, with options for serial console and .iso generation 2006-10-24 18:00:05 +00:00
rillig
9916b8544c Added the CHECK_PORTABILITY_SKIP variable that may be defined by packages
to exclude some files from the portability checks.
2006-10-23 16:07:12 +00:00
rillig
c14791a52e Moved the help system into its own subdirectory. Extracted the AWK
program into its own file, since that way, one can add comments to the
code.

For convenience, keyword search is case insensitive.
2006-10-23 14:40:14 +00:00
rillig
4345aa88c9 Added a file describing the DISTNAME variable, so "make help
topic=DISTNAME" produces useful results. And no, I didn't start the
PKGNAME vs. DISTNAME discussion here.
2006-10-23 13:52:32 +00:00
rillig
56bfa32c77 Added INCSDIR and LIBDIR to BSD_MAKE_ENV. 2006-10-22 07:20:06 +00:00
rillig
10121c122e The new variable BSD_MAKE_ENV defines BINOWN, BINGRP, etc. 2006-10-22 07:00:41 +00:00
rillig
53c952439d Added a variable RUN (no leading underscore) as abbreviation for
${_PKG_SILENT}${_PKG_DEBUG}, so that this feature can be used by
packages, too.
2006-10-22 06:50:49 +00:00
rillig
212ec91f00 Removed setargs_from_cmd, as it is unused. 2006-10-22 00:35:26 +00:00
rillig
4b4898f8a7 Added header comments. 2006-10-22 00:14:17 +00:00
rillig
135672e722 If ${WRKSRC} does not yet exist in the configure phase, skip the
portability checks. Needed for the emulators/compat?? packages.
2006-10-21 19:07:18 +00:00
rillig
e9bd6f8cff The "scan" program does not modify "$@". 2006-10-21 11:43:42 +00:00
rillig
69155cdc3e Fixed the "inconsistent update" problem when using the pkgsrc wrapper
cache together with MAKE_FLAGS=-j. The cache file is now regenerated
into a temporary file and then renamed (atomically) to the "real" cache
file.

Fixed some code that would fail when run in "set -e" mode. If you want to
test the "set -e" mode, just uncomment the line in wrapper.sh.
2006-10-21 11:42:25 +00:00
rillig
ce502552c2 Moved the check whether checkperms(1) exists from load time to run time. 2006-10-21 11:13:10 +00:00
rillig
edbaa66414 Documented a not-so-easily-fixed bug that occurs when stripping comments
off a line.
2006-10-21 10:37:48 +00:00
rillig
517fa1fce8 When CPP is defined as "cc -E" on Solaris with sunpro, the cc wrapper
had been overwritten with the cpp wrapper, and the latter didn't define
the necessary transformation rules. Fixed that.
2006-10-21 10:01:23 +00:00
adrianp
76cdf74477 Add two new options for viewvc 2006-10-21 09:13:44 +00:00
rillig
6c8f1ff9e4 Added a stub describing the public interface of this file. 2006-10-18 20:48:58 +00:00
ben
73c7e3adbf Add cformat= to avoid an error and exit on the undefined variable. 2006-10-18 19:18:12 +00:00
ben
ddd1387913 Change from jlam that adds the ability to override the decompressor used
by extract.
2006-10-18 16:17:42 +00:00
markd
785e14c277 Add ipa options. 2006-10-18 11:50:03 +00:00
dsainty
980d6a91d4 Add an (up to date!) HTTP mirror for KDE sources, the first HTTP site in the preferred list on http://download.kde.org. 2006-10-17 12:14:03 +00:00
rillig
767e55b646 Added a missing line continuation in the README.html target. 2006-10-17 06:28:33 +00:00
rillig
b2a0c1a528 If /usr/bin/printf exists, it will be used. 2006-10-17 06:13:51 +00:00
rillig
2c946c4599 Added /usr/bin/printf. 2006-10-17 06:08:31 +00:00
rillig
48fdab7bb3 Use /usr/bin/printf if it exists. 2006-10-17 06:06:14 +00:00
seb
24fa002d66 Since 2006/10/09 the ${PLIST} file does not contain the full
pathnames anymore. Therefore cd to ${PREFIX} to correctly resolve
the relative pathnames.

While here unbreak CHECK_WRKREF for another reason:
Append to ${ERROR_DIR}/${.TARGET} otherwise the "_NONZERO_FILESIZE_P"
check is always false...
2006-10-16 19:02:53 +00:00
joerg
aa237578e1 Include some more magic to set ownership of packages build with
use-destdir to ${ROOT_USER}:${ROOT_GROU}. This allows us to safely
use it on all packages which don't install setuid/setgid binaries.
2006-10-15 16:20:34 +00:00
adrianp
6f064bc91d Rename some bugzilla options based on the upcomming 2.22 import and add
some extra ones as well.
2006-10-15 09:38:56 +00:00
minskim
3cc5058c86 Teach how to unpack .gem files. 2006-10-15 01:56:06 +00:00
minskim
980fbcd313 Darwin has gm4 and printf. 2006-10-15 01:31:23 +00:00
rillig
701b7f3fd7 Added the user-settable variable CCACHE_DIR, so that the cache can be
outside of WRKDIR. I don't see a reason for having the cache inside a
directory that will go away on "make clean", but I left the default
value as is.
2006-10-14 08:59:08 +00:00
rillig
4c9668bb5b Completely rewrote apache.mk and apachever.mk. The latter is now an
alias for apache.mk, since I don't see a reason why a package should
query the apache version without also adding a dependency on apache.

Fixed the documentation to match the code. Made the code simpler. Added
sanity checks for both package-settable and user-settable variables.
2006-10-14 01:09:45 +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
20d92f3be1 Added a new post-installation check to see whether the files have their
permissions properly set. See mk/check/check-perms.mk and
sysutils/checkperms for details.
2006-10-13 06:32:15 +00:00
ben
4c1456124a Linux shadow-utils provides a useradd that fails when creating a home
directory under a base directory hat does not exist.  Add workaround
to ensure that the base directory does exist.  This addresses PR#34779
2006-10-12 23:10:55 +00:00
rillig
f4a3dfca23 Warnings must only be prefixed by a warnings heading, not an error
heading.
2006-10-12 20:36:34 +00:00
rillig
636b8b0e77 Portability checks, version two.
The actual check has moved into a shell file to allow for nice-looking
code. Instead of only the configure scripts, it scans all files whose
first line matches "#!*/bin/sh". Therefore the check is run no matter if
HAS_CONFIGURE is set or not.

Added a warning (not an error) for every use of $RANDOM that is not
combined with $$, the process ID. $RANDOM is only implemented by bash
and some versions of the ksh.
2006-10-12 17:57:05 +00:00
reed
cdd5b7e101 Add default DIALER_GROUP and explanation.
I forgot to commit this last week when I updated xisp package.
(This is for PR 34780.)
2006-10-11 14:38:04 +00:00
rillig
91178d291d Added printf to USE_TOOLS, because it is used heavily by the "debug" and
"help" targets.
2006-10-10 16:57:58 +00:00
joerg
72cf605c7c s/LOCALBASE/PREFIX/, but thanks for catching this. 2006-10-10 13:01:26 +00:00
rillig
4fb63bd4af Since a few hours, the .PLIST file does not contain the full pathnames
anymore. Therefore, cd to ${LOCALBASE} to correctly resolve the relative
pathnames.
2006-10-09 23:06:48 +00:00
joerg
5b374e445d Main infrastructure for DESTDIR support.
Packages may set PKG_DESTDIR_SUPPORT to either "destdir" or
"user-destdir" to flag support for this, following the same
rules as PKG_INSTALLATION_TYPES (e.g. define before first include
of bsd.prefs.mk).

The user activates it via USE_DESTDIR. When set to "yes",
packages with "user-destdir" are handled as "destdir".
The installation of the package will not go to ${LOCALBASE},
but a subdirectory of ${WRKDIR} instead. pre/post install scripts are
not run and the package is not registered either. A binary package
can be created instead to be installed normally with pkg_add.

For "user-destdir" packages, everything is run as normal user and
ownership is supposed to be correctled by pkg_create later. Since
the current pkg_install code uses pax and it doesn't allow overwriting
owners, this does not work yet.

For "destdir" packages, installation, packaging and cleaning is run as
root.

This commit does not change the handling of DEPENDS_TARGET or
bin-install to allow recursive usage.
2006-10-09 12:25:44 +00:00
joerg
a8e7008902 Add variable to control whether the install target is run as root. 2006-10-09 11:59:08 +00:00
joerg
977a821a8f Add two variables to control whether make package and make clean
are run with elevated privileges. Remove MAKE_PACKAGE_AS_ROOT
for now, since it is not sure whether the functionality in the current
form will stay and developers should spend time on the destdir support
instead.
2006-10-09 11:44:06 +00:00
joerg
bc2ee3463c Introduce _SU_ROOT_USER, which can be used for partially unprivileged
builds, when the normal ROOT_USER overrides should happen, but
su-target is still desired to work.
2006-10-09 10:30:27 +00:00
joerg
bafcfef842 Backout rev 1.13 of rillig. Addresses PR 34764 and complains on
pkgsrc-users.
2006-10-09 08:57:39 +00:00
rillig
39f8019a3e Forgot to provide the default value for EXTRACT_DIR.
EXTRACT_DIR may be given relative to WRKDIR.
2006-10-09 02:37:32 +00:00
rillig
22d4a3747a Added the EXTRACT_DIR variable, which can be used if the distfiles should
not be extracted into ${WRKDIR}.
2006-10-09 02:31:57 +00:00
rillig
f8810ba028 Replaced the pipe operator with temporary files, since the former hides
errors. Now "make depends" stops on dependency directories that don't
exist.

The dependencies are first extracted into two temporary files and then
combined with cat(1) because otherwise "make depends" passes silently on
errors when it is called for the second time. Somehow ${.TARGET} didn't
get removed.
2006-10-09 01:40:49 +00:00
rillig
3fce7deb80 Added a new variable MAKE_PACKAGE_AS_ROOT that controls whether the
package needs to be packed by root or whether the unprivileged user can
do that as well. Most packages don't need root privileges, but the
default value is nevertheless "yes" to not break too many existing
packages.

pkgsrc users are encouraged to add the following to their mk.conf:

    MAKE_PACKAGES_AS_ROOT?= no

The "?=" operator here is important because after the testing phase,
this variable is only intended to be set by packages. If "=" would be
used instead, packages could not override the value.
2006-10-08 20:31:38 +00:00
rillig
b52b81957a Remove the +BUILD_DEFS file before overwriting it. This is necessary to
allow most of the packages to be created as unprivileged user, since the
+BUILD_DEFS file is created by the privileged user in the "install"
phase.
2006-10-08 20:25:43 +00:00
rillig
28003a7775 Made the code simpler and added "set -e". 2006-10-08 20:24:03 +00:00
mishka
0f000d2afb pkg/34695: Static list of package master sites may (and often will)
lead to overloads of very first distribution site. Moreover, if first
site in the list is not available (often seen for sourceforge mirrors)
you have to wait for timeout each time. To distribute load on master
distribution sites and to make second problem not so annoying randomly
intermix list of MASTER_SITES with MASTER_SORT_RANDOM feature. Any of
MASTER_SORT and MASTER_SORT_REGEX can be applied later.

The feature is turned ON by default and is disabled for PKG_DEVELOPERs
or if MASTER_SORT_RANDOM=no.
2006-10-08 11:37:38 +00:00
rillig
ae06ae6696 Meta-packages that had DIST_SUBDIR set (for whatever reason) tried to
fetch files with an empty name, for example "geda/".

The problem was that the expression ${LIST:S,^,${DIST_SUBDIR}/,} results
in ${DIST_SUBDIR}/ when ${LIST} is empty. This is surprising but matches
the documentation in the manual page, so this cannot be called a bug.

The proper fix is to use ${LIST:@f@${DIST_SUBDIR}/${f}@} instead.

Noticed by Don Woodstock on #netbsd-code.
2006-10-07 12:22:06 +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
343b18a86f Added more error checking: If a directory is specified in
INSTALLATION_DIRS but a regular file of the same name already exists,
the BSD install(1) program doesn't care but exits successfully.

To avoid much more confusing error messages, this is checked here, and a
_good_ error message is printed.
2006-10-06 20:13:10 +00:00
rillig
4fccc74f6f Instead of removing error and warning messages, they are collected in
.error-done and .warning-done, so they can be inspected later.
2006-10-06 19:05:43 +00:00
rillig
7271fc560f Added a call similar to "make error-check" when the real target fails
for some reason. That way, error and warning messages that have long
been hidden are now shown. They don't appear very prominently by now,
but it's much better than showing them not at all.
2006-10-06 19:04:37 +00:00
joerg
1a3ea34a13 Remove references to DESTDIR. LOCALBASE should not be altered that way,
since it is user settable and most of the time set by the user.
X11BASE follows the same reasons. For staged installations, we don't
want to register the package directly, so there's no need to prefix
PKG_DBDIR either.
2006-10-06 14:51:36 +00:00
joerg
5e78609796 Kill ancient runes: /usr/local as LOCALBASE was not the default for
ages and mk.conf from bootstrap sets it explicitly anyway.
The pkg_install stuff also lives in sbin.
2006-10-06 14:31:32 +00:00
joerg
672d9ead13 Always use LOCALBASE setting from mk/defaults/mk.conf.
Setting it with ?= in the platform files is a nop anyway.
2006-10-06 14:28:46 +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
reed
4777d2bf99 Add experimental support for -j jobs building in the build
target.

MAKE_JOBS is undefined by default. You can test this by setting
in mk.conf: MAKE_JOBS=5 for example.

Some package just won't build correctly with this -- these individual
packages can set MAKE_JOBS_SAFE=no to disable it.

This is based on discussion from last December 2005. Some pkgsrc
users are using ideas like this.

Note I have been using this since December 2005 on various single
processor and multiprocessor systems. (Once I kept some stats on
performance but have misplaced that now.) I haved tested this with
many packages (but not a bulk build) on Linux, NetBSD and DragonFly.

This commit doesn't include the commits for the MAKE_JOB_SAFE. As
this is experimental it needs more testing. Some examples of problems
are: comms/lrzsz, databases/gramps2, editors/vim, graphics/MesaLib,
graphics/netpbm, net/bind9, print/ghostscript-esp, textproc/libxml,
and www/lynx.
2006-10-05 23:35:23 +00:00
rillig
11142e502a Suppress the message that ".DDIR is up-to-date" by introducing a .PHONY
target.
2006-10-05 12:56:27 +00:00
rillig
c6fdabdf40 If a word in a configure script is "#", stop scanning that line for
"test ==".
2006-10-05 10:52:40 +00:00
rillig
5305a8ebc5 Replaced "test -f" with "ls". That way, broken symbolic links are also
replaced with the pkgsrc versions of libtool, config.guess and others.
2006-10-05 02:59:54 +00:00
rillig
ecd4e9d40b It's SKIP_PORTABILITY_CHECK, not SKIP_PORTABILITY_CHECKS. 2006-10-05 02:58:28 +00:00
rillig
9af6cadbee Both, the pkgsrc user and the package maintainer must agree that this
package should run the CHECK_FILES test. Otherwise we cannot prevent the
broken shells/standalone-tcsh from scanning the whole filesystem. (hi
agc!)
2006-10-05 01:10:59 +00:00
gdt
23056ede21 fix comment about CHANGES file for changes-entry, since the default is
really CHANGES-YYYY
2006-10-03 14:22:16 +00:00
rillig
114453d16b Rewrote the bin-install target so that it doesn't lock LOCALBASE
recursively. This bug was reported by Hans Rosenfeld in

    http://mail-index.netbsd.org/tech-pkg/2006/10/03/0002.html

As a side effect, when bin-install fails to install a binary package,
the package is still built from source, but not as a privileged user.
2006-10-03 11:07:05 +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
48263488c5 Some fixes:
- PKG_DEVELOPER may be undefined, meaning "no".
- Removed unused variables.
- Removed a trailing empty line.
2006-10-02 16:16:14 +00:00
rillig
dba58f8d58 Added a new compile-time check that detects the usage of the "=="
operator in test(1). It is enabled by default when PKG_DEVELOPER is
selected.

In my private bulk build of about 3700 packages, there had been no false
positive.
2006-10-02 15:42:47 +00:00
rillig
25e3638a11 Replaced ${RECURSIVE_MAKE} with ${SH}, so that the README.html files can
be generated again.
2006-10-02 09:37:09 +00:00
rillig
2527b18e5a Progress messages are prefixed with "sort-packages>", not "upload>". 2006-10-01 14:54:16 +00:00
rillig
f1509b7f5e Reformatted the header comment to be searchable by bsd.pkg.help.mk. 2006-10-01 14:53:30 +00:00
rillig
28034cde51 All the files in mk/ are searched for helping information.
Variable help texts may also start with the variable name, followed by a
colon.

The help message is more detailed.
2006-10-01 14:52:32 +00:00
rillig
02fa6bfec1 The value of PKG_OPTIONS_VAR is printed as is in an error message. This
makes "double quotes" visible when they are accidentally included by the
pkgsrc user.
2006-10-01 14:51:03 +00:00
joerg
3675902ba1 Remove XFree86. 2006-09-27 15:18:12 +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
salo
ede2607dbc Adjust MASTER_SITE_MOZILLA. 2006-09-25 14:13:17 +00:00
ghen
b255a2482c PR pkg/33876: use the actual package name instead of "this package" in
supported-options-message.  ok with wiz.
2006-09-25 08:23:59 +00:00
salo
b0143c74e0 Generalize Mozilla GTK2 packages in a comment. 2006-09-24 16:23:04 +00:00
salo
a69f682092 Describe "seamonkey" gecko option. 2006-09-24 16:22:42 +00:00
joerg
7545d135e6 - Compute CHEKCK_FILES filter on the entries requested and keep it
as tight as possible. Files we don't handle shouldn't be skipped.
- fonts.alias is not created automatically, so don't remove it.
- create fonts.encoding with mkfontdir using -e X11_ENCODINGSDIR.
  On platforms not following the X11R6 loayout this might need to
  be overriden.
- Fix type1inst calls.
- Modify packages which installed fonts.alias before to actually
  include it in the PLIST and bump the revisions accordingly.
- Modify xorg-fonts* packages to use FONTS_DIRS.* to build indices
  at run time.

Discussed with wiz and jlam.
2006-09-22 21:53:56 +00:00
rillig
262f164d43 Bugfix: In the #! interpreter lines, allow white-space behind the #!.
This fixes the build for audio/madman. Before, only some of the
interpreters had been replaced.
2006-09-19 20:51:34 +00:00
rillig
8a9fdf8254 Even if NO_CHECKSUM is set, the "checksum" target still needs to depend
on "fetch". Otherwise the distfiles are never fetched.
2006-09-19 00:03:44 +00:00
tron
6620b33b6b Define "NOLOGIN" to "/usr/bin/false" rather than ${FALSE} (which doesn't
contain the directory name) and don't set "_PKG_USER_SHELL" which should
really be private to "bsd.pkginstall.mk".
2006-09-18 15:11:37 +00:00
rillig
a9df3d8786 When $debug_log is set to ":" and at the same time $IFS is ":", the
command line

    $debug_log $arguments

tries to execute the empty command. This results in error messages of
the form

    cc[50]: : cannot execute   (IRIX)
    bash: : command not found  (Bash)
    : permission denied        (NetBSD /bin/sh)

Setting IFS to the original value as soon as possible fixes these bugs.

Fixes PR 34135.
2006-09-17 22:52:45 +00:00
rillig
6dbf373945 Fixed the "unknown command" error messages for debug_log, which is a
variable, not a shell function.
2006-09-17 18:46:00 +00:00
joerg
86ec0977ff Also ignore fontconfig cache like the "clasic" databases. 2006-09-17 17:02:38 +00:00
obache
1874782916 Now, gettext tools is available from devel/gettext-tools, so prioritize
gettext-tools over gettext.
2006-09-15 14:18:41 +00:00
rillig
5fbbc4d343 Bugfix: Missing shared libraries are reported again. This feature had been
broken since the introduction of delayed errors and warnings.
2006-09-14 22:00:49 +00:00
joerg
030dbf012a Add support for cpio archives. 2006-09-13 11:10:36 +00:00
jmmv
e738feda0d Add the nds@NFE locale directory, initially used by yelp-2.16.0. 2006-09-12 17:04:58 +00:00
jmmv
6bda98c0c6 Add a bunch of Spanish locale directories (es_*), initially used by
gnome2-applets-2.16.0.
2006-09-12 13:20:20 +00:00
joerg
b86e8f2641 Add description for psycopg[12] options used by www/py-django. 2006-09-11 11:40:57 +00:00
schwarz
cb784f6e64 cosmetic change 2006-09-10 20:19:39 +00:00
schwarz
aa38134c13 ${X11BASE} can now be set to /usr, so just do so for IRIX and OSF1. No need
for any artificial symlinking any more in bootstrap.
2006-09-10 20:14:43 +00:00
schwarz
94201593d3 ensure that -I and -L paths are correctly rewritten even if ${LOCALBASE}
contains ${X11BASE} (e.g. ${LOCALBASE} being /usr/local and ${X11BASE} being
/usr)
2006-09-10 19:49:53 +00:00
jmmv
1dd0b8c5b8 Add the gn locale directory, initially used by gnome-menus 2.16.0. 2006-09-10 17:08:25 +00:00
tron
5311471179 Fix PR pkg/34139 in a diffent way:
Setting "WRAPPER_SKIP_TRANSFORM" to "yes" isn't enough because "imake"
will invoke the C compiler which might be a wrapper script which always
fails because the package didn't use "USE_LANGUAGES+= c".

The "imake-check" script now simply uses the original command path before
"bsd.pkg.mk" modified and will therefore avoid using any wrappers.
2006-09-10 16:39:31 +00:00
schwarz
dd2de6f7ef improve imake support on IRIX 5 2006-09-10 13:44:58 +00:00
obache
33d4b2b7d2 Rename variable MAKEFILE to MAKE_FILE, as suggested in PR 28392. 2006-09-09 02:35:13 +00:00
jmmv
1e5e95d9bf Add the share/gtk-doc/html directory. This is already used by several
packages that do not remove this at all, and others will be migrated to
use it in the future.
2006-09-07 18:11:11 +00:00
wiz
a68d94c1e6 Describe libgpod option. Sort. 2006-09-06 22:57:01 +00:00
schwarz
d478480a96 use gzip -cd instead of gzcat, the latter not being available on all systems,
notably not being part of pkgsrc.
2006-09-03 16:36:37 +00:00
hira
0dbc81e89e Call imake(1) with `WRAPPER_SKIP_TRANSFORM=yes'. The arguments
should not be transformed by wrapper.  This fixes PR pkg/34139.
Reviewed by tron@.
2006-09-03 13:07:59 +00:00
wiz
9d3304f7eb Update MASTER_SITES (mirror.switch.ch).
From Jukka Salmi in PR 34457.
2006-09-03 10:21:52 +00:00
obache
ee65247b9c Added http://qgpop.dl.sourceforge.jp/ in MASTER_SITE_SOURCEFORGE_JP. 2006-09-02 15:10:38 +00:00
obache
5624d01004 SUNSITE in Tokyo University of Science has been closed,
so remove sunsite.{tus,sut}.ac.jp
2006-09-02 09:07:03 +00:00
obache
a76da5187a Canonical name of SourceForge.jp's DNS round robin download server is
`download', not `downloads'.
2006-09-02 08:13:07 +00:00
rillig
9a607f8e53 Instead of the variables CHOWN and CHGRP, the TOOLS_PLATFORM.* variables
need to be overridden to generate tool wrappers that also work when
called with their simple names (for example chown instead of ${CHOWN}).
2006-08-31 16:21:20 +00:00
dmcmahill
e141f363dc Add missing $NetBSD$ 2006-08-28 13:27:41 +00:00
schwarz
0f4045fde0 spelling correction 2006-08-26 19:07:00 +00:00
schwarz
b309575681 X11_TYPE being undefined cannot occur thanks to the preceeding line 2006-08-26 18:55:43 +00:00
minskim
6220854e14 Make sure that /usr/bin/wish exists before using it as a tool. 2006-08-25 10:03:02 +00:00
joerg
5c0a40494e Avoid spurious false negatives when the directories are reordered
during install phase by sorting explicitly.
2006-08-22 18:50:56 +00:00
schwarz
ffe01c2d57 it is not necessary to have a variable _EXTRACT_PATTERNS that contains
${EXTRACT_SUFX}, so one can directly use EXTRACT_ONLY instead.
EXTRACT_ONLY defaults to ${DISTFILES} which in turn defaults to
${DISTNAME}${EXTRACT_SUFX}. So if EXTRACT_SUFX is relevant for determining
which tools are needed this can only happen if neither DISTFILES nor
EXTRACT_ONLY have been set by the package, in which case the relevant
variable EXTRACT_ONLY would contain EXTRACT_SUFX.
2006-08-19 20:32:28 +00:00
schwarz
463b1f8ab6 only depend on the extract tools if there are actually any files to extract 2006-08-19 20:06:57 +00:00
tonio
4a6bf57917 document mutt-compressed-mbox option 2006-08-16 10:43:58 +00:00
wiz
ea6e146043 Update some more comments for teTeX2 removal. 2006-08-11 13:32: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
adrianp
b1fc0d3437 Add in FTP option for INGO update. 2006-08-10 14:30:36 +00:00
adrianp
d441d06525 Add in new options for mrtg and smokeping for latest updates. 2006-08-10 14:28:46 +00:00
minskim
69e7be5b27 Remove references to teTeX2. 2006-08-10 03:35:33 +00:00
jlam
76a1020667 Drop .ORDER declarations since pkgsrc doesn't support "make -j ...". 2006-08-09 15:31:01 +00:00
jlam
39b54abe7c Only acquire the localbase lock after acquiring root privileges. This
fixes "make install" using just-in-time su-to-root.
2006-08-09 15:25:49 +00:00
cube
7e44cbf35d Add "dvipdf" to the list of tools provided by ghostscript. 2006-08-07 14:54:14 +00:00
schwarz
ff389f044d CPP on IRIX 5 with IDO cc is /usr/lib/cpp 2006-08-06 18:59:41 +00:00
jmmv
476a9de1a8 Add the mg locale directory (to be used by libgtop2). 2006-08-06 11:36:59 +00:00
jmmv
74a4c2179c Handle the share/pkgconfig directory where platform-independent packages
(e.g. gtk-doc 1.6) want to install .pc files.
2006-08-06 09:35:39 +00:00
perry
132c931981 add an http: urls for gnome and gnu for the benefit of those with
broken ftp proxies
2006-08-06 04:56:50 +00:00
wiz
d46ae655fd Document sane-backends-hp3900. 2006-08-05 22:42:20 +00:00
rillig
a5c5777ae5 Fixed the locking, as suggested by Johnny on the tech-pkg mailing list.
Added two targets acquire-localbase-lock and release-localbase-lock,
which mark the complete LOCALBASE directory as locked, so that multiple
packages cannot run the install, deinstall or bin-install targets at the
same time.

The install target aquires locks in both WRKSRC and LOCALBASE, the other
two targets only need the LOCALBASE lock, since they may be run without
WRKSRC being present on the system.

locking.mk must be included before tools.mk and the PKG_FAIL_REASON
check.
2006-08-04 20:52:27 +00:00
reed
47ccc64eca Make sure requires and libs (PROVIDES) are set for
packages that use a sub-directory for prefix, like
/usr/pkg/qt3/.

(I have been using this for a couple years but recently
merged my patch over to new flavor mk file.)

Okayed by jlam on tech-pkg.
2006-08-04 14:11:29 +00:00
rillig
365f9b5258 Added bsd.options.mk to the help files. As an alternative to TOPIC,
topic may be used to avoid forcing people to use the shift key.
2006-08-04 07:34:25 +00:00
rillig
edafa3ed56 Rewrote the header comment so that "bin-install" can be found by "bmake
help".
2006-08-04 07:17:58 +00:00
rillig
2b12ad4712 Moved the bin-install target from bsd.pkg.mk to install/bin-install.mk.
Added documentation. Added locking around the real installation.
2006-08-04 07:04:38 +00:00
rillig
634ea54e44 In the "makedirs" target, it is clear that the lock file is always the
_WRKDIR_LOCKFILE and never _PREFIX_LOCKFILE, so use that to keep things
simple.

Replaced ECHO with ECHO_MSG in the message for creating the WRKDIR
symlink.
2006-08-04 06:27:27 +00:00
rillig
dbef31038e Moved the locking code from bsd.pkg.mk into its own file. Where here,
added a more detailed header comment and fixed a bug concerning lockdir.
2006-08-04 05:55:18 +00:00
rillig
7487a78a0c When installing or deinstalling a package, it is not enough to lock the
WRKDIR against foreign processes. Instead, the PKG_DBDIR is locked,
preventing other (pkgsrc) processes from modifying the set of installed
packages while another one is doing that.

This allows to use "bmake update" efficiently on multi-processor
machines by just running it in four different package directories.

Note that the pkg_add and pkg_delete tools may still interfere with this
locking when they are directly run.
2006-08-03 19:12:42 +00:00
salo
4d7889fa96 Add "itlocaledir" to the list of directory patterns to replace.
From Gilles Dauphin via PR pkg/34103
2006-08-03 16:49:48 +00:00
jlam
f3381a1115 Typo in comment. 2006-08-03 14:02:58 +00:00
rillig
dac043b875 Suppress the warning from make(1) that the error code is ignored when
files cannot be deleted.
2006-08-02 16:53:00 +00:00
tron
03fcef2986 Removed dead mirror "ftp.uk.kde.org" from list of KDE master sites. 2006-08-02 15:31:02 +00:00
rillig
0d658e0cae If the first word after the "#" is a variable name, the line above must
have been empty to qualify as a comment. Otherwise "make help
TOPIC=configure" shows a lot of misleading contents.

Removed the duplicate appearance of RCS Ids in the help texts, which
often occured when the help text was the header comment of a file.
2006-08-02 10:50:00 +00:00
rillig
b0c3ffe91b A common documentation format is to have the variable name as the first
word after the leading "#" for the comment. This format is also
recognized. The RCS Id of the current file is printed together with the
help text, so that the user can see which file defines the variable.

Removed the :M* operator for _HELP_AWK, since bmake has a bug when "" is
passed to the :M* operator. I've sent a bug report for this.
2006-08-02 10:29:47 +00:00
rillig
a532efd3df Added bsd.pkg.help.mk, which provides the "help" target.
Since more and more files follow the convention of documenting variables
in a common format, it makes sense to be able to get the documentation
of a single variable by simple means, instead of searching through the
whole mk/ directory.

Try "make help TOPIC=CONFIGURE_DIRS" for an example.
2006-08-02 09:46:22 +00:00
uebayasi
7e4fbabf50 http://prdownloads.sourceforge.jp/ doesn't work for me. Remove it. 2006-08-02 07:09:52 +00:00
schmonz
51cec25da6 Pass CPPFLAGS in conf-cc and LDFLAGS in conf-ld. 2006-08-02 02:25:46 +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
jlam
5aa00032dc From the second point in Krister's mail to tech-pkg:
http://mail-index.netbsd.org/tech-pkg/2006/07/30/0005.html

   2. Too much is logged in the .wrapper.log

       The wrappers log quite a lot of detailed information by
       default, with the result that my .work.log file is 176236028
       bytes {for ghc}.

       The wrapper functionality is mature, so this detailed
       information is seldom needed, and you can in general determine
       what happened by looking at the input/output-lines (i.e.
       those lines marked as "[*]" and "<.>" in the .work.log).
       I would therefore like to change the default behavior to
       only log the input/output-lines.

Flip the switch for WRAPPER_DEBUG from "yes" to "no" by default so
that the detailed and rather verbose "push", "pop", "transform", etc.
messages are not printed.  While here, also make WRAPPER_DEBUG a
pkgsrc-private variable by prepending with an underscore.
2006-07-31 14:53:45 +00:00
jlam
50086541bd Use 'debug_log' instead of 'msg_log' so that these wrapper internals aren't
exposed unless WRAPPER_DEBUG is set to "yes".
2006-07-31 14:43:48 +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
dmcmahill
c667b853e3 Update the usage output to reflect current reality. Noted by Stoned
Elipot.
2006-07-28 20:52:35 +00:00
dmcmahill
99b57ce645 remove spurious empty line at the top of the summary files 2006-07-28 18:41:53 +00:00
dmcmahill
63bfc354d4 Allow the binpkg-cache script to also generate pkg_summary.gz files
if requested.  Suggested by Joerg Sonnenberger.
2006-07-28 02:41:07 +00:00
lukem
0c96f9fca5 Remove ftp.au.netbsd.org. 2006-07-27 23:07:18 +00:00
jlam
d5fdba9ab3 Add back CONFLICTS handling that was accidentally left out when revision
1.1 of this file was committed and the same code was removed from
bsd.pkg.mk.
2006-07-27 22:16:06 +00:00
jlam
b5e83f7d36 Remove all uses of the following targets from pkgsrc:
show-all-depends-dirs
	show-all-depends-dirs-excl

Replace them with calls to pkgsrc/mk/scripts/depends-depth-first.awk
which does the same thing but without the extra overhead of invoking
a recursive make.
2006-07-27 22:01:28 +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
joerg
03cba20b8e Make the language warning a bit less forceful, since it is often a false
warning.
2006-07-27 20:07:06 +00:00
jlam
ccdf6dbe01 Rename "SITES_* to "SITES.*" for file-specific lists of sites from which
to fetch the file.  This completes the renaming described in revision
1.1799 of bsd.pkg.mk.
2006-07-27 18:48:02 +00:00
jlam
182dc839b5 Document the targets in fetch-list.mk. 2006-07-27 17:29:57 +00:00
jlam
1796f4ff8a Note that "fetch-list" is a public target. 2006-07-27 17:28:38 +00:00
jlam
bac7fb376d Remove an unnecessary recursive make invocation. 2006-07-27 17:23:16 +00:00
jlam
cb7b7bfbd8 Replace this:
for i in `cmd`; do ...; done

with this:

	cmd | while read i; do ...; done
2006-07-27 17:14:56 +00:00
jlam
817fd9ec0d All of the other *SITES* variables are plural, so rename DYNAMIC_SITE_*
to DYNAMIC_SITES_* for consistency.
2006-07-27 16:06:27 +00:00
jlam
e7af7b2e05 Apply the "convention over configuration" principle:
If ${FILESDIR}/getsite.sh exists, then use it to determine the fetch
URL for each of the distfiles for the package.  Otherwise, use
SITE_<file> and MASTER_SITES, in order, to determine the URL for each
distfile.

If the script path differs from ${FILESDIR}/getsite.sh, then set
DYNAMIC_SITE_SCRIPT to the full path to that script.

Remove the need to set DYNAMIC_MASTER_SITES explicitly in the package
Makefile for:

	graphics/ns-cult3d
	wm/sawfish-themes
	www/apache-tomcat55
	www/jakarta-tomcat4
	www/jakarta-tomcat5
2006-07-27 15:16:44 +00:00
rillig
be75f6ee56 The intention behind REPLACE_BASH was to make replacing /bin/sh with
${BASH} easy, so the pattern that is replaced is now .*sh instead .*bash.
2006-07-27 14:51:54 +00:00
jlam
d5f750aa08 The ORDERED_SITES variable defined in fetch.mk was made private in
revision 1.14, so reflect that in the usage in fetch-list.mk.  This
fixes PR pkg/34075.
2006-07-27 13:51:21 +00:00
jlam
6a569e5eb8 After auditing all the packages the ensure that they never invoke the
compiler toolchain until the configure stage, move the "wrapper" stage
back to between "patch" and "configure".

This makes "make extract NO_DEPENDS=" work again for all packages.
2006-07-27 13:47:29 +00:00
rillig
ac35deefb7 Documented DIST_PATH and fixed two typos (${TARGET} is not ${.TARGET}). 2006-07-27 07:41:40 +00:00
jlam
f06c908670 Pass MAKECONF down to recursive make processes to ensure they all use
the same ${MAKECONF} file.
2006-07-26 21:23:40 +00:00
jlam
0da14467e5 Ensure that the just-in-time su command invoked has the same environment
as other recursive make processes (PKGSRC_MAKE_ENV).
2006-07-26 19:29:14 +00:00
drochner
e3a30663ee add a missing PHONY 2006-07-26 18:29:46 +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
jlam
f065d908d0 Move barrier to just after the depends phase. This allows both the
"tools" and "wrapper" phases to be able to expect all the dependencies
to be installed already.
2006-07-25 18:04:25 +00:00
jlam
af66f920c9 BUILD_ENV was renamed to PKGSRC_MAKE_ENV. 2006-07-25 16:04:44 +00:00
rillig
5092ccdc95 Whenever f2c is mentioned in USE_LANGUAGES, a C compiler is also needed,
so automatically add it to USE_LANGUAGES. Fixes PR 34079.
2006-07-25 10:20:03 +00:00
wiz
8af4c67976 Remove comment for non-existing USETBL. 2006-07-24 16:50:27 +00:00
wiz
84159cda4e Describe groff-docs. 2006-07-24 16:49:55 +00:00
jlam
7e75e0ad89 The proper phase to run just before "configure" is "patch", not
"wrapper", after "wrapper" was moved to be between "tools" and "extract".
This should fix PR pkg/34061.
2006-07-23 15:33:16 +00:00
wiz
078ec42655 Remove mirrors.sunsite.dk because it causes hangs in the
weekly distfiles fetch.
2006-07-23 14:11:52 +00:00
wiz
0b9a3594c5 Remove cran.dk -- causes hangs for weekly distfiles mirror job. 2006-07-23 13:28:14 +00:00
jlam
77b719dae8 Modify the barrier so that we always invoke the recursive make process
when passing through the barrier.  This ensures the PATH (passed via
PKGSRC_MAKE_ENV) is correctly set for all phases after the barrier.

This fixes a bug in "interactive" pkgsrc use, where if you have no
work directory and type "make build && make install", then the "install"
step does not have a PATH set to include all the wrapper and tools
directories.
2006-07-22 16:31:35 +00:00
rillig
15c11119af The C compiler is also used for Objective C, so the c-fail-wrapper is
only created if none of these languages is mentioned in USE_LANGUAGE.
2006-07-22 05:01:17 +00:00
jlam
7d1f4cca8e "BUILD_ENV" was misnamed. It's actually the environment that is passed
to all internal recursive make processes.  As such, rename it to
"PKGSRC_MAKE_ENV".

XXX Note, some of the usage of this variable in package Makefiles seems
XXX incorrect.  They probably want "MAKE_ENV", which is the environment
XXX passed to the make process when running "make" within ${WRKSRC}.
2006-07-21 14:27:56 +00:00
jlam
4011c5cff2 Rearrange sequence so that "wrapper" occurs between "tools" and
"extract".  This allows all user-definable targets (pre-*, do-*,
post-*) to have access to the wrapper scripts.
2006-07-21 14:21:28 +00:00
jlam
80369fb5c8 Modify the shlib-type script so that it doesn't need to compile anything
-- instead, we just check "pkg_info", which should exist on all pkgsrc
platforms.

XXX Note that this may need to change when we later support other package
XXX system flavors.

Back out revision 1.79 of pkgtools/x11-links/Makefile which was only to
work around needing a C compiler for shlib-type to work.
2006-07-21 13:40:27 +00:00
jlam
8f3802b3d9 Remove USE_GNU_GETTEXT from pkgsrc. Packages generally only needed
it for plurals support, but that is already handled correctly (FSVO
"correctly") by the pkgsrc/mk/tools/msgfmt.sh script.

Also remove _USE_GNU_GETTEXT definitions from pkgsrc/mk/platform/*.mk
files as that value has been unused by pkgsrc for quite some time
(going back several branches).
2006-07-20 20:02:23 +00:00
jlam
574f8fe190 Make _show-dbginfo-configure work for packages that don't set
CONFIGURE_ARGS.  We guard against an empty CONFIGURE_ARGS to prevent
the ODE variable loop from expanding to an empty value.
2006-07-20 19:00:50 +00:00
rillig
8774cc5fc5 CONFIGURE_ARGS are processed by an ODE "for" loop, since that prevents
an empty line from being printed when the variable is empty. It also
removes the need for special handling of "<".
2006-07-20 17:56:27 +00:00
jlam
6bd385f1bb Use an ODE variable loop instead of a make .for loop to output the list
of "TOOL" variables defined by the tools framework.
2006-07-20 17:40:45 +00:00
rillig
63572ebd6f Added the build-env target. 2006-07-20 17:31:20 +00:00
rillig
98a199bc4d Include the file bsd.pkg.debug.mk if requested by invoking the "debug"
target.
2006-07-20 17:16:43 +00:00
rillig
5902b29ca6 Oops, there had been an RCS tag that should not have been expanded. 2006-07-20 17:14:26 +00:00
rillig
680b655fe9 Added the "debug" target, which outputs a lot of information helping in
debugging packages that have build problems.
2006-07-20 17:10:45 +00:00
rillig
1e90e68755 Up to now, the language "c" has always been enabled, no matter if the
package said USE_LANGUAGES=#none or USE_LANGUAGES=fortran. Added a
c-fail-wrapper that works like the other fail-wrappers. The default
value for USE_LANGUAGES is still "c". Some problems are expected with
packages that say USE_LANGUAGES+=c++ or with packages containing GNU
configure scripts and setting USE_LANGUAGES=c++, as those scripts always
need a working C compiler.
2006-07-20 16:44:01 +00:00
jlam
5ffee8aef3 Don't bother with error messages when attempting to remove the "work"
symlink in the pkgsrc tree in case it's actually a stale work directory.
This gets rid of this error:

===> Cleaning for pkg_install-20060701
rm: work: is a directory
*** Error code 1 (ignored)
2006-07-20 15:42:04 +00:00
jlam
33879949fb The package directory path is "PKGPATH", not "PKG_PATH", which is used
by pkg_add(1).
2006-07-20 14:17:48 +00:00
jlam
7c21fc1820 Change last instance of _REPLACE.* to REPLACE.*. Remove special
_REPLACE.* handling from replace-interpreter.mk.
2006-07-20 13:54:44 +00:00
joerg
eeaca99630 verify_file() returns a non-zero result whenever the distfile does not
currently exist. This triggers a bug in the Bourne shell of at least
DragonFly and Irix, when set -e is also active. Remove set -e to avoid
this. Discussed with jlam@, shown by DragonFly bulk builds, complains on
DragonFly's user list and PR 34036.

A test case for this shell bug is, which should return 0:

set -e

testf () {
	test -f /nonexistent || return 1
	return 0
}

if testf; then
	exit 1
fi
exit 0
2006-07-20 13:31:08 +00:00
jlam
159d2f8131 Remove ${SED} check that no longer works. 2006-07-20 13:19:29 +00:00
jlam
fa2d895a21 Be more conservative and avoid possible shell implementation differences
by not using `...` inside ${...#...}.
2006-07-19 22:26:26 +00:00
jlam
f1759fb181 Handle case where {SH,}LIBTOOL_OVERRIDE is empty for shells that don't
understand empty lists in for loops.  Addresses PR pkg/34042.
2006-07-19 22:07:13 +00:00
jlam
7af716330d Drop support for LTCONFIG_OVERRIDE. For quite a long time, pkgsrc
had actually been ignoring LTCONFIG_OVERRIDE anyway and just using
the default LIBTOOL_OVERRIDE to replace libtool scripts in packages.
This just formalizes the fact that LTCONFIG_OVERRIDE is not used
meaningfully by pkgsrc.
2006-07-19 19:14:37 +00:00
jlam
034c5b9566 Add messages noting when the PRE-INSTALL and POST-INSTALL actions are run. 2006-07-19 18:05:35 +00:00
jlam
c88a32be7d Make "mirror-distfiles" less verbose by not printing out anything if no
bootstrap dependencies need to be built and installed.
2006-07-19 16:01:40 +00:00
jlam
ec6f4ba413 Comment the code a bit more. 2006-07-19 15:13:40 +00:00
jlam
cc5761ea0f The "makedistinfo" target should actually be named "distinfo" to match
the old bsd.pkg.mk behavior (noted by adrianp in private email).  Keep
"makedistinfo" as an alias for "distinfo".

While here, sprinkle some .PHONY declarations for correctness.
2006-07-19 14:54:56 +00:00
jlam
ae7cf87ca5 Only pass -v to the fetch script if PKG_VERBOSE is set. 2006-07-19 14:25:59 +00:00
jlam
cbcfa6d0b5 Restore original quoting from old fetch.mk for _ORDERED_SITES to resolve
the problem with MASTER_SORT*.

XXX The whole MASTER_SORT* thing should just be a standalone script.
2006-07-19 14:22:47 +00:00
jlam
2936f01adf Add a verbose flag to the fetch script to output the actual fetch command. 2006-07-19 14:16:29 +00:00
jlam
d2df49806c Make some variables "private":
MASTER_SORT_AWK
	SORT_SITES_CMD
	ORDERED_SITES

These variables are purely internal to pkgsrc.
2006-07-19 14:03:59 +00:00
jlam
16335bb8a4 Work around incomprehensible quoting mess surrounding MASTER_SORT* by
in do-fetch-file (formerly they were inserted by the old _FETCH_FILE
inserting some quotes that are no longer added by the fetch command list
macro).  This makes fetching with MASTER_SORT* set work again.
2006-07-19 14:01:29 +00:00
jlam
1302d118e8 PASSIVE_FETCH only affects "ftp", so move it to the ftp-related FETCH_*
variables.
2006-07-19 13:33:42 +00:00
jlam
4c09a7046a Convert _FETCH_MESSAGE to plain old FETCH_MESSAGE. Remove _FETCH_MESSAGE
processing from mk/fetch/*.mk.
2006-07-18 23:27:14 +00:00
jlam
833691e2fe Overhaul fetch module:
* All the smarts is now encapsulated in the "fetch" script.  The fetch
  script understands how to use the distinfo file (if specified) to
  look up the size and checksums of the file to fetch and will use
  that information to verify checksums of the fetched files or resume
  transfers of interrupted fetches.

* Move the default settings for FETCH_RESUME_ARGS and FETCH_OUTPUT_ARGS
  for "ftp" from mk/defaults/mk.conf into mk/fetch/fetch.mk.  We rewrite
  it to avoid needing conditional statements.

* Avoid spawning a new make(1) process just to mirror a distfile.

* Split out fetch-list targets into a separate file fetch-list.mk.
  These targets should probably be moved into a standalone script.

* Fix distclean target to properly remove partial downloads.
2006-07-18 22:41:06 +00:00
jlam
3c73469517 Add a flag "-s suffix" for allowing the specified files to have a suffix
that will be removed before looking up the checksum in the distinfo file.
2006-07-18 21:39:39 +00:00
gdt
cd807f496b During 'make replace', use pkg_admin to set the unsafe_depends
variable to YES for each pacakge that depends on the replaced package.

Discussed on tech-pkg with generally positive comments.
2006-07-17 18:18:42 +00:00
wiz
ad211bc06f Remove stale comment, noted by bad@ in PR 33871. 2006-07-17 18:07:06 +00:00
jlam
e65b7c1371 First cut at a fetch script to replace the humungous fetch "macros" in
fetch.mk.  This script currently completely replaces the functionality
in _FETCH_FILE.  I will eventually add the ability to resume a file
transfer to this script.
2006-07-17 15:34:22 +00:00
jlam
ecea1ccbaa Don't say "ERROR:" or "WARNING:"... be a more typical shell script by
just noting the error or warning to standard error.
2006-07-17 14:32:26 +00:00
rillig
ebb2a82ae6 Added LOCALBASE, PKGINFODIR and PKGMANDIR to _BUILD_DEFS, since they
influence the way the package is installed. Also, they are so commonly
used that it would be a nuisance to add it to every package Makefile.
2006-07-17 13:35:11 +00:00
schmonz
0a53ed9007 Remove duplicate files from ${ALLFILES}. This doesn't affect the
"fetch" target, but it does affect the "checksum" target's shell
script, which errors out on the second occurrence of a file. The
shell script should perhaps also be fixed, but it seems sensible
regardless for ${ALLFILES} not to contain duplicate filenames. As
a side effect, the file list is sorted.

Regression found by building mail/qmail with the "qmail-netqmail"
option, which adds to PATCHFILES a file that's already in ${DISTFILES}.
Arguably this is gross, but it worked before, and now works again.

Tested on my usual pkg_comp(8) build of 200+ packages, with an
initially empty ${DISTDIR} and ${PACKAGES}. Thanks seb@ for the
more idiomatic make(1) construction.
2006-07-17 02:13:11 +00:00
rillig
2221827892 Split the variable BUILD_DEFS into those that are defined by packages
and those that are defined by the infrastructure (_BUILD_DEFS). This
allows the build-defs-message target to be moved to the end of
bsd.pkg.mk. Now it prints the correct result even in unprivileged
builds, which had been wrong due to the order in which the files have
been included. For example, ${UNPRIVILEGED_USER} was displayed as (not
defined) although its value was defined, which could be checked with
"bmake show-var".

Tested with one package that _does_ define BUILD_DEFS and with one that
doesn't. The behavior stays the same.
2006-07-15 23:58:52 +00:00
rillig
8db27f7fe7 Converted the header comment to the canonical form. Changed the
definitions of CHOWN and CHGRP so that they still include the command
that is skipped, which is useful when viewing the build logs.
2006-07-15 20:47:43 +00:00
rillig
5c048c44f3 Fixed dead links in the automatically generated README.html files. From
OKANO Takayoshi in PR 34006.
2006-07-15 20:08:33 +00:00
rillig
69811464e9 Added some common script interpreters (awk, bash, sh) that can be
replaced automatically by defining REPLACE_AWK, REPLACE_BASH or
REPLACE_SH and an appropriate addition to USE_TOOLS.

The replace-interpreter.mk file is included unconditionally because the
number of variables that would trigger the inclusion of this file is
quite large.
2006-07-15 09:52:00 +00:00
adrianp
b6cc1e2e00 +freeradius-simul-use 2006-07-14 22:02:32 +00:00
jlam
01df22aa06 Add a "bootstrap-register" target used specially by the bootstrap script
to register packages that were installed by the bootstrap script.
2006-07-14 17:37:03 +00:00
jlam
6fd7abf147 Avoid using # and % to strip prefix/suffix from variable values -- not
enough agreement on how that should work amongst Bourne shell variants.
2006-07-14 16:17:08 +00:00
heinz
37b9df590f Fixed default path wildcards for CHECK_INTERPRETER_SKIP. Now they
actually apply to the whole subtree.
2006-07-13 19:07:54 +00:00
jlam
a29e44f51b Check whether the "checksum" target is defined beforehand to prevent
"duplicate script" collisions with the one defined by bsd.pkg.mk if
PKG_*_REASON is set.
2006-07-13 18:42:45 +00:00
jlam
a76b31a4d6 Check whether the checksum target is defined before defining one.
This fixes problems where a package sets PKG_*_REASON, which causes
bsd.pkg.mk to define its own "checksum" replacement, which causes a
"duplicate script" make error to occur.
2006-07-13 18:40:33 +00:00
jlam
8d03d36b6a * Fix bug when more than one file needed to be checksummed.
* Avoid shell differences between /bin/sh and Korn shell by using:

	while read line; do list; done < FILE

  instead of

	cat FILE | while read line; do list; done
2006-07-13 16:44:14 +00:00
jlam
7ef83e7139 Try to avoid possible differences in processing "$@". 2006-07-13 16:23:14 +00:00