Commit graph

1993 commits

Author SHA1 Message Date
christos
0399286bdf Reset MAKELEVEL=0 to fix bad gmake/bsdmake interactions.
Our make(1) now sets $MAKELEVEL. While this should cause no harm, gmake
detects a non-zero $MAKELEVEL and automatically sets "w" in $MAKEFLAGS
for subordinate makes, in order to print the entry and exit directories.
Our make, does not understand -w, so it prints an error message and exits.

In order to catch this everywhere (since cmake for example can invoke
either our make or gmake depending on how it feels), we reset the variable
for any top level command. This effectively reverts to the behavior of
our make not setting $MAKELEVEL.
2013-07-15 20:22:15 +00:00
tron
65964dec38 Revert change to "PKG_SETENV":
1.) It breaks the build of "www/firefox" which gets upset if "SHELL" is
    not defined in the environment. There are probably more packages
    which similar problems.
2.) It breaks established use case like this one:

	export ALLOW_VULNERABLE_PACKAGES=yes
	cd pkgsrc/multimedia/ffmpeg2theora
	bmake install

    In this case the value of "ALLOW_VULNERABLE_PACKAGES" will not be
    passed to the build of "pkgsrc/multimedia/ffmpeg". And the build of
    this package will fail due to known vulnerabilities.
2013-06-05 08:19:57 +00:00
riastradh
d872ff9ca8 Make PKGSRC_SETENV sanitize the environment. 2013-06-03 23:27:14 +00:00
obache
add5c36964 drop `file' command from default USE_TOOLS list.
It is used in limited case, and does not exist by default on some platforms.
proposed at over 30 months ago, and no negative feedback (only one request).
2013-05-12 06:17:50 +00:00
riastradh
9e0c502480 Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.
Build depends are target packages that are needed at build-time for,
e.g., static libraries to link against, header files to include, &c.
Tool depends are native packages that are needed at build-time for,
e.g., compilers/linkers/&c. to run.

ok agc
2013-05-09 23:37:25 +00:00
obache
ad404487da also reset LC_ALL as C. 2013-04-25 12:58:08 +00:00
obache
4617fbb678 Allow to overwrite commnand of privilege check as _IS_ROOT_CMD. 2013-02-22 13:35:27 +00:00
obache
f68d1d940a if `id -u' failed, assume that numeric ID is specified (especially for Cygwin). 2013-02-21 13:33:10 +00:00
obache
8351306655 check requirement of uac manifest, it is required for Windows Vista
(aka NT-6.0) and later.
2013-02-15 09:22:50 +00:00
obache
7072cb4ef3 Experimental support of manifest files for Windows UAC.
For Windows Vista or later, executable files including special keywords
(install, update, patch, and so on) in its name are expected as requireing
privileged permissions by default (UAC).
If not, it must be specified with manifest file, or it will be failed to
execute as "Permission denied".
2013-02-10 13:04:08 +00:00
jperkin
c6fe57f401 Introduce PKGGNUDIR as a way to control gnu prefix.
By default pkgsrc uses LOCABASE/gnu as a prefix for packages to install
native versions of GNU tools, which are them symbolically linked back to
the 'g' versions of the files in LOCALBASE, and users can then add
LOCALBASE/gnu/bin to PATH to pick up those tools.

On systems where the GNU environment is desired, PKGGNUDIR now allows
users to install the non-'g' files directly into LOCALBASE, making them
the default without having to alter PATH, whilst retaining the 'g' files
in order to ensure dependencies and tool paths remain the same.
2012-12-06 11:36:30 +00:00
obache
4e145b5eb0 Pass down ${_PATH_ORIG} to privileged stage sub make instead of modified ${PATH}
for pkgsrc internally, It may cause some problems (ex. unwanted pick up commands
of tools/wrapper).

No objection in teck-pkg@ for a week.
2012-07-18 12:29:12 +00:00
abs
522bbdff73 Use ?= for setting PKGSRC_SETENV to make it easy to override in mk.conf 2012-05-24 11:34:15 +00:00
sbd
4f93900636 Pass MKCATPAGES to packages that use BSD-style Makefiles. 2012-03-05 07:17:15 +00:00
reed
88166ad6f5 Rename "flavor" to "pkgformat".
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG
support to pkgsrc. (I am not adding that further support in this
commit.)

This is just a rename of the existing functionality. Now it will
be easy to test the GSoC work by simply putting in a single
directory (such as "rpm" or "deb"). See
http://addpackageforma.sourceforge.net/ for some details.

This is from Anton's CVS, but I made some minor changes:

- changed plural pkgformats to singular pkgformat (to be consistent)

- fixed a few places (in comments) that were missed

- catch up on some additions to flavor not in the pkgforma cvs:
PKGSRC_SETENV and _flavor-destdir-undo-replace and
undo-destdir-replace-install.
2011-10-15 00:23:07 +00:00
abs
fc3bada41a Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
wiz
a2163548a9 Add MULTI variable, and add it to BUILD_DEFS, to more easily find
variable settings affecting binary packages.

From Aleksey Cheusov in PR 44695.
2011-03-12 14:07:13 +00:00
wiz
4e0907259f Handle '-' in uname output, needed for DragonFly. From Justin Sherrill in PR 44526. 2011-02-07 10:32:32 +00:00
adam
1bc3acdf31 Removed duplicate PKGVERSION line 2010-11-03 18:02:40 +00:00
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