Commit graph

1506 commits

Author SHA1 Message Date
seb
b6b6fefbf6 Quote '+' in awk regexp related to PLIST and INFO_FILES.
As seen in devel/libg++ with its libg++.info file...
2004-02-16 11:28:13 +00:00
seb
daa975015f Use relative to ${WRKSRC} pathnames in do-gnu-missing-override target
by cd'ing into it. Also symlink the missing script instead of copying it.
2004-02-14 18:29:17 +00:00
jlam
c24ff672f7 Make LIBTOOL_OVERRIDE more powerful by taking a list of shell globs
relative to ${WRKSRC}.  Also automaticslly set LIBTOOL_OVERRIDE if
USE_LIBTOOL is defined, as the vast majority of packages need both if they
need USE_LIBTOOL.  The default LIBTOOL_OVERRIDE overrides libtool scripts
up to a directory depth of 2 within ${WRKSRC}.

Note that SHLIBTOOL_OVERRIDE must still be set manually in package
Makefiles that need it; however, it's also been changed to be a list of
shell globs relative to ${WRKSRC}.
2004-02-14 17:18:49 +00:00
jlam
9822f69382 Make CONFIG_{GUESS,SUB}_OVERRIDE slighly more powerful by allowing them to
be lists of shell globs relative to ${WRKSRC}.
2004-02-14 15:22:42 +00:00
jlam
e694fd214d Change into ${WRKSRC} first so that shell globs expand properly. 2004-02-14 15:16:31 +00:00
jlam
9ae3d0260c Some shells barf if the for loop list is empty, so avoid that. 2004-02-14 13:58:34 +00:00
jlam
f598249781 Default to overriding config.status after GNU configure has been run. We
don't want it to execute during the build phase as it might overwrite
post-configure changes we might have made to the generated files.  Packages
that don't want this behaviour can simply set:

	CONFIG_STATUS_OVERRIDE=	# empty

in the package Makefile.
2004-02-14 13:54:28 +00:00
grant
54133ebbb0 deprecate Zoularis: remove any tests for ZOULARIS* and bomb if
${LOCALBASE}/bsd/share/mk/zoularis.mk exists.
2004-02-14 03:26:09 +00:00
jlam
1e761fc8e2 GNU configure scripts generated by newer autoconf sometimes try to
save the value of LDFLAGS, CPPFLAGS, etc. in the config.cache file.
However, they don't store the value correctly if it contains leading
spaces.  This leads to sub-configure scripts that examine to cache to
error out saying that the build environment changed.  Use a make
variable trick to strip off all of the leading spaces on these variables
when passing them via CONFIGURE_ENV.
2004-02-14 02:28:19 +00:00
grant
6f27874b98 if using GNU configure and CONFIG_{GUESS,SUB}_OVERRIDE is not defined,
default to overriding ${WRKSRC}/config.{guess,sub} so packages can
recognise platforms such as NetBSD/shark.
2004-02-14 00:40:55 +00:00
wiz
6fdf068086 Fix spelling of "suffixes". From Todd Vierling in PR 24400. 2004-02-13 19:02:07 +00:00
sketch
a824d68d32 Allow more case variations on "Makefile" to be included in USE_PKGLOCALEDIR
transformations.
2004-02-13 12:03:06 +00:00
jlam
823b439aa9 typo in comment 2004-02-12 23:12:27 +00:00
xtraeme
e9b16f0801 Enable EXTRACT_{ONLY,SUFX}= .rar. Ok'ed by jlam 2004-02-12 21:29:28 +00:00
seb
15e433f451 Always add --x-{includes,libraries}=${X11BASE}/{include,lib}
to CONFIGURE_ARGS if USE_X11 is defined  i.e no need to special case
xpkgwedge usage.

Please note that previously these were added to CONFIGURE_ARGS
as soon as xpkgwedge was used even if the package did not actually
defined USE_X11 or something implying it.
2004-02-12 15:34:18 +00:00
jlam
2e64cac841 Double-check that the files named in GNU_MISSING_OVERRIDE actually exist
before replacing them.
2004-02-12 13:39:57 +00:00
jlam
b86fdace10 GNU_MISSING_OVERRIDE is a list of files relative to ${WRKSRC} that are
replaced by pkgsrc/mk/gnu-config/missing.  This avoids requiring
autoconf and automake as hidden build dependencies when they're not ever
invoked by the build process.
2004-02-12 13:30:04 +00:00
jlam
46be3a2bb2 Remove trailing whitespace. 2004-02-12 13:16:02 +00:00
jlam
5a33ba7f62 Several GNU configure scripts (old ones, typically) can't handle it when
"${MAKE}" contains forward slashes.  Just pass the bare name of ${MAKE} to
the configure phase as we ensure that "make" is always calling the correct
one symlinked into the .tools directory.
2004-02-12 09:59:48 +00:00
seb
d9d8a581de Make pathnames listed in CONFIG_STATUS_OVERRIDE relative to WRKSRC. 2004-02-12 08:55:33 +00:00
xtraeme
3734d75394 Add another mirror to MASTER_SITE_SUSE, needed for emulators/suse_x11
package.
2004-02-11 10:34:05 +00:00
jlam
322907088c The values of CC are CC_VERSION are redundant. Just use CC_VERSION. We
record it only if the package actually used the compiler.
2004-02-10 22:33:47 +00:00
jlam
99b8496906 Turn PERL5_REQD into a list of values, the highest of which will be used
to choose the correct Perl dependency.
2004-02-10 02:18:04 +00:00
jlam
7640e84b2d Limit xargs to 256 args when passing args to ls for the package size
computation.  The motivation for this is that kdelibs3 was overflowing ls
through xargs.
2004-02-09 05:42:57 +00:00
jlam
c87c81fc09 Also turn shlibtool into a shell script instead of a symlink. This
duplicates the change made in rev. 1.1368 for libtool.
2004-02-09 01:52:14 +00:00
jlam
8396978738 We need the full path to the libtool that needs to be invoked when we
use LIBTOOL_OVERRIDE.  In the buildlink[23] case, that is supposed to be
the one in ${BUILDLINK_DIR}.  Create new private variables _LIBTOOL and
_SHLIBTOOL to hold these paths.
2004-02-09 01:30:59 +00:00
seb
5382b9e4ab It's not PKGSHLIBTOOL anymore but PKG_SHLIBTOOL. 2004-02-08 10:39:35 +00:00
jlam
7edd809ba5 Use ${PKG_LIBTOOL} to refer to the full path to the real libtool. 2004-02-08 03:50:43 +00:00
jlam
3f0c4ee09a * Let CC/CXX/CPP/FC always point to the compiler used in the actual
building of software.  For packages that use either buildlink2 or
  buildlink3, this would be the wrapper script in ${BUILDLINK_DIR}.

* Garbage-collect _BLNK_WRAP_SETENV.* as those are not needed after
  the above changes.  Configure and make processes will automatically
  find the right compilers in the PATH.

* PKGLIBTOOL and PKGSHLIBTOOL are no longer needed since LIBTOOL and
  SHLIBTOOL point to the correct libtools regardless of any
  USE_BUILDLINK[23] definitions.
2004-02-08 02:59:14 +00:00
jlam
8637091a4a Don't pass PREPEND_PATH via MAKEFLAGS as that overrides whatever value
that we're trying to compute for PREPEND_PATH.  Instead, pass it through
the environment.
2004-02-07 02:56:14 +00:00
jlam
c49973f61a If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
fixes breakage when executing the just-in-time su targetes.
2004-02-06 18:45:02 +00:00
jlam
fd4c71ddde Allow an empty USE_LANGUAGES setting to not break in show-shlib-type.
If we're not compiling anything, we're likely not installing any shared
libraries.
2004-02-06 03:10:29 +00:00
jlam
bed8d4d73e We only prepend a directory to the PATH if we haven't already done so
(by checking PREPEND_PATH) and only for those phases of the build that
care about the PATH (buildlink or later).  We also pass the PATH to
those same phases of the build so that executing ${CC} will work correctly
from custom {pre,do,post}-* targets that occur at buildlink time or
later.
2004-02-06 03:04:50 +00:00
hubertf
0fa1a52030 Back out bikeshed material added in rev. 1.1371 2004-02-05 17:20:46 +00:00
jlam
5bd1a3cdb9 Pass the PATH when executing ${CC} so that the compiler may be found when
CC is something like ccache or distcc that relies on finding the true
compiler in the PATH.
2004-02-05 07:37:48 +00:00
hubertf
f3d1d8cfb0 When a pkg is already found install, tell the user to 'make deinstall'
instead of running pkg_delete to be consistent with the other commands
(which all use 'make ...').
2004-02-05 05:05:54 +00:00
jlam
629be8a499 Include bsd.compiler.mk inside both bsd.pkg.mk and bsd.prefs.mk and define
a stack-like mechanism in bsd.prefs.mk to detect when a we're inside
bsd.prefs.mk.
2004-02-05 03:37:47 +00:00
jlam
33bcdd24b7 Kerberos-using packages now set CRYPTO, not RESTRICTED. Approved by pkgsrc
PMC.
2004-02-02 11:34:17 +00:00
jlam
bfa06a27b3 When overriding libtool in the source directory, replace it with a shell
script that invokes the correct libtool instead of using a symlink.  This
fixes the problem where libtool was invoked by /bin/sh regardless of
whether libtool was built to be run by /bin/ksh instead.
2004-02-01 01:09:09 +00:00
xtraeme
3ac6ad1ffd Add some new variables for manual pages when using imake.
They are:

	o IMAKE_KERNMAN_DIR (man4 or cat4)
	o IMAKE_MISCMAN_DIR (man7 or cat7)
	o IMAKE_KERNMAN_SUFFIX
	o IMAKE_MISCMAN_SUFFIX

Ok'ed by Hubert Feyrer in private email.
2004-01-31 16:52:16 +00:00
jlam
e9dde6bfe9 It's GNU_CONFIGURE_PREFIX, not CONFIGURE_PREFIX. 2004-01-31 07:07:33 +00:00
grant
be21271b07 let tools.mk decide whether GNU patch is needed. 2004-01-29 10:22:01 +00:00
grant
01b9c194a6 add GNU gnu patch(1), to override patch(1) on some platforms. 2004-01-29 09:38:10 +00:00
jschauma
1cce0bd065 Some licenses are pretty long, so use $PAGER instead of $CAT, if $PAGER
is set.
2004-01-28 20:29:46 +00:00
agc
c156ab5d49 Replace all occurrences of the "MAIL" definition with MAIL_CMD, since
some shells can set MAIL to be the mailbox of the user, and
environment variables will override assignments in make when using
conditional assignments.
2004-01-27 16:11:47 +00:00
jlam
2116fcb603 "fetch" is also a distinct build phase. 2004-01-27 02:36:59 +00:00
heinz
4d478bb0cf Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248 2004-01-26 21:10:31 +00:00
grant
d85f19a094 show-needs-update target: run ${MAKE}, not "make". 2004-01-25 16:12:40 +00:00
grant
57eb61a5d6 run GNU configure scripts with ${CONFIG_SHELL}, which defaults to
${SH} when GNU_CONFIGURE is defined.

fixes problems on Solaris and BSDI with some GNU configure scripts.
2004-01-25 10:36:15 +00:00
xtraeme
7c90204834 Removed XFree86-libs dependency if we are trying to use XFree86
packages from pkgsrc, it's not really needed with the latest change
to x11-links.
2004-01-25 07:47:00 +00:00
grant
677c8663d9 g/c USE_GMAKE. nothing uses it anymore. 2004-01-25 02:37:49 +00:00
xtraeme
c0f8903bb6 Added a new variable for XFree86 packages:
USE_PKGSRC_XFREE86

By default it is disabled, if you want to use XFree86 packages from
pkgsrc, please add "USE_PKGSRC_XFREE86=YES" in /etc/mk.conf.
2004-01-24 09:23:22 +00:00
jlam
018df25438 Move all of the code that sets USE_XPKGWEDGE from bsd.pkg.mk into
bsd.prefs.mk as it's needed in setting X11PREFIX to the correct value,
which is also done in bsd.prefs.mk.  This is the follow-through to the
temporary fix in previous revision (1.141) of bsd.prefs.mk.
2004-01-23 17:55:17 +00:00
jmmv
cd39cfd5a5 Add http://osdn.dl.sourceforge.net/sourceforge/ as a master site for
Sourceforge.
2004-01-23 17:04:55 +00:00
xtraeme
582b323b23 Add three additional mirrors to MASTER_SITE_SUSE. 2004-01-22 10:19:58 +00:00
jlam
3306fc00c1 Introduce concept of the "phase" that we're in as we progress through
fetching, extracting, configuring, building, etc. of a package.  We
can check what phase we're in by examining the value of ${PKG_PHASE}
and comparing against PHASES_AFTER_<phase>, which list phases that
are "greater than or equal to" <phase>.

One useful example of how to use PKG_PHASE is:

.if !empty(PHASES_AFTER_EXTRACT:${PKG_PHASE})
#
# Some variable settings or targets here that rely on dependencies to
# already be installed, or ${WRKDIR} to be created, etc., as these are
# things that should have happened by the time "make extract" is
# completed.
#
.endif
2004-01-21 18:13:27 +00:00
snj
e0220ad330 s/it's/its/ 2004-01-20 22:15:21 +00:00
jlam
eb35df0213 Fix PERL5_REQD=5.8 to mean that we want to install lang/perl58. Before,
we were expecting PERL5_REQD=5.8.0.
2004-01-19 23:47:41 +00:00
jlam
cebb84d3d5 Allow CONFIG_STATUS_OVERRIDE to override config.status scripts generated
by GNU configure scripts at CONFIGURE_POSTREQ time.  The new config.status
scripts merely return success.  This prevents newer Makefiles from
re-running the configure script with the wrong shell environment if we've
touched some GNU autotool-related files during the patch stage.

We might want to always do this, i.e. make this opt-out instead of opt-in.
However, we start with opt-in so that no existing packages can break.
2004-01-19 15:04:05 +00:00
jlam
69bbf64eeb Remove some extraneous commands and switch some targets to be conditionally
defined.
2004-01-19 14:54:26 +00:00
jlam
c5bccee28b We only need the special PLIST info-file handling if we're using static
PLISTs.  Dynamic PLISTs automatically list the installed info files in the
PLIST.
2004-01-18 00:51:30 +00:00
rh
8c4d9ffa48 Add *RECOMMENDED variables as discussed on tech-pkg@ to allow for a more
fine-grained distinction between required versions of pre-requisites
(DEPENDS) and versions that are recommended for security or library ABI
consistency reasons (RECOMMENDED).

  The contents of ${RECOMMENDED} are added to DEPENDS unless
IGNORE_RECOMMENDED is set to YES, in which case a warning will be printed
and IGNORE_RECOMMENDED will be added to BUILD_DEFS.

  Add a corresponding BUILDLINK_RECOMMENDED.<pkg> variable for use with
buildlink2 and buildlink3.
2004-01-14 06:57:45 +00:00
jlam
3e34cdfbed Differentiate between MAKE_FLAGS passed to the build, test and install
targets by using BUILD_MAKE_FLAGS, TEST_MAKE_FLAGS, and INSTALL_MAKE_FLAGS
in the respective targets.  All of the new variables default to
${MAKE_FLAGS} to preserve the current behaviour.
2004-01-13 00:40:25 +00:00
grant
1ab78e5ed0 show-shlib-type: use return(0) instead of exit(0). eliminates a
warning from non-gcc. ok'd by agc.
2004-01-12 10:08:37 +00:00
grant
a46210a1a2 backout previous until it can be done a better way. 2004-01-10 09:52:56 +00:00
grant
b508fcf350 make shared library handling more efficient by nuking the
show-shlib-type target and instead defining SHLIB_TYPE using
similar semantics show-shlib-type, but on non-dylib and non-AIX
platforms, use ${OBJECT_FMT} instead of compiling a dummy binary
and running file(1) over it.

with archivers/bzip2 on my Solaris 9 box, this shaves 1.6sec, 92
fork()s and 956 stat()s from creating ${WRKDIR}/.PLIST and the
do-shlib-handling target.
2004-01-10 08:38:43 +00:00
salo
20800615bd Resurrect ftp.cz.NetBSD.org MASTER_SITE_BACKUP, the machine is up and running
again.
2004-01-07 15:30:54 +00:00
jlam
e9a249e705 Create a variable USE_XPKGWEDGE that determines whether or not pkgsrc will
use xpkgwedge to install X11 packages into ${LOCALBASE}.  It defaults to
"no" to preserve the current behaviour.

Also make pkgviews imply USE_XPKGWEDGE=yes, as xpkgwedge is a requirement
for making X11 packages install properly using pkgviews.
2004-01-06 23:00:51 +00:00
wiz
f35aaaa301 Fix awk warnings in MASTER_SORT* code.
From Stoned Elipot (seb@).
2004-01-06 14:43:02 +00:00
jlam
7af97f217d Fix comment for generate-plist after removal of PERL5_GENERATE_PLIST. 2004-01-06 09:30:41 +00:00
jlam
30ecab1579 PERL5_GENERATE_PLIST is defined properly in perl5/module.mk, and all
perl5 modules have been converted to use module.mk, so nuke the duplicate
code in bsd.pkg.mk.
2004-01-06 09:27:40 +00:00
jlam
704f0f9e04 If xpkgwedge is installed, then _always_ add it to BUILD_DEPENDS. Also
comment the section that sets the PREFIX.
2004-01-06 09:24:14 +00:00
grant
bab65643ff fix a bug in the extraction of shlib dependencies on Darwin which
caused non-shared objects to be mistakenly added to the buildinfo
REQUIRES.
2004-01-05 07:15:39 +00:00
seb
194162c720 Introduce dynamic registration of info files in PLIST.
For each file listed in INFO_FILES the installed files matching
${PREFIX}/${INFO_DIR}/filename(-[0-9]+)? are registered as belonging
to the package.

Also ignore the same files in print-PLIST target.

Info files should not be listed in PLIST files anymore but the awk code
snippet (_PLIST_AWK_INFO) in charge of actually dealing with info files for
the plist target will strip any it finds in them.

Now for the reason behind this...

Older makeinfo command (before pre-release version 4.5.90 or before release
version 4.6) had SPLIT_SIZE_THRESHOLD: when an info file size was
>= SPLIT_SIZE_THRESHOLD then the info file was split in chunks of
DEFAULT_SPLIT_SIZE size.

DEFAULT_SPLIT_SIZE in older versions of makeinfo was 50000 (bytes)
and SPLIT_SIZE_THRESHOLD was 70000.

So if an info file has a size < 70000 and is processed by makeinfo < 4.6
it is not split in chunks. But if it is processed by makeinfo >= 4.6
texinfo.mk to emulate older version automatically adds `--split-size=50000'
to makeinfo's command line and this time the info file is split in chunks...

This can lead to PLIST inconsistency from platform to platform or more
exactly from version to version of makeinfo.

Now we don't have to care about this problem and the info files removal
from PLIST files can happen.
2004-01-02 12:28:05 +00:00
salo
df34cdeb5c Remove ftp.cz.NetBSD.org from MASTER_SITE_BACKUP.
There are problems with the hosting and the machine will be offline for
unknown time period..
2003-12-31 12:29:16 +00:00
grant
b6d06d7642 trim whitespace from a message. 2003-12-30 05:07:41 +00:00
tron
99f07b62b1 Use "${LS}" instead of "${FILE_CMD}" to find out the target of softlink
when (de)compressing manual pages. This fixes problems caused by the
output format of NetBSD-current's and shouldn't hurt any other platform.
2003-12-28 21:20:02 +00:00
seb
cbb836f2c9 print-PLIST target pipeline modifications:
- reduce the number of components with pervasive awk usage.
 - handle Info directory file when it is not `info/dir'.

Notice that print-PLIST substitutions are now made globally (awk's gsub())
when previously the sed substitution commands did not have the 'g'lobal
flag.

While here fix PKGVERSION substitution just like PLIST_SUBST's PKGVERSION
element is handled in ${PLIST} target i.e. without considering
the 'nb${PKGREVISION}' suffix.

While here give COMMON_DIRS variable a more "internal type" name:
_PRINT_PLIST_COMMON_DIRS.
2003-12-26 17:43:24 +00:00
seb
ddf672e1b8 print-pkg-size-this target:
- properly quote any filenames in ${PLIST} before feeding them
   to xargs. This allows latest textproc/docbook-xsl package
   to be registered with its correct size because it contains a file with
   a single quote in its name.

   XXX pkg_add does not like this filename anyway.

 - fix the awk script that parse ${PLIST} so pathname containing space
   (hence awk's NF > 1) are not removed from size calculation.

Many thanks to atatat@ to remind me the proper way to quote a shell
word.
2003-12-25 16:18:48 +00:00
heinz
7e1c676d35 Use MAIL variable from defs.OPSYS.mk instead of hard-coded 'mail'.
This should (really, this time) close pkg/23682.
2003-12-24 15:22:00 +00:00
seb
abe5cf8688 Move message/${MESSAGE} target around, out of plist target and its
supporting code.
While here comment the message target a bit.
2003-12-23 18:27:24 +00:00
tron
1b228334a0 Remove "ftp.tu-darmstadt.de" from "MASTER_SITE_XEMACS" because it doesn't
have the packages any more.
2003-12-23 11:14:20 +00:00
agc
78b16985e1 Make SMART_MESSAGES work again by passing _PKGSRC_DEPS through the
environment into sub-makes for pre-requisite packages, rather than
using ${MAKEFLAGS} and the command line.
2003-12-21 14:19:12 +00:00
grant
cbfe3f9632 revert previous; it is not needed. 2003-12-18 03:32:50 +00:00
grant
7f491dd188 subst PKG_SYSCONFDIR in the PLIST, avoiding having to do it manually
in every package which uses it.
2003-12-18 03:24:49 +00:00
seb
9063c05285 Rewrite most of the pipeline generating ${PLIST} as a single awk script. 2003-12-16 12:36:54 +00:00
seb
3b040a1943 Improve, move around and bring up to date comments about print-PLIST
target.
2003-12-13 22:15:11 +00:00
seb
7ce6fc4e22 Properly fix meta-characters quoting in awk regexp specified as strings:
`\' needs to be quoted in a string.
Also remove some unnecessary `\' in awk strings.
2003-12-13 00:34:39 +00:00
grant
e793e95d56 remove ftp.progsoc.uts.edu.au from MASTER_SITE_GNU as it has been
unreachable for weeks. replace with public.planetmirror.com.au.
2003-12-11 22:27:40 +00:00
grant
6370668b49 make the "update your package tools!" failure message more accurate
and friendly.
2003-12-09 13:14:02 +00:00
grant
ad9e917ad4 g/c FIX_RPATH, it is broken and no longer required for Darwin, which
was the only platform where it was being used.
2003-12-07 22:47:16 +00:00
cube
8b39758d4f When DIST_SUBDIR is set, make sure various download variables don't get
changed when they're defined but empty.  Although it might sound weird
to have DISTFILES empty and DIST_SUBDIR set, it makes sense for wrapper
packages such as graphics/Mesa.

Fixes PR 23658 from Aaron J. Grier.
2003-12-06 18:47:45 +00:00
jdolecek
7314a7d02c add ftp.cz.NetBSD.org as another MASTER_SITE_BACKUP prior to ftp.netbsd.org 2003-12-05 08:38:15 +00:00
agc
e54f178502 Whitespace fixes, no functional changes. 2003-12-04 11:17:40 +00:00
xtraeme
2e74689b43 Fix breakage in show-shlib-type introduced in last changes.
Thanks to Jeremy C.Reed and Soren Jacobsen, this also closes PR pkg/23641.
2003-12-03 21:59:00 +00:00
erh
12e024f7e7 Add another shlib type "aixlib".
Handle this in do-shlib-handling: turn *.so into *.a.
Pull out the inline awk scripts into variables to make the actual
target a little bit clearer.
2003-12-03 18:31:06 +00:00
erh
b43041a271 Pay attention to the setting of $ROOT_USER when checking whether we're root. 2003-12-03 18:25:05 +00:00
erh
5522ce89d0 If PKGMAKECONF is defined, use it to set MAKECONF instead of "/dev/null". 2003-12-03 18:13:28 +00:00
grant
da25d8ca48 conditionally set LIBTOOL and SHLIBTOOL, as proposed by Michal
Pasternak on tech-pkg.

[first commit after pkgsrc meltdown ;)]
2003-12-02 23:08:24 +00:00
taya
192cab73c6 update directory structure of ftp.mozilla.org in MASTER_SITE_MOZILLA 2003-11-27 13:02:38 +00:00
jlam
8c6a703c0b Don't write conflicts into the binary packages unless they're "overwrite"
packages.  All pkgviews packages are safe to install into the same tree,
and we rely on more dynamic file collision detection through linkfarm(1)
rather than just using CONFLICTS.
2003-11-25 12:01:31 +00:00
jlam
b0727d41d2 Make the value of VIEWBASE available in more settings. 2003-11-23 07:31:18 +00:00
jlam
854f85f7f9 Add public variables EXTRACT_CMD_OPTS.{zip,lha,lhz,zoo} that may be set in
package Makefiles to customize the options passed to the extraction
commands when the defaults don't suffice.  Patch from Michal Pasternak with
additions by me.
2003-11-22 23:47:47 +00:00
cube
680b0aaaaa Forgot a \ to make line continue. Sorry for breakage. 2003-11-20 16:59:02 +00:00
cube
f02636860d When there is no distinfo file, do not apply patches we would not
normally apply: treat them as if the distinfo file was empty.

This solves the reason why pkgtools/pkg_install/distinfo was resurrected,
and allows us to remove it again, since it had the side effect of
introducing a dependency on digest, which is not acceptable when updating
pkg_install: it made it impossible to use the pkgsrc tree, as reported
by several people.
2003-11-20 15:07:53 +00:00
wiz
4bb8270747 Depend on pkgtools-20030918 again; http support is not really a requirement. 2003-11-02 14:36:46 +00:00
grant
0623c2ac77 implement the change in rev. 1.1296 (which was backed out in rev.
1.1298) properly by using single quotes instead of double quotes
around the PKGNAME_REQD value, ensuring that the shell does not
interpret the > character as a redirect.

confirmed that no "=1.0.43" files are created on NetBSD and
Linux when a pre-requisite package has a wildcarded version
number eg. ">=1.0.43", and that the original problem is fixed.
2003-10-30 12:36:01 +00:00
wiz
30e14c5453 Bump PKGTOOLS_REQD to 20031003, per a suggestion from agc. 2003-10-30 10:32:45 +00:00
agc
162529e660 Revert the change in 1.1296 which was causing problems on NetBSD when
installing a pre-requisite package with a wildcarded (e.g. '>=1.0.43')
version number.  The problem manifested itself by creating a file
called '=1.0.43' in the pre-requisite package's directory, and a
coupld of "dc: stack empty" spurious messages appeared.

If this needs to be fixed by an OS-dependent variable, we'll address
that in the future.
2003-10-30 07:42:23 +00:00
agc
8a94a2a19b Fix PR 17883 by adding code to perform just-in-time su(1) functionality
for the bin-install target.
2003-10-18 12:29:26 +00:00
grant
362aa4e7b9 properly quote the value of PKGNAME_REQD when calling ${MAKE} to
build a dependency so that the shell does not attempt to do
interpret the value of PKGNAME_REQD.

noticed on Linux building graphics/mplayer where the build of
audio/nas was broken because ${MAKE} was being called with
PKGNAME_REQD=nas>=1.4.2 instead of PKGNAME_REQD="nas>=1.4.2"
2003-10-18 05:23:48 +00:00
grant
bd1a3a58f0 add a BUILD_DEPENDS on devel/patch if no suitable patch(1) is
available.

fixes my PR pkg/18380, with hints from jschauma.
2003-10-11 05:09:39 +00:00
grant
8031c4141d set CC_VERSION for non-gcc and use it in the BUILD_INFO file. 2003-10-11 03:43:14 +00:00
gavan
a50a7200b7 Allow variables to be set on a per-OS basis. 2003-10-02 15:45:31 +00:00
gavan
bf5773bd51 Fail-safe check for circular dependencies. 2003-10-02 14:41:42 +00:00
grant
d5a8f38186 use PKGBASE instead of PKGNAME when printing informational messages
such as "Deinstalling", as this lead to confusing/misleading output
when the (previously) installed pkg has a different version number
than the pkgsrc version.
2003-09-28 08:52:13 +00:00
danw
a191a12a24 don't put ${RPATH_FLAG} in X11_LDFLAGS if _USE_RPATH==no (darwin) 2003-09-25 02:25:12 +00:00
grant
f8dc52ce38 make CC_VERSION available to packages by including bsd.prefs.mk.
it is of the form 'gcc-<version>' if gcc is being used, or empty
otherwise (for now).

requested by tron.
2003-09-24 12:22:03 +00:00
jlam
399f83c526 Introduce a new variable "CONF_DEPENDS" for pkgviews: a package's
config directory matches the config directory for the dependency
listed in CONF_DEPENDS.  Use symlinks to physically point the
package's config directory to the dependency's config directory, and
handle all of this in the INSTALL/DEINSTALL scripts.

Also make the INSTALL/DEINSTALL scripts a bit smarter about not
copying files and not removing files if the source and destination
file locations point to the same thing.
2003-09-17 02:38:22 +00:00
jlam
2113e0ab44 Use pkg_admin(1) instead of pkg_delete(1) to manipulate the file entries in
pkgdb.byfile.db.
2003-09-16 11:45:42 +00:00
jmmv
d67e44e7fd Do not rely on MANINSTALL beeing set (it's always set now) to do manpage
automatic handling.  Fixes part of PR pkg/22562 by reed@reedmedia.net.
2003-09-15 16:14:16 +00:00
dmcmahill
e4016f08e9 add an @ on one of the print-summary-data target lines. This removes some
garbage from the database file.
2003-09-15 10:27:12 +00:00
danw
ff2172dab3 do-shlib-handling fix for Darwin: check if the ".so" file actually exists
before renaming it to ".dylib" in the PLIST, since if it's a dynamic module,
it actually will be a ".so"
2003-09-14 16:41:30 +00:00
jlam
ea2920c02e Recommend "make clean && make install" instead of just "make install" when
rebuilding the pkg_install tools if they're out of date.  Suggested by
David Brownlee on tech-pkg@.
2003-09-14 15:32:30 +00:00
jlam
d521f1dec0 Update PKGTOOLS_REQD to 20030914. This version fixes a problem in
pkg_delete(1) where recursive pkg_delete'ing didn't work if
${PKG_DBDIR} != /var/db/pkg.
2003-09-14 05:02:50 +00:00
jlam
60b39e6872 Fix cases where we were calling "${PKG_BEST_EXISTS} <pkgbase>". <pkgbase>
isn't actually a pkgpattern; what we really want is <pkgwildcard>.  This
should fix breakage with the "update" and "replace" targets introduced in
revisions 1.1275 and 1.1278.
2003-09-13 18:26:15 +00:00
jlam
a7639b36d6 Kill the odd "duplicate checksum target" warning by rearranging a test
condition.  This only happened when we set PKG_*_REASON and have extracted
the package.
2003-09-13 14:40:40 +00:00
jlam
d4dafa1f49 We just depend on the package that best matches the pkgpattern, so remove
the unreachable code surrounded by checks for matching multiple packages.
2003-09-13 11:32:04 +00:00
jlam
22c47fcaf0 Change a few more uses of PKG_INFO into PKG_BEST_EXISTS. This corrects
the package size calculation and finding out for which packages we need
to add to +REQUIRED_BY.
2003-09-13 11:23:35 +00:00
jlam
e02692364f Don't add the perl dependency in bsd.pkg.mk if BUILDLINK_DEPENDS.perl is
defined (which signals that a buildlink[23].mk file will be included).
2003-09-13 08:20:08 +00:00
jlam
c5a96ee5fa Only run the tests if TEST_TARGET is non-empty. 2003-09-13 06:21:36 +00:00
jlam
5c377018fd In cases where we need the best match for a pkgpattern, use
"${PKG_BEST_EXIST} pkgpattern" instead of "${PKG_INFO} -e pkgpattern".  The
latter can return multiple package names if there are multiple versions of
a piece of software installed.  PKG_BEST_EXIST is defined to be
"${PKG_ADMIN} -b -d ${_PKG_DBDIR} -s "" lsbest", so it searches for the
best installed package that matches the given pkgpattern or else returns
the empty string.

Bump PKGTOOLS_REQD to 20030912 since pkg_admin(1) needs to know about "-b"
and "-d <dir>".
2003-09-13 05:55:14 +00:00
jlam
073d9e24f9 Make the PERL5_* definitions sane in a pkgviews world. 2003-09-12 23:33:07 +00:00
grant
c934b0c4e0 start of improved compiler handling, mostly derived from the existing
gcc buildlink2.mk files and splitting the non-buildlink2.mk bits out
into compiler.mk.

this allows USE_GCC2 and USE_GCC3 to work with non-buildlink2 packages
again.
2003-09-12 13:03:38 +00:00
jlam
efc1b569dc Create two new variables:
DEFAULT_VIEW.${PKGBASE}      default view for ${PKGBASE}
VIEWBASE                     base location of files at run-time

The first is meant to be set by package Makefiles or in /etc/mk.conf, while
the latter is meant to read/used only.  VIEWBASE is either ${LOCALBASE} or
or ${LOCALBASE}/${DEFAULT_VIEW.${PKGBASE}} depending on whether the first
variable is the empty string or not.
2003-09-12 10:54:49 +00:00
jlam
b49af05cee Move the default settings for USE_BUILDLINK[23] from bsd.pkg.mk into
bsd.prefs.mk so that they may be tested/used in buildlink[23].mk files.
2003-09-12 10:49:28 +00:00
jlam
08c49aada0 Make adding config files to views other than the default view work if
PKG_SYSCONFBASE points outside of ${PREFIX}.
2003-09-12 05:15:03 +00:00
jmmv
00556183ea During print-PLIST, use PKGNAME_NOREV to search for matches, not PKGNAME
(though, keep the ${PKGNAME} replacement, as it contains the right value
in the PLIST).
2003-09-10 22:29:10 +00:00
jlam
059f36a8ff Create TEST_ENV variable that's initially just MAKE_ENV, but can be added
to by a package Makefile.  This is passed as the environment when running
the test target.  We often need this since packages can require setting
up LD_LIBRARY_PATH so that we can test before installation.
2003-09-10 02:20:50 +00:00
jlam
106a1602ee Update PKGTOOLS_REQD to 20030907. Critical fixes include making
"pkg_delete -O pkgname" actually remove file entries for pkgname from the
pkgdb.byfile.db database.  This makes FORCE_PKG_REGISTER work again (this
must have been broken for a long time).
2003-09-09 13:36:36 +00:00
jlam
42f190469c Check that the lockfile isn't stale from being left over across a system
reboot by testing whether or not /var/run/dmesg.boot is newer than it or
not.  Fix suggested by agc@NetBSD.org and simonb@NetBSD.org.
2003-09-09 11:00:30 +00:00
jlam
fb44146d81 Allow BUILD_VIEWS to be "yes" or "YES". 2003-09-08 01:13:02 +00:00
jlam
ea5ce961a5 We want to add consistently add to the default view if we use pkgviews
and pkg_add'ing.
2003-09-08 01:06:01 +00:00
jlam
834edb02e6 Move PKG_SYSCONFBASE definition into bsd.pkg.defaults.mk. This implies
that it's user-settable from /etc/mk.conf.
2003-09-06 11:39:29 +00:00
tron
20f7d53ff8 Remove "/pub" from pathnames on "ftp.fu-berlin.de" because such a directory
doesn't exist. It's apparently only mapped in the FTP server configuration.
2003-09-05 19:00:57 +00:00
jlam
134c40e5d9 "make deinstall" now tries to just delete this particular package first
before trying to delete all packages with the same PKGBASE.  This is better
semantics in a pkgviews world.
2003-09-05 15:00:10 +00:00
jlam
19fd2859c5 Package Makefiles should refer to PKG_SYSCONFBASEDIR instead of
PKG_SYSCONFBASE when they want PKG_SYSCONFDIR stripped of
PKG_SYSCONFSUBDIR.  This makes PKG_SYSCONFBASE=/etc work with pkgviews by
installing all config files into /etc/packages/<pkg> instead of
occasionally putting some directly into /etc.

Also only create PKG_SYSCONFDIR if we're actually going to copy config
files.
2003-09-05 11:34:25 +00:00
jlam
e8c411d422 Typo 2003-09-05 09:44:34 +00:00
jlam
68b09207ef Check that USE_BUILDLINK2 is defined before including buildlink2.mk files. 2003-09-05 09:44:01 +00:00
tron
9502649c28 The package vulnerability list is now called "pkg-vulnerabilities". 2003-09-03 15:05:43 +00:00