summaryrefslogtreecommitdiff
path: root/mk/db1.builtin.mk
AgeCommit message (Collapse)AuthorFilesLines
2013-11-23Use find-headers instead of find-files to detect builtin header files.obache1-3/+3
2012-02-05Don't set BUILDLINK_LIBS for db1, db2 and db3, same as db4.obache1-2/+2
It will add BDB libraries to LIBS, and may introduce unwanted linked against BDB libraries, whether needed or not.
2007-11-16Reverted all the recent changes to the BUILTIN_FIND_GREP variable. Itrillig1-2/+2
had been correct before, and I trusted the pkglint warning too much. Now it is correct again, and the pkglint warning is fixed.
2007-11-16Move backslash from last commit to second '$'; the test for a builtinbjs1-2/+2
db1 was failing (on NetBSD-current 4.99.36) using rev. 1.19. If this causes any issues, please do let me know; I committed this because I didn't want this to be broken--and it definitely seems less broken, i.e. it works, now than it was.
2007-11-15Fixed some pkglint warnings. At any other position in a shell word, therillig1-3/+3
$$ would have to be escaped, so why should be leave it out just because it is at the end of the word?
2007-10-17Made the .include lines simpler.rillig1-2/+2
2007-02-15Reverted the last change, since it was wrong. In a single shell word, arillig1-2/+2
dollar character does not have to be quoted. Thanks to joerg for pointing me to it.
2007-02-15Fixed shell quoting, noted by pkglint.rillig1-2/+2
2006-04-06Over 1200 files touched but no revisions bumped :)reed1-2/+2
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).
2005-08-11Change the order of libraries looked for, and start with libdb1 instead ofcube1-6/+6
libdb. A (obviously braindead) system might ship with a correct libdb1 and a frivolous libdb. I'm speaking of RedHat, of course. But anyway, it makes more sense, libdb1 just can't be anything but a db1 library. OK'd by jlam@.
2005-06-30Cosmetics (so pkglint does not complain)adam1-3/+2
2005-06-20Until pkgsrc gets a databases/db1 package, we must always prefer thejlam1-1/+6
native db1 package because the alternative doesn't yet exist.
2005-06-01Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.jlam1-59/+60
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.
2004-12-23Don't remove library options from the command line quite so aggressively.jlam1-2/+1
Allow the configure process a chance to detect on its own whether the named library exists or not by allowing those library options to pass through to the compiler on a test compile. A package that *needs* those library options to be removed can add the appropriate rm: BUILDLINK_TRANSFORM command to its package Makefile.
2004-12-11Create directories before putting files in them. This should fixjlam1-1/+2
PR pkg/28480.
2004-12-02Don't hardcode /usr/include/db.h and /usr/include/db1/db.h all over thejlam1-10/+16
place. Also, modify the buildlink-db1-db185-h target to use symlinks instead of include <db.h> since several bdb implementations might be buildlinked, and we need to be more precise about exactly which db.h header is being used.
2004-11-28Reverse the tests so that we actually check for the existence and notjlam1-6/+6
the non-existence of the library -- this more accurately reflects what we want to say.
2004-11-26Add missing quotes.jlam1-3/+3
2004-11-17If we don't need to link against -ldb or -ldb1 (because the DB functionsjlam1-3/+5
are a part of libc), then remove "-ldb" altogether. This should fix GNU configure scripts that assume you need to at least link against "-ldb".
2004-11-15If we're using db1, the create a compatibility header db_185.h that isjlam1-1/+10
in newer Berkeley DB packages.
2004-11-15Whitespace nits.jlam1-8/+8
2004-11-15Store the actual library options in BUILDLINK_LDADD.db1 and append thatjlam1-3/+4
to BUILDLINK_LIBS.db1. This ensures that BUILDLINK_LDADD.${BDB_TYPE} always resolves to the correct library options.
2004-11-15Rework the Berkeley DB detection in buildlink3:jlam1-0/+72
* Add a db1.builtin.mk file that detects whether DB-1.85 functionality exists in the base system, and remove the distinction between "native" and the other Berkeley DB packages -- we now refer to db[1234]. This paves the way for any future databases/db1 package. * USE_DB185 shouldn't need to be set by any packages -- its correct value is now automatically determined by bdb.buildlink3.mk depending on whether we explicitly request db1 or not. By default, if you include bdb.buildlink3.mk, you want DB-1.85 functionality and USE_DB185 defaults to "yes", but if you explicitly remove db1 from the list of acceptable DBs, then USE_DB185 defaults to "no". * Set BDB_LIBS to the library options needed to link against the DB library when bdb.buildlink3.mk is included. * We only add the DB library to the linker command automatically if we want DB-1.85 functionality; otherwise assume that the package configure process can figure out how to probe for the correct headers and libraries. Edit package Makefiles to nuke redundant settings of USE_DB185.