Commit graph

1974 commits

Author SHA1 Message Date
bad
89f715edf7 I'm fed up with having to waste time because PKG_DEVELOPER is "special" and
can't be disabled by setting it to "no" like the other variables.
Besides, flavor/pkg/metadata.mk has been expecting for a long time that "no"
is a valid value.

Make PKG_DEVELOPER DWIM.
2010-08-24 19:08:28 +00:00
darcy
1cdb460a8a Remove MKDIR line that causes the one following to effectively
be a no-op.  With this line removed the umask will be applied
to the created directories.

As discussed with joerg@.
2010-07-03 04:27:00 +00:00
sbd
1c5f2a96f3 On Linux systems record the glibc version in the build information.
OKed by wiz@
2010-05-20 07:57:22 +00:00
sbd
0ae82b5fa9 Add BUILTIN_PKGS with the "builtin" package names to the build information.
E.g if readline 6.0 and ncurses 5.7 are part of the system we get:
BUILTIN_PKGS=readline-6.0 ncurses-5.7
2010-05-19 09:12:15 +00:00
sbd
5290bb9aee Simplify the osabi dependence as suggested by wiz@. 2010-04-30 08:14:04 +00:00
sbd
8a68e86174 Improve the pattern of the osabi dependence again! 2010-04-30 05:42:12 +00:00
sbd
97498284c6 Change the pattern of the osabi dependence to one the actually works! 2010-04-30 04:05:16 +00:00
sbd
53eb3c505b Make all packages that set OSVERSION_SPECIFIC depends on pkgtools/osabi.
Also include a note about changes to OS_VERSION in bsd.prefs.mk
2010-04-30 03:29:55 +00:00
joerg
22ab3c41df Retire check for ONLY_FOR_ARCHS, NOT_FOR_ARCHS and NOT_FOR_OPSYS. 2010-02-23 17:24:55 +00:00
joerg
0af7166ac0 Retire check for MASTER_SITE_SUBDIR and PATCH_SITE_SUBDIR. 2010-02-23 17:24:17 +00:00
joerg
5d951ee1e4 Retire check for ALL_TARGET. It was added before 2005. 2010-02-23 17:22:12 +00:00
joerg
0ee6b73999 Retire check for NO_WRKSUBDIR. It's been deprecated in 2001 and has been
an error almost as long.
2010-02-23 17:20:53 +00:00
joerg
d42ca54339 Remove check for buildlink-x11 -- it's been removed in 2002. 2010-02-23 17:16:51 +00:00
rillig
43f7a6c33c Handle MANINSTALL correctly for packages that USE_BSD_MAKEFILE.
Fixes PR 42714.
2010-02-20 07:05:52 +00:00
joerg
daafaaa7e2 Create the work directory itself with umask 077 to prevent access to
files with broken permissions (e.g. world-writable files).
2009-11-03 02:14:32 +00:00
joerg
e0925bbd0c Replace tab with space. 2009-09-10 21:46:57 +00:00
rillig
99fbe40af6 Added an experimental target "import" that makes it easier to import
packages from pkgsrc-wip and other sources.
2009-07-26 21:36:38 +00:00
obache
27dd467286 Accept _AUTOMATIC=yes.
At least, set as "yes" in mk/flavor/pkg/depends.mk,
and accept both "YES" and "yes" in flavor/pkg/install.mk.

Fixes PR 41422.
2009-05-26 06:03:02 +00:00
joerg
8e2f1b57e8 Remove support for NO_PACKAGE. 2009-04-09 00:51:23 +00:00
wiz
bd09635d6c Switch to the license handling in license.mk.
The following licenses are accepted by default:
        public-domain
        gnu-gpl-v2 gnu-lgpl-v2
        gnu-gpl-v3 gnu-lgpl-v3
        original-bsd modified-bsd
        x11
        apache-2.0
        cddl-1.0
        open-font-license

All packages should now be converted to define their LICENSE.

Show a warning when PKG_DEVELOPER is set but LICENSE is not defined.
2009-04-08 14:47:26 +00:00
joerg
2d1ba244e9 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.
2009-03-20 19:23:50 +00:00
joerg
4be66048ad Fix circular dependency detection for the case of non-leading circles.
For the dependency chain A->B->B the old code created:
_PKGSRC_DEPS=", B-1.0, A-1.0", which obviously can't match the PKGNAME
of B.
Skip the _flavor-bootstrap-depends processing if PKG_FAIL_REASON is
already set and move the check for circular dependencies right after the
block that defines PKGNAME and friends.
2009-02-06 15:27:00 +00:00
dillo
1c29e98ca7 For packages setting USE_BSD_MAKEFILE, explicitly set MKHTML to no.
This makes these packages build with the changed default in recent
NetBSD -current.

Approved by agc.
2008-09-22 14:52:07 +00:00
agc
b8870d4b60 For no real reason, but per the "discussion" on tech-pkg, default the
creation of a symbolic link to the real work directory to "no".
2008-08-19 17:28:24 +00:00
agc
875cf57fe4 Restore default behaviour for creating a symbolic link to the ${WRKDIR},
which was lost when this definition was introduced without prior discussion.
2008-07-21 22:34:18 +00:00
dillo
f8c3a5bb6b Set MAINTAINER to OWNER if the latter is set.
Somehow this got lost from the original OWNER support commit.
2008-06-14 08:32:33 +00:00
joerg
3ba79d294e Move META_PACKAGE logic from bsd.pkg.mk to bds.prefs.mk, otherwise it
can't define destdir support.
2008-06-12 01:09:01 +00:00
joerg
a58b3852c6 Annotate whether a package was built with DESTDIR. 2008-06-12 00:06:27 +00:00
joerg
d2ec3ef075 Move meta package override earlier. 2008-05-26 13:25:22 +00:00
joerg
a8a3c01339 Explicitly add pax dependency in those Makefiles that use it (or have
patches to add it). Drop pax from the default USE_TOOLS list.
Make bsdtar the default for those places that wanted gtar to extract
long links etc, as bsdtar can be built of the tree.
2008-05-25 21:42:20 +00:00
joerg
b1448e9df8 PKGNAME_NOREV is used to define the DIST_SUBDIR in some places, so
ensure it is defined with the rest of the PKGNAME_* variables before
including the phase variable files.
2008-05-23 12:31:24 +00:00
joerg
65244e1c32 Move digest dependency into checksum and fetch part.
Make _ALL_FILES and in turn _CKSUMFILES available earlier.
Use it to only depend on digest if _CKSUMFILES is non-empty.
NO_CHECKSUM will now only skip the checksum and checksum-phase
targets. FAILOVER_FETCH will independently check the sums on
distfiles and depend on digest, fixing the remaining issues
originally raised in PR 34914.
2008-05-22 16:27:22 +00:00
tnn
3341e37bba Commit a workaround for the "make replace fails as non-root" bug:
Make sure _PKGSRC_BARRIER is set when using just-in-time su.
I've been running this for a long time in my tree without ill effects.
For more information see PR pkg/34470 and PR pkg/38505.
2008-05-21 19:53:59 +00:00
joerg
caa9b2eebf Move handling of pkg_install version into flavor. Add an explicit
phase pkg_install-depends before bootstrap-depends that just tries to
install a new pkg_install if the current version is too old. Still
keep it as bootstrap dependency for the bulk build code.
For NetBSD, PKG_TOOLS_BIN has to be computed in shell code due to a make
bug.

OK: jlam@
2008-04-03 14:07:51 +00:00
joerg
f23c5a7e89 Add PKGVERSION_NOREV to complemenet PKGNAME_NOREV. 2008-03-08 14:28:05 +00:00
joerg
861a664974 Split PKGTOOLS_REQD into two parts. If we don't have PKGTOOLS_REQD,
but something after PKGTOOLS_BASE_REQD, just register a bootstrap
dependency.
2008-02-26 13:46:21 +00:00
rillig
26f0d86945 Pass the proper flags for stripping binaries to packages using BSD Make. 2008-02-13 09:28:41 +00:00
tnn
d91ec32482 Enable fake home directory support. Also add a wrkref check because an
embedded path to the HOME directory can be a security problem if, say,
the package looks in the HOME directory of an unprivileged user for
configuration files.

Note that this has the potential to cause some short-term fallout.
2008-02-10 11:43:20 +00:00
rillig
66736dde43 Replaced _PKG_SILENT and _PKG_DEBUG with RUN. 2008-02-07 21:36:13 +00:00
joerg
813288f511 pkg_install 20070802 is good enough, don't be overly aggressive. 2008-01-16 01:01:26 +00:00
adrianp
045f83863c Bump PKGTOOLS_REQD to 20071224 so everyone still has the functionality
that used to be in security/audit-packages.
2008-01-13 20:23:18 +00:00
obache
55d54e4005 Add more *ONW, *GRP and *MODE variables to BSD_MAKE_ENV for unprivileged build. 2008-01-01 14:20:20 +00:00
rillig
b7678466da Meta packages have user-destdir support and don't need any patches. 2007-12-19 12:32:06 +00:00
rillig
d877440c8b Added a variable META_PACKAGE that should be set to "yes" by
meta-packages. That way, the packages don't need to know the details of
how meta-packages are defined.
2007-12-19 11:56:19 +00:00
rillig
74b91acea7 show-var is related to show-vars and show-subdir-var. 2007-12-13 11:57:34 +00:00
rillig
9fab8079e7 Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needs
it. It had only been used to change the "nerrors" variable in bulk
builds, but this variable is not used further anyway.
2007-12-01 11:11:53 +00:00
dsl
d24555b956 Fix the .include lines so that make looks in the right place first.
Remember .include "foo.mk" is looked for (first) in the directory that
contains the makefile being processed (like in C), so remove all the
${.PARSEDIR} and ../ sequences that just cause grief.
2007-10-13 11:04:15 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
rillig
712c3ee7d5 Removed a funny comment from 1997. 2007-09-29 16:03:28 +00:00
rillig
84579a3239 More comments. 2007-09-27 11:19:52 +00:00