summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2007-08-13Fixed the definition and the documentation of MAKE_PROGRAM.rillig1-7/+8
2007-08-13PKGNAME and PKGPATH will never contain characters that need to berillig1-5/+3
escaped for HTML output.
2007-08-13APACHE_PKG_PREFIX can be ap22.rillig1-2/+2
2007-08-13Reworked the way the needed tools for the "patch" phase are determined.rillig1-18/+11
2007-08-13Replaced the comment at the beginning of the file with a useful one. Itrillig1-23/+35
explains which variables can be used in the mk.conf file. Removed the definition of CUT, since it is no longer used.
2007-08-13When PKG_DEBUG_LEVEL is 2 or more, the make target is printed for everyrillig1-2/+2
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-13Made the code simpler:rillig1-40/+23
- Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN}, - Moved the code to load oldname into a macro.
2007-08-13Added mk/misc/category.mk, which contains the definitions that are onlyrillig2-41/+46
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-13Fixed joerg's failed try to support invoking make(1) as ./make or similar.rillig1-4/+5
It had failed in the devel/ directory, since devel/bmake exists there.
2007-08-13Moved the stuff that is common to all directories of pkgsrc into its ownrillig3-51/+52
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-13This file doesn't need the multiple-inclusion guards.rillig1-6/+1
2007-08-13build-env is no longer defined in bsd.pkg.debug.mk.rillig1-2/+2
2007-08-13Fixed _PKG_DEBUG_SCRIPT for the case of PKG_DEBUG_LEVEL=0.rillig1-2/+2
2007-08-13Prevented the files check from being confused by concurrent instances ofrillig1-1/+3
"make replace". Since these are currently not locked properly, they may remove files from PKG_DBDIR while another package is being installed.
2007-08-13RESTRICTED does not need quotes.rillig1-2/+2
2007-08-13rpm2pkg is actually in ${PREFIX}/sbin.jlam1-2/+2
2007-08-11Reverted everything that had not been mentioned in the previous commitrillig1-22/+1
message. Related to PR 36588.
2007-08-11When calling gcc to extract the version number, pass downjoerg1-2/+2
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-11pkg_info -Q does not print a newline if a variable isn't defined at allrillig1-1/+23
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-11add missing \, reported my Mark Perkinsgdt1-2/+2
2007-08-10store +REQUIRED_BY and +INSTALLED_INFO in work/.replace-FOO rathergdt1-7/+12
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-10Try a bit harder to guess which mk.conf the user is using, whenjoerg1-2/+10
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-10Rename the generate-metadata and clean-metadata targets to _flavor- stylejlam2-14/+14
names to indicate that they are purely private to flavor/pkg.
2007-08-10Remove ${WRKDIR}/.pkgdb during "install-clean" as that directoryjlam2-3/+8
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-10Give rpm2pkg a standard variable name "RPM2PKG" and teach GNU configurejlam1-1/+3
scripts about "cat".
2007-08-08Skip blank lines in +REQUIRED_BY files so that we don't error out tryingjlam1-1/+2
to locate the +CONTENTS file for a "blank" package. Why are there blank lines at all in +REQUIRED_BY?
2007-08-08Need to also unset unsafe_depends_strict along with unsafe_depends here.tnn1-2/+2
2007-08-08Fix some typos in comments, no functional changedsainty1-5/+5
2007-08-08Added option gnuradio-radio-astronomy used by meta-pkgs/gnuradiowulf1-0/+1
2007-08-08Change the meaning of unsafe_depends to mean that a dependency hasgdt1-3/+9
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-08Improve previous: Per tnn@ suggestion, don't do pkg_admin unset unlessgdt1-6/+17
+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-07Remove unsafe_depends and rebuild tags from a package just beforegdt1-3/+6
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-06Encode the generated HTML properly, taken from genreadme.awkadrianp1-3/+7
2007-08-06audit-packages prints vulnerabilities to stdout so compensate for this.adrianp1-2/+2
2007-08-06Fix show-vulnerabilities-html target for pkg_install>=20070714.adrianp1-2/+2
audit-packages prints vulnerabilities to stdout so compensate for this.
2007-08-05mkdatabase needs BMAKE=${MAKE:Q} set before calling otherwise it willadrianp1-2/+2
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/usr/bin/file on OSF1 is somewhat broken in that it reports the pathtnn1-2/+2
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-04Move ${DISTDIR} write permission check to just before really need to write.obache1-7/+7
Patch provided by Aleksej Saushev in PR 36473.
2007-08-04Use ${PKGTOOLS_VERSION} when detecting which version of pkg_install isadrianp1-3/+8
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-04Use ${PKGTOOLS_VERSION} when detecting which version of pkg_install isadrianp1-3/+2
installed. Idea from one of joerg@'s patches.
2007-08-03We forgot DragonFly.ghen1-1/+3
2007-08-03Update _USE_DESTDIR=full handling to use the new -u/-g code andjoerg3-13/+11
require pkg_install-20070802 for using it. It is now considered to work correctly and ready for general consumption.
2007-08-02Preserve any existing +INSTALLED_INFO file from an installed packagejlam1-1/+19
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-02Be more intelligent when setting PVDIR. If pkg_install<20070714 then useadrianp1-6/+14
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-02Add core of the infrastructure support for cross-compilation.joerg11-25/+262
- 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-02Automatically substitute for JAVA_HOME and PKG_JAVA_HOME in PLISTs.jlam2-2/+8
2007-08-02Don't bother using environment variables to pass info the shlib-typejlam2-14/+13
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-02Rewrite in a more portable way (basically cripple ourselves to Solarisjlam1-25/+21
/bin/sh).
2007-08-02Add wiz's request, add a changes-entry-noupdate that has the oldgdt1-9/+26
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-02Remove inclusion of pkgtools/posix_headers/buildlink3.mk. This wastnn1-6/+1
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.