Commit graph

21 commits

Author SHA1 Message Date
rillig
c4398a61a2 Reverted all the recent changes to the BUILTIN_FIND_GREP variable. It
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-16 08:14:20 +00:00
bjs
c6f746a879 Move backslash from last commit to second '$'; the test for a builtin
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-16 05:44:56 +00:00
rillig
390e1a5efb Fixed some pkglint warnings. At any other position in a shell word, the
$$ would have to be escaped, so why should be leave it out just because
it is at the end of the word?
2007-11-15 12:15:43 +00:00
rillig
b2e71313c3 Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
rillig
f507eee3a1 Reverted the last change, since it was wrong. In a single shell word, a
dollar character does not have to be quoted.

Thanks to joerg for pointing me to it.
2007-02-15 16:08:20 +00:00
rillig
1b1f43cbdd Fixed shell quoting, noted by pkglint. 2007-02-15 10:48:25 +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
cube
38e162ab6a Change the order of libraries looked for, and start with libdb1 instead of
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-08-11 20:25:20 +00:00
adam
55147a3c4e Cosmetics (so pkglint does not complain) 2005-06-30 12:52:12 +00:00
jlam
b81dff43e1 Until pkgsrc gets a databases/db1 package, we must always prefer the
native db1 package because the alternative doesn't yet exist.
2005-06-20 07:20:40 +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
jlam
1a36b3b670 Don't remove library options from the command line quite so aggressively.
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-23 14:27:04 +00:00
jlam
bda6801430 Create directories before putting files in them. This should fix
PR pkg/28480.
2004-12-11 00:32:16 +00:00
jlam
406700e994 Don't hardcode /usr/include/db.h and /usr/include/db1/db.h all over the
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-12-02 17:40:49 +00:00
jlam
9636b9d697 Reverse the tests so that we actually check for the existence and not
the non-existence of the library -- this more accurately reflects what
we want to say.
2004-11-28 05:44:34 +00:00
jlam
72d942ad5a Add missing quotes. 2004-11-26 01:22:31 +00:00
jlam
81e4749b3f If we don't need to link against -ldb or -ldb1 (because the DB functions
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-17 15:12:08 +00:00
jlam
d1152688ba If we're using db1, the create a compatibility header db_185.h that is
in newer Berkeley DB packages.
2004-11-15 18:23:40 +00:00
jlam
581bc42843 Whitespace nits. 2004-11-15 18:14:10 +00:00
jlam
9572207dcf Store the actual library options in BUILDLINK_LDADD.db1 and append that
to BUILDLINK_LIBS.db1.  This ensures that BUILDLINK_LDADD.${BDB_TYPE}
always resolves to the correct library options.
2004-11-15 18:01:58 +00:00
jlam
b67b0725c4 Rework the Berkeley DB detection in buildlink3:
* 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.
2004-11-15 17:54:49 +00:00