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.
(And remove BUILDLINK_API_DEPENDS.libmm.)
Today, I upgrade apache and it failed with:
Shared object "libmm.so.14" not found
I had libmm-1.3.1 with:
/usr/pkg/lib/libmm.so.13
/usr/pkg/lib/libmm.so.13.0.21
(The libmm update was done on 2005/11/24 -- I am surprised
this didn't hit anyone else.)
Changes between 1.4.1 and 1.4.2 (10-Aug-2006 to 15-Aug-2006)
*) Remove a trailing whitespace in mm.pod which
confused pod2html(1) and generated bad output.
[Neil Conway <neilc@samurai.com>]
Changes between 1.4.0 and 1.4.1 (02-Sep-2005 to 10-Aug-2006)
*) Add new API function MM_reset() and mm_reset().
[Neil Conway <neilc@samurai.com>]
*) Upgraded build environment to GNU shtool 2.0.6,
GNU libtool 1.5.22 and GNU autoconf 2.60.
[Ralf S. Engelschall]
*) Fix spelling errors in manual page mm(3) and corrected
description of mm_sizeof() function.
[Neil Conway <neilc@samurai.com>]
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
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).
Changes between 1.3.1 and 1.4.0 (12-Sep-2003 to 02-Sep-2005)
*) Optimize insertion of free memory chunks by merging with
the spare area if possible to decrease memory fragmentation.
*) Fix mm_realloc() function: If the memory chunk passed to mm_realloc()
can't be extended and a new chunk must be allocated, the old memory
is copied into the new chunk with a call to memcpy(3). However, the
used size is the length of the new data and will cause memcpy(3) to
access memory beyond the old data chunk's boundaries.
[Kirk Petersen]
*) Upgraded build environment to GNU Libtool 1.5.20 and GNU shtool 2.0.2
[Ralf S. Engelschall]
*) Updated all copyright messages for year 2005.
[Ralf S. Engelschall]
*) Upgraded build environment to GNU Shtool 2.0.1,
GNU Libtool 1.5.8 and Autoconf 2.59.
Changes 1.3.0:
*) Correctly cleanup under MM_SHMT_MMZERO in case of a shared
memory segment creation error.
*) Close the filedescriptor of the underlying object immediately
after mmap(2)'ing it in case of MM_SHMT_MMPOSX, MM_SHMT_MMZERO
and MM_SHMT_MMFILE.
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.
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".
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives
a value only once due to the multiple inclusion protection in the
bulldlink3.mk files. In the case where a package includes several
buildlink3.mk files that each want a slightly different version of another
dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the
strictest <pkg> dependency to be matched.
*) Use "close-on-exec" semantic on internal file descriptors if
underlying platform supports this feature. This makes sure the file
descriptors are closed by the kernel upon execution of exec(3) by
the application.
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.