Commit graph

108 commits

Author SHA1 Message Date
bsiegert
671447c1a0 On MirBSD, the version is "1.2.8.f-MirOS", which does not match 'zlib>=1.1.4'.
Remove the extra cruft at the end, fix the detection of builtin zlib.
2014-01-14 20:34:49 +00:00
richard
70965091ef builtin zlib needs a buildlink symlink to zlib.pc if present or fake one if absent 2013-12-11 07:11:40 +00:00
obache
615687509f Remove to assume that 1.1.4 is treated as 1.1.4nb1.
It is NetBSD specific, and builtin version should not contains nb* level.
2013-12-04 14:19:01 +00:00
obache
f48bf932d2 Drop nb1 from API_DEPENDS.
zlib-1.1.4nb1 is just recommended for CAN-2003-0107, not API change.
2013-12-04 14:14:33 +00:00
richard
c9064c9970 provide zlib.pc for pkg-config to facilitate configure where possible 2013-11-30 11:14:10 +00:00
obache
c28b1c803f Use find-headers instead of find-files to detect builtin header files. 2013-11-23 10:51:09 +00:00
adam
a26280753d Version 1.2.8 fixes a very rare bug in decompression. All users are encouraged to upgrade immediately. Version 1.2.8 also has these improvements:
* Add new inflateGetDictionary() function
* Fix bug where gzopen() immediately followed by gzclose() would write an empty file instead of an empty gzip stream.
* Fix bug in gzclose() when gzwrite() runs out of memory
2013-05-27 16:22:10 +00:00
obache
927a793e99 -no-undefined LDFLAGS is required to be linked with Cygwin. 2013-02-09 13:00:05 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
wiz
c08bd88c3d Add --tag=CC to libtool line.
Shouldn't be necessary, on the other hand, shouldn't hurt either.

Requested by jaimef@linbsd.org.
2012-09-02 14:56:17 +00:00
adam
dd51f7f56d Changes in 1.2.7:
- Replace use of memmove() with a simple copy for portability
- Test for existence of strerror
- Restore gzgetc_ for backward compatibility with 1.2.6
- Fix build with non-GNU make on Solaris
- Require gcc 4.0 or later on Mac OS X to use the hidden attribute
- Include unistd.h for Watcom C
- Use __WATCOMC__ instead of __WATCOM__
- Do not use the visibility attribute if NO_VIZ defined
- Improve the detection of no hidden visibility attribute
- Avoid using __int64 for gcc or solo compilation
- Cast to char * in gzprintf to avoid warnings
- Fix make_vms.com for VAX
- Don't use library or built-in byte swaps
- Simplify test and use of gcc hidden attribute
- Fix bug in gzclose_w() when gzwrite() fails to allocate memory
- Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen()
- Fix bug in test/minigzip.c for configure --solo
- Fix contrib/vstudio project link errors
- Add ability to choose the builder in make_vms.com
- Add DESTDIR support to mingw32 win32/Makefile.gcc
- Fix comments in win32/Makefile.gcc for proper usage
- Allow overriding the default install locations for cmake
- Generate and install the pkg-config file with cmake
- Build both a static and a shared version of zlib with cmake
- Include version symbols for cmake builds
- If using cmake with MSVC, add the source directory to the includes
- Remove unneeded EXTRA_CFLAGS from win32/Makefile.gcc
- Move obsolete emx makefile to old
- Allow the use of -Wundef when compiling or using zlib
- Avoid the use of the -u option with mktemp
- Improve inflate() documentation on the use of Z_FINISH
- Recognize clang as gcc
- Add gzopen_w() in Windows for wide character path names
- Rename zconf.h in CMakeLists.txt to move it out of the way
- Add source directory in CMakeLists.txt for building examples
- Look in build directory for zlib.pc in CMakeLists.txt
- Remove gzflags from zlibvc.def in vc9 and vc10
- Fix contrib/minizip compilation in the MinGW environment
- Update ./configure for Solaris, support --64
- Remove -R. from Solaris shared build (possible security issue)
- Avoid race condition for parallel make (-j) running example
- Fix type mismatch between get_crc_table() and crc_table
- Fix parsing of version with "-" in CMakeLists.txt
- Fix the path to zlib.map in CMakeLists.txt
- Force the native libtool in Mac OS X to avoid GNU libtool
- Add instructions to win32/Makefile.gcc for shared install
2012-05-09 11:33:09 +00:00
adam
1d5893fc79 Changes 1.2.6:
* gzread() can now read a file that is being written concurrently
* gzgetc() is now a macro for increased speed
* Added a 'T' option to gzopen() for transparent writing (no compression)
* Added deflatePending() to return the amount of pending output
* Allow deflateSetDictionary() and inflateSetDictionary() at any time in raw
  mode
* deflatePrime() can now insert bits in the middle of the stream
* ./configure now creates a configure.log file with all of the results
* Added a ./configure --solo option to compile zlib with no dependency on any
  libraries
* Fixed a problem with large file support macros
* Fixed a bug in contrib/puff
* Many portability improvements
2012-03-19 15:47:12 +00:00
wiz
b609a88710 Set LICENSE. 2012-01-28 10:46:26 +00:00
abs
31cda6d6d4 On at least OS X 10.4 the builtin zlib does not provide all the symbols
we need
2010-12-14 19:51:45 +00:00
obache
224ea05ab3 Tell builtin zlib for Haiku. 2010-07-06 23:37:57 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
jlam
91d5f83bfb Re-arrange lines to make this more likely to pass pkglint. 2007-08-22 18:36:09 +00:00
jlam
82e455ffd8 This package no longer needs a distinfo file. 2007-08-22 18:35:30 +00:00
joerg
f36f75b219 Assume that any 1.1.4 version of zlib has the the bug fix
for CAN-2003-0107 by now.
2007-08-03 11:53:27 +00:00
joerg
4ca06adbd7 s/bzip2/zlib/ in description. 2007-08-02 15:07:27 +00:00
joerg
7694ac3615 Use in-tree versions. The replacement Makefile can be used for direct
builds in bootstrap tools as well.
2007-08-02 13:22:20 +00:00
joerg
e4fd1dd6dd Import stripped down version of zlib-1.2.3 for use in bootstrap and
essential tools. Not included are contributed files which are not
used in pkgsrc.
2007-08-02 13:19:52 +00:00
wiz
20169f7fc2 Remove dead MASTERS_SITES. From Zafer Aydogan. 2007-06-08 18:39:22 +00:00
heinz
3c2f29026d - Added support for installation to DESTDIR.
- Reenabled test targets in Makefile.in (previously broken by pkgsrc
  patches) and in the pkgsrc Makefile.
2007-05-15 19:39:12 +00:00
reed
61be0380dc Update HOMEPAGE. (The previous redirects to this one.) 2007-01-24 17:28:22 +00:00
schwarz
d1932d646a make sure that pkgsrc's LDFLAGS is used when linking 2007-01-13 13:50:11 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
d71a98aa8e Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by
find-files.mk is "__nonexistent__" or not.
2006-03-30 18:06:17 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
reed
02cdfa0cd5 Honor PKGMANDIR. 2005-12-27 17:27:58 +00:00
drochner
5ddb8cbb63 update to 1.2.3
this fixes (at least) another security problem (DoS, CAN-2005-1849)
changes:
-Eliminate a potential security vulnerability when decoding invalid
 compressed data
-Eliminate a potential security vulnerability when decoding specially
 crafted compressed data
-Fix a bug when decompressing dynamic blocks with no distance codes
-Fix crc check bug in gzread() after gzungetc()
-Do not return an error when using gzread() on an empty file
2005-07-22 16:04:43 +00:00
tron
9fc39bc38f Bump recommented version to 1.2.2nb1 because of CAN-2005-2096. 2005-07-07 11:46:55 +00:00
drochner
74b4f083ff add a patch for CAN-2005-2096, from Debian 2005-07-07 10:43:19 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
schwarz
db5161eec3 prevent patch-aa from elimiating CFLAGS= from Makefile.in. This enables
configure to pass the CFLAGS it has determined which would otherwise get
ignored. Pkgsrc CFLAGS are taken into account by configure already.
Change approved by recht.
2005-04-10 17:43:27 +00:00
agc
4a3d2f7ce2 Add RMD160 digests. 2005-02-23 22:24:08 +00:00
adam
aad4ecc12f Changes 1.2.2:
* Eliminate a potential security vulnerability when decoding invalid compressed data
* Fix bug when decompressing dynamic blocks with no distance codes
* Do not return error when using gzread() on an empty file
2004-11-04 14:17:55 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
reed
f381b34347 Added two patches for fixing possible security issue.
The CVS security ID is CAN-2004-0797.

The fix is same as used by OpenBSD, Debian and Gentoo.
(Didn't see any reference to issue on zlib webpages.)

The OpenBSD announcement "zlib reliabilty fix" says:
"could allow an attacker to crash programs linked
with it."

And the Gentoo announcement says "zlib contains a bug in the handling
of errors in the inflate() and inflateBack() functions. ... An
attacker could exploit this vulnerability to launch a Denial of
Service attack on any application using the zlib library."

PKGREVISION is bumped and BUILDLINK_RECOMMENDED.zlib added to
buildlink3.mk file.
2004-08-31 23:16:23 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
jschauma
de456e1307 Use CFLAGS when creating the archive. This fixes building under IRIX64
using gcc, as we need the ABI specific flags.
2004-05-26 03:20:38 +00:00
tv
76b10c76ff nb1: install shlib as executable. 2004-05-08 01:06:26 +00:00
jlam
6d92080aa2 Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links)
use the new format correctly.
2004-03-29 05:43:28 +00:00
jlam
326169077a USE_BUILDLINK3 must be set to "yes" or "no", not defined/undefined. 2004-03-23 04:40:59 +00:00
tv
347ae966cc Obey CPPFLAGS. 2004-03-12 03:00:24 +00:00