Commit graph

56 commits

Author SHA1 Message Date
jlam
d2b62c66fb Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC.  Preferences are determined by the most specific
instance of the package in either PREFER_PKGSRC or PREFER_NATIVE.  If
a package is specified in neither or in both variables, then PREFER_PKGSRC
has precedence over PREFER_NATIVE.
2004-02-12 02:35:06 +00:00
jlam
1edfa505ed Reorganize code so that any dependencies are checked as part of deciding
whether the software is built-in or not.  This facilitates implementing
the forthcoming PKGSRC_NATIVE variable.
2004-02-12 01:59:37 +00:00
jlam
7699290f10 If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
2004-02-06 19:04:24 +00:00
jlam
317cc72791 Make PREFER_PKGSRC just yes/no or a list of packages. This makes it
simpler to understand.
2004-02-05 07:17:14 +00:00
jlam
e7133cac25 Rename BUILDLINK_PREFER_PKGSRC to PREFER_PKGSRC so that we can use its
value outside of buildlink-related files.
2004-02-05 07:06:15 +00:00
jlam
07a9d8dfb2 Support a new global variable:
BUILDLINK_PREFER_PKGSRC
	This variable determines whether or not to prefer the pkgsrc
	versions of software that is also present in the base system.

	This variable is multi-state:
		defined, or "yes"	always prefer the pkgsrc versions
		not defined, or "no"	only use the pkgsrc versions if
					needed by dependency requirements

	This can also take a list of packages for which to prefer the
	pkgsrc-installed software.  The package names may be found by
	consulting the value added to BUILDLINK_PACKAGES in the
	buildlink[23].mk files for that package.
2004-02-05 06:58:02 +00:00
grant
bbac685044 revert last - the problem has been fixed in bsd.buildlink3.mk. 2004-01-26 02:39:17 +00:00
grant
6903f248e7 if we have determined that we need pkgsrc zlib, set
BUILDLINK_DEPENDS.zlib instead of adding to it.

fixes a problem where a buildlink dependency would be added on both
zlib>=1.1.4nb1 and zlib>=1.2.1, resulting in various buildlink
breakage.
2004-01-25 04:15:44 +00:00
jlam
01a5abff01 Support BUILDLINK_DEPENDS.<pkg> being a list of values. 2004-01-24 03:12:31 +00:00
jlam
64d1396bfa Fix brokenness introduced as part of the update of zlib to 1.2.1. The
updated package update bumped the zlib shared lib major, which required
that BUILDLINK_DEPENDS.zlib be bumped as well.  Rather then requiring
zlib>=1.2.1 for packages that can use the built-in zlib on *BSD systems,
allow those built-in versions to satisfy zlib>=1.1.4nb1 dependencies,
and only require the latest version if no suitable zlib is found.
2004-01-19 23:11:19 +00:00
jmmv
ec6d847ff3 Create the man/man3 directory, so that this can be installed properly with
pkgviews.  Closes PR pkg/24081 by Min Sik Kim.
2004-01-13 17:45:20 +00:00
adam
a39a6dfe26 Changes 1.2.1:
* inflate is about 20% faster and minimizes memory allocation
	* crc32 is about 50% faster
	* new functions and functionality
	* more supported architectures
2004-01-12 21:19:50 +00:00
jlam
580a53de35 bl3ify 2004-01-05 11:42:20 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
c9ff27d270 Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables. 2004-01-05 09:31:31 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
salo
4defc212a9 Oops, restore NOT_FOR_PLATFORM (commented for my local testing). 2003-03-05 13:09:28 +00:00
salo
1baa9884ec Added fix for CAN-2003-0107 -
Buffer overflow in the gzprintf function in zlib 1.1.4, when zlib is compiled
without vsnprintf or when long inputs are truncated using vsnprintf, allows
attackers to cause a denial of service or possibly execute arbitrary code.
From OpenBSD.

Restore configure target and add check for [v]snprintf.

Bump PKGREVISION.
2003-03-05 13:05:44 +00:00
grant
125d231c4a mark Linux zlib as incompatible to avoid using base zlib which can
cause problems with pkgsrc libtool, eg.

libtool: link: AGE `4' is greater than the current interface number `1'
libtool: link: `1:1:4' is not valid version information
libtool: install: `libz.la' is not a valid libtool archive
2003-02-28 23:29:34 +00:00
grant
b2cec013ea s/LIBTOOL_VERSION/LIBTOOL_REQD/ to register correct dependency. 2003-02-28 23:25:21 +00:00
grant
f25453ed1b Darwin has no static libz, mark it incompatible. 2003-02-16 17:33:16 +00:00
jlam
0acbd7c745 Create a fake libtool archive so that libtool doesn't get confused since
libz.so exists in the base system, but the package creates a libz.la.
2003-02-04 18:48:23 +00:00
jschauma
43f09a9e25 IRIX has an old zlib version, so make it use pkgsrc's zlib. 2002-12-23 20:35:22 +00:00
wiz
8424cfa6c4 Unused. 2002-10-10 12:25:20 +00:00
jlam
1059338fd9 Mirror the libtool setup in bsd.pkg.mk since we can't use USE_LIBTOOL. 2002-09-01 18:45:47 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
wiz
81c0bc0cb7 Enable building this package on <1.4, and add INCOMPAT_ZLIB settings for
NetBSD releases that need it. Closes pkg/14782.
2002-08-07 13:25:36 +00:00
jlam
d88554c247 Create new variables INCOMPAT_ZLIB, INCOMPAT_BZIP2, INCOMPAT_READLINE,
INCOMPAT_GETTEXT that are analogous to INCOMPAT_ICONV and contain lists of
shell wildcards intended to match against ${MACHINE_PLATFORM}.  These
variables are used to note those platforms that have the named packages in
the base system but are incompatible in some way from the pkgsrc version
of the same package.  Change INCOMPAT_CURSES to have the same sematics as
above.  These variables allow much greater precision in specifying which
platforms have broken (for the purposes of pkgsrc) versions of software in
the base system that must be ignored.

The buildlink.mk files for these packages define private _INCOMPAT_*
versions of these variables, and they contain the default lists of
platforms that are known to have incompatible software bits.

This addresses pkg/17775 submitted by Julien T. Letessier
<julien.letessier at sun dot com>.
2002-08-07 06:10:32 +00:00
wiz
287093cb39 Update to 1.1.4, and update MASTER_SITES.
Changes since 1.1.3:
- ZFREE was repeated on same allocation on some error conditions.
  This creates a security problem described in
  http://www.zlib.org/advisory-2002-03-11.txt
- Returned incorrect error (Z_MEM_ERROR) on some invalid data
- Avoid accesses before window for invalid distances with inflate window
  less than 32K.
- force windowBits > 8 to avoid a bug in the encoder for a window size
  of 256 bytes. (A complete fix will be available in 1.1.5).
2002-03-12 00:25:03 +00:00
abs
04719f077d Change ONLY_FOR_PLATFORM...SunOS to NOT_FOR_PLATFORM...NetBSD
This package works fine under RedHat 5.0 (I'm still trying to work out
what karma I broke in order to be in a position to know this...)
2001-11-29 16:44:15 +00:00
zuntum
c72c1cf5f9 Move pkg/ files into package's toplevel directory 2001-11-01 00:57:41 +00:00
hubertf
45a18c8a39 Homepage changed 2001-09-10 13:24:50 +00:00
jlam
d2eb68d2a6 Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the default
installation directory in case the package isn't installed.
2001-07-27 13:33:18 +00:00
jlam
7b1d3cb465 Mechanical changes to buildlink.mk files to use EVAL_PREFIX to set
BUILDLINK_PREFIX.<pkgname>.  This allows buildlink to find X11BASE packages
regardless of whether they were installed before or after xpkgwedge was
installed.  Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-20 01:54:31 +00:00
jlam
cb76bd5efc Move inclusion of bsd.buildlink.mk to start of file. 2001-07-01 22:59:08 +00:00
jlam
34d11d8a0f Generalize how the dependency pattern may be specified. Instead of just
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify
the dependency pattern as FOO_DEPENDS=foo>=1.0.  This allows things like
JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib.
Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
2001-06-23 19:26:48 +00:00
jlam
072be2ad69 Use bsd.buildlink.mk instead of duplicating code all over the place. 2001-06-11 01:59:33 +00:00
jlam
5d02f04b3a Use cookies (.*_done) to determine whether headers and libs have been
linked from a particular package, and add a pre-configure target to
the buildlink.mk file to more painlessly use buildlink.mk files.  A
${BUILDLINK_TARGETS} variable still exists in case a package _must_
define NO_CONFIGURE.
2001-06-10 00:09:29 +00:00
jlam
2ac54684e2 Add buildlink.mk files that can link headers and libraries into
${BUILDLINK_INCDIR} and ${BUILDLINK_LIBDIR}, for use by other packages
during build.
2001-05-26 16:30:18 +00:00
wiz
dfb2d5edc6 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 00:44:09 +00:00
tron
d87826b48a Add a comment why "USE_LIBTOOL" must not be used in this package. 2001-04-17 11:14:05 +00:00
agc
d7d36b3561 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 10:57:56 +00:00
tron
70ade72ca6 Use direct dependence on "libtool-base" package instead of "USE_LIBTOOL"
under Solaris to avoid circular dependence.
2001-04-16 00:57:48 +00:00
wiz
94dc65fbec Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:38:16 +00:00
hubertf
0a11d404e3 ``Why drink and drive when you can smoke and fly''
(Use libtool to build this if it's installed; does not require port of
 NetBSD's share/mk for bootstrapping; old BSD-mk based build is still
 available as fallback if no libtool is found)
2001-02-03 06:42:17 +00:00
tron
ad2f654312 Don't try to "lint" the library. 2001-01-21 20:42:17 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00