Commit graph

1946 commits

Author SHA1 Message Date
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
jlam
5073c3d95d Add a "system features" framework that will eventually be used to
automatically supply missing "basic" headers and libraries from an
older system, e.g. IRIX 5.x or Interix or AIX, etc.

Example usage:

    USE_FEATURES+=      snprintf glob regex

For now, we just pull in libnbcompat to supply the missing bits.
2007-09-07 21:55:44 +00:00
rillig
91c415b938 The WRKDIR and PREFIX can be saved in the log directory when a package
doesn't build properly. These options are off by default since they
require much disk space.
2007-09-07 15:51:53 +00:00
joerg
b0a55e5360 Explicitly bail out if X11_TYPE=xorg is found. 2007-08-18 00:30:21 +00:00
rillig
7d184f93ff Moved the stuff that is common to all directories of pkgsrc into its own
file. Now "make help" can be called from the top-level directory,
avoiding to parse lots of buildlink3.mk files just to get some help.
2007-08-13 06:03:46 +00:00
rillig
3f5fe75745 build-env is no longer defined in bsd.pkg.debug.mk. 2007-08-13 05:24:26 +00:00
rillig
0e365be076 Fixed _PKG_DEBUG_SCRIPT for the case of PKG_DEBUG_LEVEL=0. 2007-08-13 05:22:37 +00:00
joerg
dfb9b6a575 Try a bit harder to guess which mk.conf the user is using, when
telling him to accept a license:
- if MAKECONF is set, use that
- if this is NetBSD and a non-bootstrap make is used, take /etc/mk.conf
- otherwise use ${PREFIX}/etc/mk.conf.

Issues reported by Michael Neumann on DragonFly's user list.
2007-08-10 13:09:52 +00:00
joerg
34c60ba2a2 Update _USE_DESTDIR=full handling to use the new -u/-g code and
require pkg_install-20070802 for using it. It is now considered
to work correctly and ready for general consumption.
2007-08-03 14:03:39 +00:00
jlam
33f30156fb * Add new emulator framework in pkgsrc/mk/emulator that handles all
binary-only packages that require binary "emulation" on the native
  operating system.  Please see pkgsrc/mk/emulator/README for more
  details.

* Teach the plist framework to automatically use any existing
  PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition.

* Convert all of the binary-only packages in pkgsrc to use the
  emulator framework.  Most of them have been tested to install and
  deinstall correctly.  This involves the following cleanup actions:

    * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM}
      more consistently.

    * Simplify packages by using default INSTALL and DEINSTALL scripts
      instead of custom INSTALL/DEINSTALL code.

    * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc.
      Packages only need to state exactly which emulations they support,
      and the framework handles any i386-on-x86_64 or sparc-on-sparc64
      uses.

    * Remove "USE_NATIVE_LINUX" from pkgsrc.  The framework will
      automatically detect when the package is installing on Linux.

  Specific changes to packages include:

    * Bump the PKGREVISIONs for all of the suse100* and suse91* packages
      due to changes in the +INSTALL/+DEINSTALL scripts used in all
      of the packages.

    * Remove pkgsrc/emulators/suse_linux, which is unused by any
      packages.

    * cad/lc -- remove custom code to create the distinfo file for
	all supported platforms; just use "emul-fetch" and "emul-distinfo"
	instead.

    * lang/Cg-compiler -- install the shared libraries under ${EMULDIR}
	instead of ${PREFIX}/lib so that compiled programs will find
	the shared libraries.

    * mail/thunderbird-bin-nightly -- update to latest binary
	distributions for supported platforms.

    * multimedia/ns-flash -- update Linux version to 9.0.48 as the
	older version is no longer available for interactive fetch.

    * security/uvscan -- set LD_LIBRARY_PATH explicitly so that
	it's not necessary to install library symlinks into
	${EMULDIR}/usr/local/lib.

    * www/firefox-bin-flash -- update Linux version to 9.0.48 as the
	older version is no longer available for interactive fetch.
2007-07-29 05:18:36 +00:00
jlam
9bb51d11c7 Putting bsd.pkginstall.mk under bsd.tools.mk was a bad idea -- the
former set several USE_TOOLS lines that were being missed by bsd.tools.mk.

Rearrange the +SHLIBS code so that bsd.tools.mk can now be included
after bsd.pkginstall.mk again.  The +SHLIBS code has now been moved
over to the plist module, which is so far the repository for all of
the shlib-type handling.

This should fix the problem with fonts handling being broken.
2007-07-23 15:23:46 +00:00
rillig
210f9de622 Enabled the warnings. 2007-07-20 14:25:03 +00:00
jlam
2d76049e1e Add back a facility to rebuild the run-time library search paths database
on platforms that need it.

XXX Right now, if the platform needs it, then it runs for every package.
XXX This needs to be fixed to only run for packages that install shared
XXX libraries.

* Move mk/plist/shlib-type to mk/scripts.

* Move definition of SHLIB_TYPE from mk/plist/plist.mk to bsd.pkg.mk.

* Move inclusion of bsd.pkginstall.mk below bsd.tools.mk so that it
  can use SHLIB_TYPE.  This is necessary because SHLIB_TYPE's value
  is the result of evaluating a command, and the command needs "TOOL"
  definitions provided by bsd.tools.mk.
2007-07-18 18:01:02 +00:00
joerg
6890115248 Change default value of CREATE_WRKDIR_SYMLINK to no. In combination with
WRKOBJDIR, the pkgsrc tree is now read-only. Brought up multiple times
on tech-pkg and no major objection.
2007-07-16 20:51:07 +00:00
joerg
79cc54a7ec Add two targets, pbulk-index and pbulk-index-item.
pbulk-index-item prints a number of variables used by the parallel bulk
build code during either the build, the report or the upload phase.

pbulk-index checks whether multiple versions of the current package
could be build (e.g. because multiple Python versions are supported) and
uses pbulk-index-item for each possible combination.

Thanks to David Laight for explaining the different between using :[#]
in the body of a make target and in a clause of an .if.

Powered-by: Google SoC 2007.
2007-05-09 23:33:51 +00:00
kristerw
14eee92e95 Fix quoting issue that gave syntax error when printing the message
that new package tools are needed.
2007-04-01 19:02:14 +00:00
wiz
082ea716fe Remove warning about LIB_DEPENDS, it's sooooo long gone... 2007-03-02 06:01:44 +00:00
rillig
322b451e11 Finished the split of PKGSRC_LOCKTYPE into LOCALBASE_LOCKTYPE and
WRKDIR_LOCKTYPE. Added more documentation.
2007-02-22 07:20:41 +00:00
rillig
70e7958fda I find the ABI useful to know when looking at a binary package. 2007-02-20 10:32:09 +00:00
obache
abd8e894eb MAKEFLAGS for su-${.TARGET} is ${MAKEFLAGS.su-${.TARGET}},
not ${MAKEFLAGS.${.TARGET}} .

Fix non-root user update target.
2007-02-09 01:57:17 +00:00
rillig
9ea67301ad Added the INFO_MSG command, which can be used when the user should be
noticed about something that is not severe enough to need a warning.
INFO messages go to stdout instead of stderr.

Added the :M* modifier to the INSTALL_MACROS to make the resulting
command lines somewhat shorter.
2007-01-11 12:11:03 +00:00
rillig
b51c2d32b3 Added the FAIL command, which can be prepended to an arbitrary shell
command, making it return with a non-zero exit status.

The first use of it is in a command called FAIL_MSG, which prints an
error message and exits immediately. ERROR_MSG itself doesn't do that.
2007-01-06 19:53:01 +00:00
rillig
fb967a6591 Cleaned up bsd.pkg.mk:
- Removed some outdated comments.
- Made the inclusion of other *.mk files uniform.
- Replaced some instances of ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN},
  since the latter is much shorter.
2007-01-02 23:34:40 +00:00
rillig
43908c44cc Moved the show-tools target to misc/show.mk.
Moved the changes-entry target to misc/developer.mk. To save some time,
that file is only included when PKG_DEVELOPER is defined.

Moved the build-defs-message target to misc/show.mk and renamed it to
show-build-defs, since almost all other *-message targets just print a
single line.
2007-01-02 21:29:07 +00:00
rillig
b57f0d45fb Added an additional line to the parallel error message.
Added an empty line to separate the description of su-target from the
definition of _ROOT_CMD (for "make help").
2007-01-02 21:04:52 +00:00
martti
2cc4216d5e Remove trailing spaces. 2006-12-15 12:46:23 +00:00
rillig
714dc5ff6b Moved the code that checks for PKG_FAIL_REASON and PKG_SKIP reason from
the internal/ directory to misc/, since it is not really internal to
pkgsrc.

Fixed the case where PKG_SKIP_REASON was not noticed by the bulk builds.

Added the NOT_FOR_UNPRIVILEGED and ONLY_FOR_UNPRIVILEGED variables.
2006-11-26 08:37:03 +00:00
wiz
9d7fe65c60 Use PKG_FAIL_REASON for platform checks, to make them work again.
XXX: PKG_SKIP_REASON seems broken?
2006-11-19 09:32:29 +00:00
rillig
825ba83c0e Moved the check for PKG_FAIL_REASON and PKG_SKIP_REASON at the very end
of bsd.pkg.mk, so that all infrastructure parts may add their error
messages to PKG_FAIL_REASON.
2006-11-16 09:38:53 +00:00