The NetBSD Project

CVS log for pkgsrc/mk/bdb.buildlink3.mk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / mk

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 29 13:36:50 2020 UTC (3 years, 9 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored) to selected 1.6 (colored)

mk: Add db18 to Berkeley DB framework

Revision 1.28 / (download) - annotate - [select for diffs], Sun May 3 10:00:42 2020 UTC (3 years, 11 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored) to selected 1.6 (colored)

mk/bdb.buildlink3.mk: fix outdated comments

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 2 02:23:02 2019 UTC (4 years, 7 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) to selected 1.6 (colored)

mk: use a single form for headings in the documentation comments

Revision 1.26 / (download) - annotate - [select for diffs], Mon Apr 11 04:22:34 2016 UTC (8 years ago) by dbj
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.6 (colored)

update PKG_{FAIL,SKIP}_REASON with +=

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jan 1 18:55:10 2015 UTC (9 years, 3 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.6 (colored)

Add db6

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 2 12:11:52 2010 UTC (13 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) to selected 1.6 (colored)

Added databases/db5 version 5.0.21

Revision 1.23 / (download) - annotate - [select for diffs], Fri Mar 20 19:25:01 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.22: +2 -4 lines
Diff to previous 1.22 (colored) to selected 1.6 (colored)

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.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 26 09:10:30 2008 UTC (15 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4
Changes since 1.21: +7 -2 lines
Diff to previous 1.21 (colored) to selected 1.6 (colored)

Added _VARGROUPS and the source of the error message.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jan 31 12:45:08 2008 UTC (16 years, 2 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.20: +29 -36 lines
Diff to previous 1.20 (colored) to selected 1.6 (colored)

Rewrote the header comment, since it was very hard to understand. Now it
follows the common scheme.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Oct 17 10:43:36 2007 UTC (16 years, 6 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.6 (colored)

Made the .include lines simpler.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jan 14 15:00:54 2007 UTC (17 years, 3 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, jlam-pkgviews-base, jlam-pkgviews
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored) to selected 1.6 (colored)

Inserted an empty line between two paragraphs, so they look a little
more aesthetic.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 4 22:18:41 2006 UTC (17 years, 5 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2006Q4-base, pkgsrc-2006Q4
Changes since 1.17: +20 -15 lines
Diff to previous 1.17 (colored) to selected 1.6 (colored)

Added BUILD_DEFS_EFFECTS.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 8 23:11:17 2006 UTC (17 years, 9 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.6 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 8 22:39:30 2006 UTC (17 years, 9 months ago) by jlam
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored) to selected 1.6 (colored)

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.

Revision 1.12.2.2, Wed Jun 7 15:25:38 2006 UTC (17 years, 10 months ago) by tv
Branch: tv-derecurse
Changes since 1.12.2.1: +1 -1 lines
FILE REMOVED

EOL the tv-derecurse branch; it has become too outdated.  The last live
revision can be fetched at the tv-derecurse-eol tag.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 3 18:33:07 2006 UTC (18 years, 3 months ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1
Changes since 1.14: +41 -9 lines
Diff to previous 1.14 (colored) to selected 1.6 (colored)

Enhances comments to better explain to package authors how this file
should be used, and to motivate the "use only the default version"
approach.  Based on private email with jlam@, but of course errors are mine.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Jul 27 04:53:57 2005 UTC (18 years, 8 months ago) by snj
Branch: pkgsrc-2005Q2
Changes since 1.13: +3 -5 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.6 (colored)

Pullup ticket 614 - requested by grant beattie
bdb infrastructure fix

Revision pulled up:
- pkgsrc/mk/bdb.buildlink3.mk	1.14

    Module Name:    pkgsrc
    Committed By:   jlam
    Date:           Thu Jul 21 02:54:51 UTC 2005

    Modified Files:
            pkgsrc/mk: bdb.buildlink3.mk

    Log Message:
    databases/db/buildlink3.mk was changed a long, long time ago to use
    "db2" as the "BUILDLINK_PACKAGES" variable.  Drop the use of
    _BDB_PKGBASE.*.  This fixes the settings for BDBBASE and BDB_LIBS if
    BDB_DEFAULT is "db2".

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 21 02:54:51 2005 UTC (18 years, 9 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4, pkgsrc-2005Q3-base, pkgsrc-2005Q3
Changes since 1.13: +3 -5 lines
Diff to previous 1.13 (colored) to selected 1.6 (colored)

databases/db/buildlink3.mk was changed a long, long time ago to use
"db2" as the "BUILDLINK_PACKAGES" variable.  Drop the use of
_BDB_PKGBASE.*.  This fixes the settings for BDBBASE and BDB_LIBS if
BDB_DEFAULT is "db2".

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Jan 10 16:15:25 2005 UTC (19 years, 3 months ago) by tv
Branch: tv-derecurse
CVS Tags: tv-derecurse-eol
Changes since 1.12: +41 -70 lines
Diff to previous 1.12 (colored) to selected 1.6 (colored)

sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 9 23:56:21 2005 UTC (19 years, 3 months ago) by jlam
Branch: MAIN
CVS Tags: tv-derecurse-merge, tv-derecurse-base, pkgsrc-2005Q2-base, pkgsrc-2005Q1-base, pkgsrc-2005Q1
Branch point for: pkgsrc-2005Q2
Changes since 1.12: +41 -70 lines
Diff to previous 1.12 (colored) to selected 1.6 (colored)

Modify bdb.buildlink3.mk so that we choose a single, well-known package
for all Berkeley DB dependencies instead of choosing the best installed
DB package by default:

1. BDB_DEFAULT is set in /etc/mk.conf for the life of pkgsrc and
   represents the package we use when either (1) a db-1.85 interface
   isn't required, or (2) a db-1.85 interface *is* required, but it's
   not builtin.  It defaults to "db4" but can be any of db[234].

2. BDB185_DEFAULT is set in /etc/mk.conf for the life of pkgsrc and
   represents the package we use when a db-1.85 interface is required.
   It defaults to "db1" if it's builtin, or to ${BDB_DEFAULT}
   otherwise.[**]

3. If we want db1, then we use the package named in BDB185_DEFAULT.
   If we don't want db1, then we use the package named in BDB_DEFAULT.

4. If ${BDB_DEFAULT} isn't listed in BDB_ACCEPTED for a package, then
   that package will be marked with PKG_FAIL_REASON as "${BDB_DEFAULT}
   not a supported Berkeley DB type for ${PKGNAME}."

Using the above scheme, on NetBSD, the default of BDB_DEFAULT=db4 and
BDB185_DEFAULT=db1 will cause db1 to be used whenever we want a db-1.85
interface and db4 to be used for all other packages.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 15 17:54:49 2004 UTC (19 years, 5 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2004Q4-base, pkgsrc-2004Q4
Branch point for: tv-derecurse
Changes since 1.11: +49 -59 lines
Diff to previous 1.11 (colored) to selected 1.6 (colored)

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.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jul 10 03:05:46 2004 UTC (19 years, 9 months ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2004Q3-base, pkgsrc-2004Q3
Changes since 1.10: +14 -1 lines
Diff to previous 1.10 (colored) to selected 1.6 (colored)

provide BUILDLINK_{CPPFLAGS,LDFLAGS,LIBS}.bdb, taken from whichever db
implementation is being used, including native. tested on NetBSD with
db1 in libc, Linux with db1 in libdb, db2, db3 and db4.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 30 10:40:02 2004 UTC (19 years, 10 months ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2004Q2-base, pkgsrc-2004Q2
Changes since 1.9: +4 -6 lines
Diff to previous 1.9 (colored) to selected 1.6 (colored)

correctly set BDB_TYPE when native db is not available, eg. Solaris,
IRIX using the first BDB_ACCEPTED.

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 26 20:26:29 2004 UTC (19 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.6 (colored)

Fix typo in comment.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Apr 26 09:39:38 2004 UTC (19 years, 11 months ago) by jlam
Branch: MAIN
Changes since 1.7: +7 -11 lines
Diff to previous 1.7 (colored) to selected 1.6 (colored)

Use a table instead of cascading if..else to dispatch to the correct
buildlink3.mk for inclusion.  Remove reference to BUILDLINK_PREFIX.db2
which doesn't exist (fixed by using the table).

Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 25 15:06:10 2004 UTC (19 years, 11 months ago) by minskim
Branch: MAIN
Changes since 1.6: +11 -3 lines
Diff to previous 1.6 (colored)

Accept /usr/include/db.h as a valid db-1.85 header file only when
"^\#define.*HASHVERSION.*2$" is found.

Revision 1.6 / (download) - annotate - [selected], Thu Apr 15 11:11:57 2004 UTC (20 years ago) by wiz
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Only add BDBBASE to BUILD_DEFS once.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 12 15:13:30 2004 UTC (20 years ago) by minskim
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

"db" is not a valid value for BDB_TYPE; use "db2" instead.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 26 18:48:52 2004 UTC (20 years ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2004Q1-base, pkgsrc-2004Q1
Changes since 1.3: +10 -5 lines
Diff to previous 1.3 (colored) to selected 1.6 (colored)

Reverse the use of USE_DB185 in bdb.buildlink3.mk -- it defaults to
"yes" and packages that can't use the DB-1.85 API should set it to "no".
This makes the native DB the preferred DB if it exists.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 18 09:12:13 2004 UTC (20 years, 1 month ago) by jlam
Branch: MAIN
Changes since 1.2: +21 -21 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

Fix serious bug where BUILDLINK_PACKAGES wasn't being ordered properly
by moving the inclusion of buildlink3.mk files outside of the protected
region.  This bug would be seen by users that have set PREFER_PKGSRC
or PREFER_NATIVE to non-default values.

BUILDLINK_PACKAGES should be ordered so that for any package in the
list, that package doesn't depend on any packages to the left of it
in the list.  This ordering property is used to check for builtin
packages in the correct order.  The problem was that including a
buildlink3.mk file for <pkg> correctly ensured that <pkg> was removed
from BUILDLINK_PACKAGES and appended to the end.  However, since the
inclusion of any other buildlink3.mk files within that buildlink3.mk
was in a region that was protected against multiple inclusion, those
dependencies weren't also moved to the end of BUILDLINK_PACKAGES.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 11 08:33:52 2004 UTC (20 years, 1 month ago) by jlam
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored) to selected 1.6 (colored)

Use the correct PKGBASE when referring to the "db2" package.  Also remove
a pasto that caused using the native bdb to also depend on db4.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 10 18:06:06 2004 UTC (20 years, 1 month ago) by jlam
Branch: MAIN
Diff to selected 1.6 (colored)

bdb.buildlink3.mk is used to select a Berkeley DB implementation for
use by pkgsrc.  It will automatically depend on either db, db3, or db4
if the native one isn't sufficient.  The two variables that control its
behaviour are:

BDB_DEFAULT is a user-settable variable whose value is the default
       Berkeley DB implementation to use.

BDB_ACCEPTED is a package-settable list of Berkeley DB implementations
       that may be used by the package.

E.g., if you always want to use DB4 as the Berkeley DB for all of the
packages, then you can just set:

	BDB_DEFAULT=	db4

in your /etc/mk.conf.

Packages that currently include db*/buildlink3.mk should be made to
include bdb.buildlink3.mk instead.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>