summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
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.
2007-08-01Support automatically using pkgsrc/emulators/osf1_lib to satisfyjlam2-2/+9
EMUL_PLATFORM osf1-alpha.
2007-08-01Support automatically using pkgsrc/emulators/darwin_lib to satisfyjlam3-3/+67
EMUL_PLATFORMs darwin-i386 and darwin-powerpc.
2007-08-01Begin adding some of the basic, non-intrusive pieces of thejoerg3-9/+24
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-01Teach mirror-distfiles to use emul-fetch if EMUL_PLATFORMS is defined sojlam1-1/+3
that mirror sites will grab all of the distfiles, not just the ones that are for the native platform.
2007-08-01Remove unused _EMUL_OPSYSES.jlam1-15/+1
2007-08-01Note the proper /emul/* dir for Darwin libraries.jlam1-1/+2
2007-08-01Define PKGPATH earlier so that mk.conf can use it.joerg1-2/+4
Requested by David Brownlee on tech-pkg.
2007-07-31Automatically add EMUL_{PLATFORM,OPSYS,ARCH} to FILES_SUBST andjlam1-1/+9
PLIST_SUBST to make life easier for package maintainers.
2007-07-31Don't substitute for OPSYS- or ARCH-related variables in print-plistjlam1-8/+13
if EMUL_PLATFORMS is defined. This facilitates making EMUL_PLATFORM-specific PLISTs.
2007-07-31Teach the extract module to extract RPMs with rpm2pkg.jlam4-4/+28
2007-07-30Compute OS_VERSION on AIX directly using make substitution instead ofjoerg1-2/+2
forking a shell and sed.
2007-07-30Use variable substitution instead of calling external cut tojoerg1-3/+3
compute LOWER_OPSYS_VERSUFFIX.
2007-07-29Add net/nfdump's options descriptionsseb1-0/+2
2007-07-29Allow the code to resolve the make path to deal with a strictlyjoerg1-1/+4
local path. E.g. running make as ./make now works.
2007-07-29Remove explicit include of sys.mk, which has been made redundant byjoerg1-7/+1
jlam's include of bsd.own.mk in June 2002.
2007-07-29Better formatting for the package- and user-settable variables, andjlam1-21/+31
document the emul-* helper targets.
2007-07-29Improve the example by adding a typical use of EMUL_MODULES.linux.jlam1-0/+47
2007-07-29* Add new emulator framework in pkgsrc/mk/emulator that handles alljlam25-14/+858
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-28Rationalize changes-entry and commit-changes-entry.gdt1-13/+11
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-28Also use the shell builtin for [. Add comment for test and [ about that.joerg1-3/+3
2007-07-28Always use the test builtin...joerg1-2/+2
2007-07-28Add REPLACE_KSH similiar to REPLACE_BASH and REPLACE_SH as thejoerg1-1/+10
CHECK_INTERPRETER bulk build has shown a surprising number of packages using it.
2007-07-27Move the +SHLIBS generation code back into the pkginstall module. In thejlam3-40/+43
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-27If using X11_TYPE=modular this means we have imake(1) from pkgsrc.tnn1-3/+7
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-27Don't depend on digest if FAILOVER_FETCH and NO_CHECKSUM are setjoerg1-2/+5
together.
2007-07-27Remove remaining traces of BUILDLINK_TRANSFORM.${pkg}.joerg1-5/+1
2007-07-25Documented PKGCONFIG_OVERRIDE and PKGCONFIG_OVERRIDE_STAGE.rillig1-1/+12
2007-07-25Add --config <file> from build scriptadrianp1-7/+35
2007-07-25Make sure PKG_INFO is setadrianp1-1/+2