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 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).
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.
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.
- display-x(7): Perform correct overflow check when setting up the
backbuffer.
- display-x(7): 8bit palettized mode now works
- mode regression fix: allow testcase3 to also test on other targets than
display-memory
- mode regression: add testcases to test mode re-setting and for
braindamaged physical size
- ggiOpen(3): do not call va_end() twice.
- display-sub(7): Add a warning/important paragraph to the manual:
GGI_DEFMODE env.
variable may override the top,left corner when it is (0,0).
- display-dga(7): make it work again. Patch from urz (IRC).
- display-fbdev(7): fix crash/hang-on-exit. Fixes SF Bug #1097754. Patch
from urz (IRC).
- display-directx(7): fix checking and setting a mode with braindamaged
physical mode size
- documentation: move deprecated ggiSet*Mode(3) functions to their own
manpage
- display-tele(7): various bugfixes, update manpage
New in 2.1.0: 2004-11-30:
- Documentation updates
- removed obseleted Xlib target
- added new GGIFLAG_TIDYBUF flag. It is intended for applications
using directbuffer and having their own dirty-region
management. Currently only supported by the X-target.
- KGI target improvements
- added Matrox Gx00 accelerator sublib
- added devfs support
- added multiple frame support
- merged improvements from the FreeBSD ports tree
- fbdev gammamap support
- added the -fullscreen option to the X-target
- added the -physz option to the ipc-target
- Major DirectX target improvements
- added -noinput and -physz options by Christoph Egger. Tested by Albert Graef.
- fix cursor stuff, added -keepcursor and -nocursor options (patch from Albert Graef)
- disable maximize button on GGI-on-DX window (patch from Albert Graef)
- remove stuff in WindowProc made obselete by the above two items (patch from Albert Graef)
- move the globals in ddinit.c into private data structure (patch from Albert Graef)
- merge the two targets into one (directxnt has been renamed to directx and is now the *one* directx target)
(patch from Albert Graf)
- fix a couple of bugs and race conditions (patch from Albert Graef)
- added -inwin option (patch from Albert Graef)
- added support for virtual size != visible size.
- added support for panning (ggiSetOrigin)
- added support for up to 16 frames.
- added support for asynchronous mode (no background updates when active).
- added support for fullscreen and mode switching.
- preliminary support for palettized modes.
- display-auto has been added. It replaces the 5 years old linux specific target autodetection and handles it OS dependend
- works on Windows using MinGW w/o requiring special Makefiles.
- a pseudo-stubs target has been added by Peter Ekberg. It does effectively nothing, but gives extensions
a way to have one target that stands for all targets that passes all operations to their parent visuals.
libggiwmh and libggimisc make palemu and trueemu working with it w/o having a target for each of them.
- display-mansync has been reworked by Peter Ekberg. It now uses the platform independent task scheduler.
- added a new macro: GT_ByPPP which is basically GT_ByPP but for packed pixels and it takes two arguments.
New in 2.0.7: 2004-11-30:
* minor buildsystem update
* eliminate lvalue assignments. Fixes problems with latest gcc versions
* Use more length bounded string operations
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".
New in 2.0.6: 2004-09-14:
* build system:
- Prepend with GII include path when --with-uninst-gii is specified via configure
- disable vgagl helper when not building the svga target
* X-target:
- Bugfix: Ensure aligned memory access. Fixes crash on NetBSD/sparc64
- Bugfix: Perform correct clipping in ggiFillscreen(3).
* display-memory: Bugfix: Free directbuffer completely.
* display-monotext: Bugfix: ggiCheckMode() returns actual error code than always success.
* documentation update:
- add manual page for display-mansync
- do not document not-existing GGIFLAG_TIDYBUF flag. It is a new feature in devel tree.
New in 2.0.5: 2004-05-29:
* X-target:
- Fix over-allocation of win y dimension.
- Forward expose events to the application when -nobuffer is used.
- Fix "strange colored pixels when re-exposing backbuffer"-Bug.
- Focus pulling fix. Key focus should no longer get lost,
when the mouse is NOT over the window. Note: Don't forget to
update libgii's input-xwin and input-x before as libggi now
passes some additional information to libgii.
* build system: It checks for buildable demos. Fixes compiling breakage on some platforms.
* other build system updates
* libtool update. Fixes Debian bug #208288.
* documentation updates
Hi Christoph!
installed on 2.0_BETA. Based on a tip from Thomas Klausner, make
the PLIST entries for the terminfo library conditional, and they're
then effectively commented out on NetBSD 1.6.* (tested/verified)
and 1.5.* (so far untested).
Changes:
o build fix: cygwin has no sys/shm.h and sys/ipc.h, so configure
disables all targets requiring them, if not present.
o cbconsist demo: sync with devel tree
o gcc 3.3 compiling fix for default/linear_16/crossbuild.c
(fixes Debian bug #197214)
o merged build fix from FreeBSD's ports tree to make the xf86dga
target compile on FreeBSD (fixes FreeBSD PR ports/52380)
o X-target
+ minor mode initialization fix from Argo Vessmann
+ shm helper checks return code, when setting up the
directbuffer
+ release locking on failure. (Threadsafety fix)
+ fixed geometry check. Opening (very) small windows is now
possible.
curses.buildlink2.mk. This was wrong because we _really_ do want to
express that we want _n_curses when we include the buildlink2.mk file.
We should have a better way to say that the NetBSD curses doesn't
quite work well enough. In fact, it's far better to depend on ncurses
by default, and exceptionally note when it's okay to use NetBSD curses
for specific packages. We will look into this again in the future.
New in libggi 2.0.3:
* X-target:
* Fixed a bug, where a ggiFlush() call was missed, which makes
directbuffer content visible when releasing it.
* Fixed a clipping bug, causing to let disappear characters or
whole strings.
* Fixed clipping on multiple frames.
* Add -keepcursor option, which keeps the default cursor.
* Fixed crash when used 8bit characters
* Fixed endless loop when X11 server provides only and only
the same sort of X visuals
* Demo: Improved pageflip demo to test all primitives in a
multi-frame environment
* merged some compiler fixes from the OpenBSD ports tree
* fixed a crash, when a drawing primitive (i.e. a line) crossed
two borders of the clipping rectangle
* added 64bit fixes to wrap and cube3d demos
* minor improvements to checkmode and struct check tool
(important for target developers though)
* manpage fixes
New in 2:2:0 (2.0.2): 2002-12-26
* Misc bugfixes (see ChangeLog)
* Huge documentation updates
* Major build system update
- adds builds fixes for many platforms
* memory-target
- add -pixfmt option
- added missing support for reporting physical screen sizes.
* X-target
- rewritten (x/xlib splitting is obselete now)
- added dirty region management
* xlib-target
- disabled. Will be removed later
* fbdev-target
- DirectFB driver works with directfb 0.9.13
- added mach64 accelerator
* KGI-target
- big update (works with KGI-0.9 now)
- added mach64 accelerator
- added radeon accelerator
- still experimental, thus disabled in configure
New in 2:1:0 (2.0.1): 2001-08-26
* More documentation updates.
* Prelimiary support for using DirectFB drivers under display-fbdev
* Many corrections/improvements to build files
* Started move towards using libtool versioning, as interface is stable.
New in 2.0: 2001-08-11
* Huge documentation updates.
* svgalib-target
- added frame support
- misc bug-fixes
New in 2.0beta4: 2001-07-10
* Misc bugfixes (see ChangeLog).
* Huge documentation updates.
* finished support for reporting physical screen sizes.
* splitted libggimisc off
* New API: ggiDetachInput()
* fbdev-target
- Acceleration of Matrox G400 (matrox fb)
* directX-target
- Update
- Highly experimental target for Win ... Use at your own risk !
* ipc-target
- New target for interprocess communication (experimental)
New in 2.0beta3: 2000-12-18
* Misc bugfixes (see ChangeLog).
* Minor documentation updates.
* Major rewrite of the internal sublib handling.
* Some fixes for PowerPC compatibility.
* preliminary support for reporting physical screen sizes.
* Made all headers C++ compatible.
* lcd823-target
- Target for the Motorola MPC823 builtin LCD controler, using
the /dev/lcd823 Linux kernel device.
* fbdev-target
- Better detection of kgicon-type fb-devices and old fb implementations.
- Better usage of fbdev mode infos in fb.modes
- Better acceleration for the Matrox fb.
* glide-target
- Added directbuffer support.
* aalib-target
- Better mode handling.
* X-target
- Propagated X dpi values to give physical screen dimensions.
- Various fixes to properly init several values.
* tele-target
- Updated much to make it work again.
* vgl-target
- New target for FreeBSD's VGL library.
* directX-target
- Highly experimental target for Win ... Use at your own risk !
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES". This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile. Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.