Commit graph

6744 commits

Author SHA1 Message Date
jlam
bf456958e2 Avoid checking whether PKG_OPTIONS_DEPRECATED_WARNINGS is defined in
the makefile and simply handle it in the shell code.  This allows for
appending to PKG_OPTIONS_DEPRECATED_WARNINGS in a makefile even after
bsd.options.mk is included.
2007-08-14 19:03:25 +00:00
rillig
6f1d6ed164 Return the documentation for FOO.<param> or FOO.${param} when help for
FOO is requested.
2007-08-14 18:04:16 +00:00
rillig
6af03c047d Rewrote the header comment. 2007-08-14 17:48:53 +00:00
gdt
d337d7e584 s/accept all licenses/bypass license checks/ 2007-08-14 15:23:53 +00:00
joerg
1024803ccc Checksum checks only make sense when distinfo is also present, so
move this into the conditional.
2007-08-14 14:19:19 +00:00
rillig
b1e6764d13 Don't print the message for the distribution patches if there aren't any. 2007-08-14 13:21:57 +00:00
rillig
d2a43c5046 _ACCEPTABLE is used by some bulk builders. 2007-08-14 07:54:22 +00:00
jlam
6aef13a50f Suppress the "depends on installed package(s)" message so it doesn't get
printed for each EMUL_PLATFORM that is supported by the package.
2007-08-13 15:17:09 +00:00
gdt
28ac528511 Factor out _REPLACE_NEWNAME_CMD.
Use $$newname consistently rather than $PKGBASE and $PKGNAME.
Rationalize @ with STEP_MSG.
Ensure ${RUN} is used once, and all commands are included.
2007-08-13 14:18:23 +00:00
rillig
11f5886a78 Fixed the definition and the documentation of MAKE_PROGRAM. 2007-08-13 12:03:10 +00:00
rillig
3434bf2469 PKGNAME and PKGPATH will never contain characters that need to be
escaped for HTML output.
2007-08-13 09:45:49 +00:00
rillig
959300ee1a APACHE_PKG_PREFIX can be ap22. 2007-08-13 09:31:43 +00:00
rillig
a6bcf86c93 Reworked the way the needed tools for the "patch" phase are determined. 2007-08-13 09:22:21 +00:00
rillig
6ff274e50f Replaced the comment at the beginning of the file with a useful one. It
explains which variables can be used in the mk.conf file.

Removed the definition of CUT, since it is no longer used.
2007-08-13 09:03:41 +00:00
rillig
9e9a86e7cc When PKG_DEBUG_LEVEL is 2 or more, the make target is printed for every
shell command that is run via the RUN macro. This makes the output a
little more verbose, but when you have the need to set PKG_DEBUG_LEVEL
that high, you can probably need the extra help you get from this
change.
2007-08-13 08:45:17 +00:00
rillig
5002a8e475 Made the code simpler:
- Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN},
- Moved the code to load oldname into a macro.
2007-08-13 08:33:45 +00:00
rillig
6aecf48699 Added mk/misc/category.mk, which contains the definitions that are only
useful for category Makefiles, as opposed to bsd.pkg.subdir.mk, which is
also relevant for the top-level directory. Adjusted the category Makefiles.
2007-08-13 08:12:41 +00:00
rillig
c3cfa6c470 Fixed joerg's failed try to support invoking make(1) as ./make or similar.
It had failed in the devel/ directory, since devel/bmake exists there.
2007-08-13 07:42:10 +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
6fc362c558 This file doesn't need the multiple-inclusion guards. 2007-08-13 05:58:44 +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
rillig
4c34803115 Prevented the files check from being confused by concurrent instances of
"make replace". Since these are currently not locked properly, they may
remove files from PKG_DBDIR while another package is being installed.
2007-08-13 05:05:11 +00:00
rillig
e73fc2cba2 RESTRICTED does not need quotes. 2007-08-13 05:01:18 +00:00
jlam
aca2d9fb93 rpm2pkg is actually in ${PREFIX}/sbin. 2007-08-13 02:30:04 +00:00
rillig
ba2968b999 Reverted everything that had not been mentioned in the previous commit
message. Related to PR 36588.
2007-08-11 21:15:22 +00:00
joerg
f24acb4a25 When calling gcc to extract the version number, pass down
ALL_ENV as well. This ensures that any locale settings are
overridden and the output matches what pkgsrc expects.

This should fix some of the strange bootstrap issues seen over
time that were seemingly fxied by USE_NATIVE_GCC=yes.
2007-08-11 17:31:22 +00:00
rillig
3b06ad5673 pkg_info -Q does not print a newline if a variable isn't defined at all
in the installed package's +BUILD_INFO. Therefore, an empty line is
printed in advance to avoid a warning by make(1). Fixes PR 36588.
2007-08-11 16:25:16 +00:00
gdt
1d2084981e add missing \, reported my Mark Perkins 2007-08-11 14:18:05 +00:00
gdt
2a32611320 store +REQUIRED_BY and +INSTALLED_INFO in work/.replace-FOO rather
than in work/.pkgdb, so as not to lose them in install-clean.
Because of this, put them back explicitly.
(Fixes 'make replace loses +REQUIRED_BY', and also the unreported
'make replace loses +INSTALLED_INFO'.)
2007-08-10 17:57:28 +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
jlam
be040a55a4 Rename the generate-metadata and clean-metadata targets to _flavor- style
names to indicate that they are purely private to flavor/pkg.
2007-08-10 04:03:23 +00:00
jlam
6ea0c2868e Remove ${WRKDIR}/.pkgdb during "install-clean" as that directory
contains files that are generated during the "install" phase.  This
should fix the problem where PLIST modifications were ignored if the
PLIST was modified between a "make deinstall" and a "make reinstall".
2007-08-10 04:00:43 +00:00
jlam
605292a86d Give rpm2pkg a standard variable name "RPM2PKG" and teach GNU configure
scripts about "cat".
2007-08-10 03:46:10 +00:00
jlam
7ea1d9339e Skip blank lines in +REQUIRED_BY files so that we don't error out trying
to locate the +CONTENTS file for a "blank" package.

Why are there blank lines at all in +REQUIRED_BY?
2007-08-08 16:39:05 +00:00
tnn
d5062d2372 Need to also unset unsafe_depends_strict along with unsafe_depends here. 2007-08-08 11:35:16 +00:00
dsainty
2e3ae84d55 Fix some typos in comments, no functional change 2007-08-08 08:12:12 +00:00
wulf
9413e13d23 Added option gnuradio-radio-astronomy used by meta-pkgs/gnuradio 2007-08-08 03:34:21 +00:00
gdt
873cb31073 Change the meaning of unsafe_depends to mean that a dependency has
been replaced which might have had an ABI change.  In practice, a
package is considered to maybe have had an ABI change if the version
changes.  Introduce a new tag unsafe_depends_strict, which is
unconditionally set on depending packages whenever make replace is
done.

This will cut down considerably on the amount of rebuilding required
with pkg_rolling-replace, while still guaranteing that packages are
rebuilt if there was an ABI change in a dependency.
2007-08-08 02:07:27 +00:00
gdt
f435245a77 Improve previous: Per tnn@ suggestion, don't do pkg_admin unset unless
+INSTALLED_INFO is present, to avoid complaint from pkg_admin (see
pkg/36741).  Separate tag removal into a separate target, and use
STEP_MSG and _PKG_DEBUG properly.
2007-08-08 01:44:24 +00:00
gdt
d5af98e19c Remove unsafe_depends and rebuild tags from a package just before
fixing up the required-by file.  The invariant on unsafe_depends (on
which pkg_rolling-replace depends) is once again maintained, but now
cleanly, rather than assuming that all tags are cleared.

(proposed on tech-pkg with no objections, and concurrence from tnn@)
2007-08-07 22:27:12 +00:00
adrianp
462a5ff1d9 Encode the generated HTML properly, taken from genreadme.awk 2007-08-06 19:28:17 +00:00
adrianp
d176003e13 audit-packages prints vulnerabilities to stdout so compensate for this. 2007-08-06 02:43:34 +00:00
adrianp
bf4e848d46 Fix show-vulnerabilities-html target for pkg_install>=20070714.
audit-packages prints vulnerabilities to stdout so compensate for this.
2007-08-06 02:36:24 +00:00
adrianp
4dbb76ab3c mkdatabase needs BMAKE=${MAKE:Q} set before calling otherwise it will
default to using 'make' which will break systems (e.g. OS/X) that use
'bmake'.
Report from Mark E. Perkins on pkgsrc-users@
2007-08-05 19:13:02 +00:00
tnn
b2607abab8 /usr/bin/file on OSF1 is somewhat broken in that it reports the path
of the interpreter as the filetype when a file starts with #!
This unfortunately breaks SUBST handling. For now, use a dummy that
claims that every file is a text file.
2007-08-05 12:38:22 +00:00
obache
1d2a0b073b Move ${DISTDIR} write permission check to just before really need to write.
Patch provided by Aleksej Saushev in PR 36473.
2007-08-04 15:00:29 +00:00
adrianp
7bddba39aa Use ${PKGTOOLS_VERSION} when detecting which version of pkg_install is
installed.  Idea from one of joerg@'s patches.
Fix 'make readme' and make README.html' targets for individual packages.
Issue reported by Gary Thorpe and David Lord in pkgsrc-users@
2007-08-04 11:23:56 +00:00
adrianp
e67737df3a Use ${PKGTOOLS_VERSION} when detecting which version of pkg_install is
installed.  Idea from one of joerg@'s patches.
2007-08-04 11:21:08 +00:00
ghen
fbad5e6c89 We forgot DragonFly. 2007-08-03 23:16:02 +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
e92540b3b8 Preserve any existing +INSTALLED_INFO file from an installed package
before replacing it, and restore it when the new package is installed.
This saves any state information that should be carried over to the
new package, e.g. automatic=yes.

XXX Still need to do the same when "un-replacing".
2007-08-02 23:00:18 +00:00
adrianp
7178eb82ce Be more intelligent when setting PVDIR. If pkg_install<20070714 then use
PKGVULNDIR; else extract the current setting using audit-packages -Q and use
that.  In addition to this mkreadme can still be called with -V to specify
a pkg-vulnerabilities file that will override any automatic detection.
2007-08-02 22:42:05 +00:00
joerg
005620851f Add core of the infrastructure support for cross-compilation.
- USE_CROSS_COMPILATION activates it, CROSS_DESTDIR specifies root of
  the target filesystem
- derive _CROSS_DESTDIR from CROSS_DESTDIR or MAKEOBJDIR
- buildlink3.mk prefixes the files to symlink with _CROSS_DESTDIR
- compiler/gcc.mk knows about the target prefix (e.g. i386--netbsdelf)
- PKG_DBDIR is prefixed with _CROSS_DESTDIR
- package-install and bin-install are not called with su
- install and strip are redirected to the tool version
- links for the target specific ar, as, ld, nm, objdump, ranlib and
  strip are added
- compiler wrapper detect if linking is requested or not
- special command sinks for CPP and CC/CXX add the cross-compile magic:
  - modify include dirs to get the target /usr/include
  - modify linker dirs and runpath to use target /usr/lib at link time,
    but keep correct rpath entries

Supported-by: Google SoC 2007
Basic tests by he@ on Sparc. Review from jlam@.
2007-08-02 18:19:31 +00:00
jlam
6989e7a043 Automatically substitute for JAVA_HOME and PKG_JAVA_HOME in PLISTs. 2007-08-02 18:04:48 +00:00
jlam
21129d3f69 Don't bother using environment variables to pass info the shlib-type
shell script.  Just specify everything on the command line.  Also,
since shlib-type is a plain-old shell script with no bells and whistles,
we can safely run it with "sh" and not "${SH}", which is necessary
because "${SH}" isn't defined at this point.
2007-08-02 16:00:33 +00:00
jlam
6c4f985be1 Rewrite in a more portable way (basically cripple ourselves to Solaris
/bin/sh).
2007-08-02 15:46:33 +00:00
gdt
6e460feeda Add wiz's request, add a changes-entry-noupdate that has the old
behavior of just appending to the file without cvs update (or cvs edit
if not writable), for the convenience of those committing multiple
package updates at once.  To implement this, split the
update/cat/commit into elementary targets and compose them to form the
user-exposed targets, spiff up the comments, and rationalize .PHONY
usage.
2007-08-02 11:52:14 +00:00
tnn
94727992eb Remove inclusion of pkgtools/posix_headers/buildlink3.mk. This was
useful for initial testing, but here is not the proper place to include it.
For now the recommended way is to include the buildlink3.mk in mk.conf.
2007-08-02 00:11:45 +00:00
jlam
c30218a3ef Support automatically using pkgsrc/emulators/osf1_lib to satisfy
EMUL_PLATFORM osf1-alpha.
2007-08-01 17:19:22 +00:00
jlam
8101baad23 Support automatically using pkgsrc/emulators/darwin_lib to satisfy
EMUL_PLATFORMs darwin-i386 and darwin-powerpc.
2007-08-01 16:28:08 +00:00
joerg
29777c8ec5 Begin adding some of the basic, non-intrusive pieces of the
cross-compile support.

- NATIVE_MACHINE_GNU_ARCH, NATIVE_LOWER_ARCH, NATIVE_MACHINE_ARCH,
  NATIVE_MACHINE_PLATFORM and NATIVE_MACHINE_GNU_PLATFORM work
  like the counterpars without NATIVE_ prefix. Expansion of
  NATIVE_LOWER_ARCH and NATIVE_MACHINE_ARCH is enforced early,
  so that MACHINE_ARCH can be overriden in mk.conf to specify the
  target architecture.
- Provide a default of NO for USE_CROSS_COMPILE. This will be the
  main switch to activate cross-compiling and adding it now makes
  it possible to merge more of the patches for specific packages.
- Set --build and --host when cross-compiling, the former using the
  just added variable NATIVE_MACHINE_GNU_PLATFORM.

Supported-by: Google SoC 2007
Looks good: jlam@
2007-08-01 16:14:17 +00:00
jlam
13157ce5e2 Teach mirror-distfiles to use emul-fetch if EMUL_PLATFORMS is defined so
that mirror sites will grab all of the distfiles, not just the ones that
are for the native platform.
2007-08-01 15:24:51 +00:00
jlam
3f468312f3 Remove unused _EMUL_OPSYSES. 2007-08-01 15:20:10 +00:00
jlam
8e4ec99c37 Note the proper /emul/* dir for Darwin libraries. 2007-08-01 15:17:56 +00:00
joerg
4db0539a2b Define PKGPATH earlier so that mk.conf can use it.
Requested by David Brownlee on tech-pkg.
2007-08-01 12:21:56 +00:00
jlam
5321117c50 Automatically add EMUL_{PLATFORM,OPSYS,ARCH} to FILES_SUBST and
PLIST_SUBST to make life easier for package maintainers.
2007-07-31 20:02:48 +00:00
jlam
639a93d743 Don't substitute for OPSYS- or ARCH-related variables in print-plist
if EMUL_PLATFORMS is defined.  This facilitates making
EMUL_PLATFORM-specific PLISTs.
2007-07-31 19:51:01 +00:00
jlam
3629e30a61 Teach the extract module to extract RPMs with rpm2pkg. 2007-07-31 17:42:40 +00:00
joerg
2b3b6c11ab Compute OS_VERSION on AIX directly using make substitution instead of
forking a shell and sed.
2007-07-30 14:10:36 +00:00
joerg
a13b98431e Use variable substitution instead of calling external cut to
compute LOWER_OPSYS_VERSUFFIX.
2007-07-30 14:07:07 +00:00
seb
89b8998808 Add net/nfdump's options descriptions 2007-07-29 22:14:32 +00:00
joerg
a7702e998f Allow the code to resolve the make path to deal with a strictly
local path. E.g. running make as ./make now works.
2007-07-29 18:27:05 +00:00
joerg
910d37bad9 Remove explicit include of sys.mk, which has been made redundant by
jlam's include of bsd.own.mk in June 2002.
2007-07-29 13:17:57 +00:00
jlam
02381a6b80 Better formatting for the package- and user-settable variables, and
document the emul-* helper targets.
2007-07-29 09:24:33 +00:00
jlam
fdd4eac242 Improve the example by adding a typical use of EMUL_MODULES.linux. 2007-07-29 08:58:52 +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
gdt
ff5558bc4c Rationalize changes-entry and commit-changes-entry.
changes-entry now does cvs update (and cvs edit if needed), and adds
the line.  This target will behave the same way (with extra CVS
traffic) if the file is up to date, and will be omre useful if
CHANGES-YYYY is not up to date.

commit-changes-entry depends on changes-entry and also commits.  This
target has no behavior changes.

Rename _CCE_FOO variables to PKGSRC_CHANGES_FOO, and merge with
existing varables.

We may need a changes-entry-no-update, or a new name for what
changes-entry does now.  Given how infrequently CHANGES-YYYY is up to
date when I want to add, I believe the new behavior will be welcome to
almost everyone.
2007-07-28 12:23:17 +00:00
joerg
d670e0be94 Also use the shell builtin for [. Add comment for test and [ about that. 2007-07-28 01:21:15 +00:00
joerg
6d2a995e3d Always use the test builtin... 2007-07-28 01:19:07 +00:00
joerg
f493ba1049 Add REPLACE_KSH similiar to REPLACE_BASH and REPLACE_SH as the
CHECK_INTERPRETER bulk build has shown a surprising number of
packages using it.
2007-07-28 00:42:33 +00:00
jlam
4dde9bc3a4 Move the +SHLIBS generation code back into the pkginstall module. In the
plist module, it was being "defined" too late, and the pkginstall module
never created any +SHLIBS scripts.  Sidestep the tools problems with
SHLIB_TYPE by pretending they don't exist (for now).

XXX SHLIB_TYPE needs to be re-thought or removed altogether.
2007-07-27 18:37:35 +00:00
tnn
bd630c4f6f If using X11_TYPE=modular this means we have imake(1) from pkgsrc.
We can't use our own imake to check for builtin packages so disable the
check and always report that no builtin implementation exists.
No objections on tech-pkg@
2007-07-27 17:44:43 +00:00
joerg
ced3f13079 Don't depend on digest if FAILOVER_FETCH and NO_CHECKSUM are set
together.
2007-07-27 14:24:53 +00:00
joerg
1181f7164e Remove remaining traces of BUILDLINK_TRANSFORM.${pkg}. 2007-07-27 13:15:41 +00:00
rillig
c6b4400da0 Documented PKGCONFIG_OVERRIDE and PKGCONFIG_OVERRIDE_STAGE. 2007-07-25 18:07:34 +00:00
adrianp
35f7e128c2 Add --config <file> from build script 2007-07-25 12:00:21 +00:00
adrianp
554cf5daf1 Make sure PKG_INFO is set 2007-07-25 10:57:44 +00:00
adrianp
55bf3ab6d3 Add epoll and a bunch of inspircd descriptions. 2007-07-24 20:11:00 +00:00
joerg
de82d7fa12 *blush* One variable was missing for the !modular case. 2007-07-23 15:25:20 +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
joerg
a3551a9262 More aggressively conditionalize X11BASE handling. Only one case
is left now and that is hidden by LOCALBASE=X11BASE for modular Xorg.
2007-07-23 13:22:11 +00:00
joerg
ebe8eba5a1 When using check-perms, also depend on sysutils/checkperms. 2007-07-23 12:10:56 +00:00
gdt
13a15e5263 In cce, run cvs edit if the file is not writable. This occurs with
CVSREAD=t, and should result in unchanged behavior with writable
files.  Split _CCE_CHANGES definition into _CCE_CHANGES_{DIR/BASE} to
facilitate above.
2007-07-21 22:31:02 +00:00
adrianp
b61d8add4a Define ${PKG_INFO} before using it - from wiz@ 2007-07-21 12:48:31 +00:00
joerg
a0378cffcb Kill code to catch Zoularis installations. It is three years old and
anyone still having such an old installation has other issues like nbawk
anyway.
2007-07-20 22:40:56 +00:00
rillig
210f9de622 Enabled the warnings. 2007-07-20 14:25:03 +00:00
rillig
f20861ee38 Added the license-handling code from bsd.pkg.mk to here. When this file
will become active, the corresponding code will be cleaned up in
bsd.pkg.mk.
2007-07-20 14:21:26 +00:00
rillig
e0a28fcf8c Added code to display warnings at package build time. Among others, this
will be used for the licenses.
2007-07-20 14:08:19 +00:00
gdt
d6b01f775a Rework list of default acceptable licenses.
Use lower case to be consistent with existing license names.
Declare that free/open licenses do not have -license at the end.
Better articulate rationale for default choice.
Add x11 license (also called mit).
Note 'wait and see' stance towards gnu-gpl-v3.
2007-07-20 13:05:28 +00:00
jlam
b07ac962c6 Reversed file descriptors 1 and 2... time for a coffee break... 2007-07-18 18:55:56 +00:00
jlam
e11696b2dd Ignore the result of the ldconfig command. 2007-07-18 18:53:18 +00:00
jlam
e586cdd924 PKG_METADATADIR is the *second* argument. 2007-07-18 18:46:12 +00:00
jlam
681069ad5f Add missing definition for "$ACTION", which is the first argument to the
+SHLIBS script.
2007-07-18 18:43:05 +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
jlam
12d6ee2282 Preserve the default value of PLIST_SRC as PLIST_SRC_DFLT while still
allowing PLIST_SRC to be overridden in a package Makefile.

It's now possible to do:

	PLIST_SRC=	${PLIST_SRC_DFLT} ${WRKDIR}/PLIST_DYNAMIC

and still use the default PLIST.* fragment handling.
2007-07-18 14:12:30 +00:00
tnn
2861fd6198 Add makedepend as a platform tool in case of native X11, due to it's
residing outside of X11BASE.
2007-07-18 09:18:57 +00:00
joerg
462c1fc51c Drop trailing components like -RELEASE for FreeBSD like we do for
DragonFly. This fixes the version number of lsof as side effect.
2007-07-17 09:20:18 +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
heinz
e37c99a149 Updated list of sourceforge mirrors according to
http://sourceforge.net/project/mirror_picker.php.
2007-07-15 09:53:38 +00:00
adrianp
9b5c38d79d Add support for the upcoming pkg_install-20070714 which now includes
audit-packages.
2007-07-14 17:17:45 +00:00
obache
01b24d20c2 No need to pass "." as directory, it is default value. 2007-07-14 05:51:11 +00:00
obache
1fcc9dd138 Allow empty DIST_SUBDIR, need to fix PR 35494. 2007-07-14 05:45:35 +00:00
joerg
34d85224d6 Don't cd to PREFIX, it might not exist yet. bin-install doesn't do
that either.
2007-07-13 14:42:53 +00:00
jlam
83f1c3afae * Add a user-settable variable to tune the default verbosity of the
+INSTALL and +DEINSTALL scripts:

  PKGINSTALL_VERBOSE
	A list of scriptlets that will be verbose and output a message
	noting the actions taken.

	* "all" is a special value that implies all of the other items
	* "fonts" for +FONTS
	* "info-files" for +INFO_FILES

	Default value: "all" for PKG_DEVELOPERs, empty otherwise.

* Be "one-liner brief" when doing the default actions.  For example,
  the info files output now looks like:

	gmake-3.81: registering info file /usr/pkg/info/make.info

  We retain the current verbosity for the CHECK-* actions.
2007-07-12 19:41:46 +00:00
jlam
13ed6251eb No longer pass install_sh in the environment to GNU configure scripts.
We fix GNU configure script stupidity by directly replacing the stock
install-sh script provided by the software with the BSD install-compatible
sysutils/install-sh script.

A new package-settable variable comes to life:

INSTALL_SH_OVERRIDE is a list of files relative to WRKSRC which
	should be overridden by the install-sh script from
	sysutils/install-sh.  If not defined or set to "no", then
	no files are overridden.

	Possible values: no, defined, undefined.

	Default value: defined when GNU_CONFIGURE is defined, undefined
	otherwise.

Get rid of the install_sh tool, which is no longer needed.
2007-07-12 18:59:15 +00:00
wiz
eb11b9e771 Describe flac, add wavpack, remove wcalc-gtk1 (not used, it seems). 2007-07-07 07:43:44 +00:00
rillig
9cb998d6e2 Fixed typos from the last commit. Clarified how ACCEPTABLE_LICENSES can
be set in mk.conf.
2007-07-06 01:22:40 +00:00
gdt
3b14447c8b Revise and expand discussion of variables. Avoid the phrase "the user
accepting the license"; that sounds too close to a contract issue.
Pkgsrc's license framework is merely about not building a package with
a license not on the ok list by accident, and is not intended to have
any contractual effects.

Split comment about 'package user" into separate concepts of
installing binary packages and running programs in packages.

Add XXX about how DEFAULT_ACCEPTABLE_LICENSES relates to the initial
value of ACCEPTABLE_LICENSES.
2007-07-05 18:16:47 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-07-04 20:54:31 +00:00
wiz
73da25f40a + be@latin for libwnck. 2007-07-03 19:40:43 +00:00
joerg
e24209d145 Add common handling for libresolv similiar to dlopen(3) wrapping.
For now, DragonFly and FreeBSD use the libc version, it is not reentrant,
but thread-safe. NetBSD 3.0+ and Darwin 8.0+ use libresolv from base
(the BIND9 resolver), all other fall back to net/bind9. Feel free to add
your favorite platform if it has a thread-safe resolver in base.

Modify mail/libspf-alf, mail/milter-greylist, mail/spamdyke and
net/nocol accordingly. Testing on !DragonFly and feedback from tron@
2007-07-03 13:54:45 +00:00
rillig
ee68283218 Added a first draft for the licenses framework. 2007-07-03 05:08:12 +00:00
adrianp
2fb736a53a s/PRIVILEGED_STAGE/PRIVILEGED_STAGES/g as it could refer to multiple
stages in the future.  Suggested by rillig@
2007-07-02 20:24:27 +00:00
joerg
7525aa54e2 Don't special case mtree as tool. 2007-07-02 14:56:10 +00:00
joerg
409b183fc0 Remove USE_MTREE support. Keep one copy (the NetBSD version) for
the purpose of print-PLIST in plist/common-dirs.mtree.

Discussed with wiz@, no objections on tech-pkg@.
2007-07-02 14:54:09 +00:00
joerg
f1e659c224 DragonFly is ELF-only. Fix indentation. 2007-07-02 14:06:22 +00:00
joerg
94be767784 Remove RSH definition. 2007-07-02 14:03:34 +00:00
joerg
3d2f7cdfcc SSH_RSHPATH has been unused for ages, remove. 2007-07-02 14:02:06 +00:00
adrianp
99287730ab Introduce PRIVILEGED_STAGE.
This can currently only be set to 'clean' which will result in a
priveleged 'make clean' operation in case any package builds result
in files under ${WRKSRC} that are owned by root.

This is useful for certain packages e.g. python (on NetBSD) and ezm3
and possibly more.
2007-07-01 00:06:40 +00:00
joerg
4c6eff78c5 Don't use open-ended dependencies for emacs20 and emacs21 to avoid
the wrong version from being picked up by pkg_add or bin-install.

OK uebayasi@
2007-06-30 05:13:24 +00:00
uebayasi
6dca21bcf0 I forgot it's freeze, revert the previous for safety.
But actually, the default didn't change because EMACS_TYPE is set to
emacs21 in pkgsrc/mk/defaults/mk.conf.

I will clean up all Emacs Lisp packages to be emacs22-capable, then change
the default.
2007-06-30 05:04:41 +00:00
uebayasi
7d167f62c4 Now the recommended GNU Emacs version (pkgsrc/editors/emacs) is Emacs 22.
Depend & install it if users don't set EMACS_TYPE explicitly.
2007-06-30 04:42:45 +00:00
joerg
a83b9335ce OpenBSD is "special" as it doesn't have bzip2. 2007-06-25 10:53:21 +00:00
uebayasi
965f24b7d2 leim for Emacs 22 is always installed with the base. Nothing additional is
needed.
2007-06-21 13:20:59 +00:00
markd
0efad1146f EMACS_ETCPREFIX is documented as being substituted in PLIST's.
Make it so.
2007-06-20 11:40:22 +00:00
jlam
1a6fb589c8 Move common definitions of UUCP_{GROUP,USER} from mail/courier-mta and
net/uucp to mk/defaults/mk.conf.
2007-06-19 21:29:09 +00:00
joerg
0c29048a15 Create IDENT variable by default. 2007-06-19 17:01:31 +00:00
joerg
93bf771184 Add bzip2 as tool. All platforms that had code to deal with bzcat
also get bzip2, the rest falls back to archivers/bzip2.

OK jlam.
2007-06-19 17:01:12 +00:00
joerg
f4ecc6bd31 Add ident as tool and use /usr/bin/ident on those platforms I know to
have it. Fallback to devel/rcs otherwise.

Commited during freeze as it is a dependency of pbulk.
2007-06-19 14:21:18 +00:00
dmcmahill
93768ceffe On the sed expression used to extract $NetBSD$ and $Id$ tags, add
a "^" to the beginning to anchor the expression.  No change in the ouput
but on SunOS-5.9 it runs up to 90,000 times faster on some files (probably
much less of an improvement on some, maybe more improvement on others).
Committed during the freeze as bulk builds that call 'make debug' were
unusable.
2007-06-19 13:11:01 +00:00
joerg
bc4f17e592 Change DragonFly to use modular Xorg by default. Haven't heard much bad
from users of the binary packages, so assume it works well enough.
2007-06-18 08:14:54 +00:00
rillig
a43d0cbe68 Changed the plain "mkdir" into ${MKDIR}, like in all the other cases.
Apparently, the tools directory isn't in the PATH at the point where
this code is executed.

Fixes PR 35487.
2007-06-18 07:33:34 +00:00
dmcmahill
f620dcb213 Use a package option to control the --enable-single-profile option for
mozilla browsers.  This is now useful again to those of use who require
multiple profiles.
2007-06-16 01:14:47 +00:00
wiz
e57a27b67c Fix PR 34139 for bulk builds too.
Patch from Sergey Svishchev.
2007-06-15 22:28:53 +00:00
jlam
c616c5fb10 On second thought, maybe the rest of the world's software isn't as
well-audited as NetBSD's /usr/bin/su.  Change the default
SETUID_ROOT_PERMS to 4511 to raise the bar slightly on finding
vulnerabilities in setuid-root binaries.
2007-06-15 22:04:33 +00:00
joerg
e3fe1108f0 Add msgconv to the gettext tools. 2007-06-15 17:11:33 +00:00
rillig
3a6deb3539 The option --prepare only generates the bulk build database. 2007-06-15 15:52:22 +00:00
rillig
3c335872b8 Added transformations for -R, -fPIC, -kPIC, -KPIC and -g3. 2007-06-15 15:34:31 +00:00
jlam
ac27702398 Change the default setuid-root permissions from 4711 to 4555. This
strips off the write bit for root and gets rid of the unnecessary lack
of read permissions for "group" and "other".  Inspired by /usr/bin/su
on NetBSD.
2007-06-15 14:46:02 +00:00
jlam
bfa6395385 Document PKG_SYSCONFDIR_PERMS, which has existed for quite some time. 2007-06-15 14:14:36 +00:00
rillig
0f21e6fc1c When a recursive make is run, stdin must be preserved. Otherwise su(1)
cannot ask for a password and fails. Patch provided by OBATA Akio in
http://mail-index.netbsd.org/pkgsrc-users/2007/04/23/0001.html
2007-06-15 10:39:08 +00:00
rillig
61b4964a9b Added the keyword "parallel" to the description of MAKE_JOBS_SAFE. 2007-06-13 20:34:48 +00:00
joerg
78dc1b95c3 gettext-tools was split off with version 0.14.5 of gettext,
so use either a newer version of the former or an older version
of the latter.
2007-06-13 14:21:47 +00:00
obache
7ca7b65ff4 Define some variables for using FETCH_CMD=wget. 2007-06-12 09:54:52 +00:00
markd
7f1ee5089b update locations of emacs 21 and emacs 22 packages. 2007-06-11 14:01:58 +00:00
obache
a22e60a21b Add two mirror servers for sourceforge.jp:
* IIJ
 * GLOBALBASE PROJECT
2007-06-11 08:17:54 +00:00
abs
11b2fc360a add jdk15, modelled on jdk14 2007-06-11 07:03:18 +00:00
joerg
f3cceb12c3 Alter the pattern to detect upper limits to actually match some real
patterns. Otherwise the upper bound would silently get dropped.
2007-06-10 07:31:42 +00:00
rillig
ac3ee7770d There was one ">" too much, so the fail-wrapper warning was printed
multiple times.
2007-06-09 18:44:37 +00:00
rillig
4a8946c97e Added a slight variation of the patch provided in PR 36187 by Naoto
Morishima.
2007-06-09 11:27:33 +00:00
rillig
4c3c864e51 Fixed the description of PLIST_SRC. 2007-06-09 11:02:23 +00:00
wiz
eeca7c11b2 Document nox11 option. 2007-06-09 09:51:14 +00:00
rillig
4e653a34ec Changed the wording of the warning messages when a compiler-fail-wrapper
is run. As a new feature, an error message is printed when the wrapper
is called, so that there is a better trace to it than a completely empty
output.

See also: http://mail-index.netbsd.org/tech-pkg/2007/06/08/0017.html
2007-06-08 20:48:16 +00:00
jlam
bf1aa1dd87 Back out previous and always define the shell variable $silent
appropriately again based on the value of _BOOTSTRAP_VERBOSE.  This
code was lost in revision 1.27.

This should again suppress the output during "mirror-distfiles" in the
case where the bootstrap dependency is already installed.
2007-06-07 15:30:26 +00:00
rillig
fd3be0a23a Fixed a typo, which has been discovered by Mark E. Perkins. 2007-06-07 10:46:32 +00:00
rillig
287ae72163 Replaced ${_PKG_SILENT}${_PKG_DEBUG} with a simple ${RUN} to save some
space.
2007-06-06 13:20:34 +00:00
rillig
4a23c92902 The "build-env" target is no longer defined in this file. 2007-06-06 12:43:04 +00:00
rillig
362a7f39b3 Fixed indentation. 2007-06-06 12:41:53 +00:00
rillig
6dd36d59da Added _VARGROUPS. 2007-06-06 12:40:05 +00:00
rillig
fc0688ff52 Added _VARGROUPS. 2007-06-06 09:29:53 +00:00
rillig
1618d58608 Made the generation of the PLIST_SUBST entries a bit simpler. 2007-06-06 08:33:54 +00:00
rillig
136a6388fe Added BUILD_DEFS. 2007-06-06 08:25:04 +00:00
rillig
7c0810303e Removed the comment about REPLACE_EMACS, since there isn't any code
implementing it.

Added the variable description (_VARGROUPS).
2007-06-06 08:23:23 +00:00
rillig
12764e49b0 Removed the outer .if ... .endif, so that I don't need to indent the
other conditionals. Indented all conditionals according to pkglint's
idea of correct indentation.

All packages that use this file must also have some options. Otherwise,
why should they use it at all?

All errors are _appended_ to PKG_FAIL_REASON, instead of overwriting
older ones.
2007-06-06 07:12:31 +00:00
rillig
4b882aadae Added the variable JAVA_BINPREFIX containing the prefix to the wrapped
Java binaries. This makes it easier for packages to call the wrapper
instead of the direct binary. See games/cgoban-java/Makefile revision
1.39 for the current approach and the following revision for the simpler
one.

Added _VARGROUPS. Doing that, I realized that BUILD_DEFS corresponds to
_USER_VARS.* and BUILD_DEFS_EFFECTS to _SYS_VARS.*. This redundancy may
be removed in the future.

Removed a redundant comment.
2007-06-05 13:35:06 +00:00
rillig
fb21124de0 The variable $silent may be undefined, not only empty.
(This is needed for changing the "set -e" to "set -eu" in the ${RUN} macro.)
2007-06-05 13:19:10 +00:00
rillig
431fbeeba1 For GNU-style configure scripts, the environment variable install_sh
must point to a shell script (as the name implies), not to a binary.
2007-06-04 12:10:20 +00:00
rillig
a3a72d22f3 Keywords may be separated by commas. 2007-06-04 08:11:07 +00:00
rillig
ee5b4f997c Added documentation. 2007-06-04 08:10:32 +00:00
heinz
735d0a6656 Avoid usage of modern kinds of parameter expansion (##, #, %%, %)
because /bin/sh on Solaris doesn't understand this syntax and bmake
uses this ancient shell.
bmake should really be built with /bin/ksh or /usr/xpg4/bin/sh as the
default shell.
2007-06-04 00:07:48 +00:00
rillig
be572cf6c1 If a package is already installed, bulk-install should not try to build
it again.
2007-05-31 11:49:09 +00:00
jlam
4f34ebeaf5 * Move the meat of the bootstrap-depends target entirely within the
lock, which I think is what was originally intended.

* Avoid creating ${WRKDIR}/.depends when running the bootstrap-depends
  target, which is run as part of running the fetch target.  We still
  create the .depends file later when we need it.

XXX Note that there are still problems when locking occurs because locks
XXX are created in ${WRKDIR}, so running "bootstrap-depends" as a source
XXX for "fetch" will still cause the work directory to be created and
XXX populated with files.  This probably needs to be solved by using a
XXX different location for the lockfile, e.g. ${TMPDIR}, for the
XXX bootstrap-depends step.
2007-05-29 15:26:25 +00:00
rillig
36fa355d50 Add some more keywords, so that one can grep for "mk.conf" and find the
relevant code that loads the configuration.
2007-05-29 14:48:49 +00:00
dmcmahill
98fa60beec Test to see if a variable is defined before testing for its value. Keeps
make happy on my older (netbsd-2) NetBSD box.
2007-05-29 03:00:44 +00:00
heinz
a215fa598d Changed suffix for _PLIST_NOKEYWORDS to be more in line with other files
in WRKDIR.
2007-05-28 13:59:10 +00:00
heinz
ada9d78f21 In order to avoid incorrect information about needed shared libraries in
+BUILD_INFO we must ensure that we only test valid lines from PLIST and
not lines like "@unexec /bin/rmdir..." where "/bin/rmdir" is not a part
of the resulting package.
To achieve this, a stripped version of PLIST, called _PLIST_NOKEYWORDS,
is introduced.
2007-05-28 13:54:25 +00:00
martti
5867247b54 Remove trailing spaces. 2007-05-28 11:07:00 +00:00
jlam
5c4627887a Define a TOOLS_ENV variable that holds a shell environment that may be
passed to the configure or build phases.  This variable holds a slightly
different value depending on whether GNU_CONFIGURE is defined or not --
in the former case, the value is tuned for passing the GNU configure
script.

Automatically pass TOOLS_ENV to GNU configure scripts, so there is no
user-visible change.
2007-05-27 02:11:13 +00:00
jlam
510984a0d6 Move the .if test out of the .for loop because the test condition doesn't
change within the .for loop.
2007-05-27 01:44:42 +00:00
heinz
f7cc9bc252 Correct recording of provided shared libraries when using DESTDIR.
Raised on tech-pkg 2007-05-16, no objections.
2007-05-26 11:58:33 +00:00
obache
22a6337ce1 Add ring servers to MASTER_SITE_TEX_CTAN. 2007-05-26 04:07:11 +00:00
joerg
a17c5dcdee Remove stray done. 2007-05-25 23:24:35 +00:00
joerg
f16755ea90 Partly backout the commit and move install-dependencies back into
depends.mk. The quoting of arrays passed down is almost impossible
to get right. For example, PKG_BUILD_OPTION.* variables can contain
multiple space separated entries but have to be quoted twice.

The original commit exposed two separate issues:
- too many variables are passed down via MAKEFLAGS, including the above
mentioned PKG_BUILD_OPTIONs.
- x11/gtk2 used an invalid variable name that can't be assigned
correctly via make command line.

This is supposed to fix PR 36387.
2007-05-25 19:07:23 +00:00
joerg
31f7ba18c8 Add xauth as tool. 2007-05-25 15:12:52 +00:00
rillig
72a55e9e86 When testing whether the patches/ directory exists or not, take into
account that CVS usually leaves empty directories around. This fixes the
bootstrapping after a "cvs update" without the -P option. The error
message leading to it was:

===> running: (cd /home/p/src/devel/bmake && /home/p/pkg/bin/bmake -s
	-DPKG_PRESERVE MAKECONF=/home/p/work/mk.conf.example
	WRKOBJDIR=/home/p/work/pkgsrc bootstrap-register)
ERROR: [resolve-dependencies] A package matching ``digest>=20010302'' should
ERROR:     be installed, but one cannot be found.  Perhaps there is a
ERROR:     stale work directory for ../../pkgtools/digest?
2007-05-25 14:21:32 +00:00
rillig
fb94cde2f6 Replaced printf(1) with echo(1), since printf is not available in the
top-level directory of pkgsrc.
2007-05-24 05:33:49 +00:00
rillig
1cf36740dd If more than one location for a topic is found, print an empty line
between them. Up to now, "bmake help topic=configure" looked rather
compressed.
2007-05-24 05:29:06 +00:00
wiz
db056fe3bc Remove some more outdated/broken mirror sites.
From Zafer Aydogan.
2007-05-23 23:48:52 +00:00
rillig
4a63eaf9f3 When removing an already installed package, the correct package version
is reported.

Fixed the output by not nestedly redirecting the output of "bmake debug".
2007-05-23 10:50:44 +00:00