summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2005-01-26Fix so that we preserve /usr/lib/foo.so on the command line.jlam1-16/+28
2005-01-25Set argmatch=yes when we transform /some/where/libfoo.so intocube1-1/+4
-L/some/where -lfoo so that the arguments we push on the stack are actually used in logic. Should solve the issue build bash with option 'static' enabled reported on netbsd-users. OK'd by jlam@.
2005-01-25Relax need to put GNU_CONFIGURE before inclusion of bsd.prefs.mk:tv13-49/+27
Convert _OPSYS_MAX_CMDLEN to a plain _OPSYS_MAX_CMDLEN_CMD variable, which is not evaluated by a shell until CONFIGURE_ENV is expanded (and only then if USE_LIBTOOL+GNU_CONFIGURE are both set).
2005-01-25Explicitly use -g to avoid relying on default behavior.jmmv1-3/+3
2005-01-25Redo previous per suggestion from reed@. Do not process the alternativesjmmv1-21/+10
until the pkg_alternatives package has been manually installed. This way we drop the dependency on that package.
2005-01-25Make the usage of alternatives optional through the PKG_ALTERNATIVES variable,jmmv1-6/+19
which is similar to PKG_CONFIG. This does not change how the binary packages are built, only whether the pkg_alternatives command should be run at package installation/deinstallation time or not. The variable can take either YES or NO as values and defaults to YES.
2005-01-25Add alternatives.mk, a file used to manipulate the alternatives system.jmmv2-1/+61
A package can optionally provide an ALTERNATIVES file which contains pairs of wrapper/alternative, one per line. The file is then used by the install and deinstall scripts to register the alternatives and to create the appropriate wrappers. Make bsd.pkg.mk include this new file. This happens unconditionally to keep all the alternatives logic in an independent file. Otherwise, some of the stuff could have to be moved to bsd.pkg.mk, breaking consistency.
2005-01-25only try to run the build if "cd /usr/pkgsrc" is successful.grant1-2/+2
2005-01-24Add python22, python24 to base addresses list.tv1-1/+3
2005-01-24Disallow -rdynamic (was being attempted by shells/scsh).tv1-2/+2
2005-01-24Merge a little visual-only cleanup from the tv-derecurse branch:tv1-103/+71
Collect many modifiable hard-to-find variables scattered throughout bsd.pkg.mk into a common section near the top of the file. (Not necessarily "complete", but helps to reduce HEAD-branch divergence.)
2005-01-24Merge down deferred PREPEND_PATH handling from the tv-derecurse branch.tv2-45/+37
Also merge in deferred CLASSPATH handling, which can now be moved back to java-vm.mk for cleanliness.
2005-01-24Make CHECK_FILES_SKIP_CMD into a single grep, using a ${var:@foo@bar@} loop.tv1-7/+2
2005-01-24Merge down deferred EVAL_PREFIX handling from tv-derecurse branch.tv4-25/+16
Also move its definition later in bsd.pkg.mk, so that it actually works for compiler/*.mk (which is why those files originally had to provide "defaults" for their variables -- they never did get evaluated).
2005-01-24Merge down janitorial change from tv-derecurse branch:tv2-5/+7
Move definition of PKGSRC_COMPILER to defaults/mk.conf, to make it more readily seen by the user.
2005-01-24Merge down janitorial change from tv-derecurse branch:tv1-9/+5
No need to do .som_done dance; just show the message as part of the pre-extract phase. If that means showing it more than once if the extract is interrupted and restarted, no harm done.
2005-01-24Per default, only create md5 and sha1 checksums.jschauma2-17/+25
(These are available on all platforms via digest(1).) Set commands for other checksums on a per OPSYS basis. Set MKSUSM=yes back as the default.
2005-01-24Not all OS's have all the checksum tools available to make MKSUMS=yes work.tv1-2/+2
Default it to "no" instead.
2005-01-24Add MKSUMS and SIGN_AS (the former defaulting to yes, the latter commentedjschauma1-1/+7
out).
2005-01-24Fix breakage in previous, installed pkg db files should be installed intoxtraeme1-7/+7
${PKG_DB_TMPDIR} not ${_PKG_DB_TMPDIR}, patch from Geoff Wing.
2005-01-24Add bits to allow bulk-builders to generate checksums for the binaryjschauma1-1/+52
packages they upload (by setting the optional variable MKSUMS=yes) and, also optionally, PGP signing them (by setting SIGN_AS=username@NetBSD.org, for example).
2005-01-23Move the creation of ${PKG_DB_TMPDIR} earlier so that it's created asjlam1-3/+2
the build user instead of the root user. This should allow "make clean" as a non-root user to work again.
2005-01-23Rearrange the register-pkg and post-install-fake-pkg code. All ofjlam1-39/+44
the meta-data files are generated and stored in ${PKG_DB_TMPDIR} by the *-install-fake-pkg targets, and then all of the contents of that directory are simply copied into ${PKG_DBDIR}/${PKGNAME} by register-pkg. This is intended to make (DE)INSTALL scripts be more powerful. Currently, they have no way to keep state on their own. Now, they can keep state in the current working directory. When invoked by pkg_add(1), the current working directory is ${PKG_DBDIR}/${PKGNAME}, so the state files are already stored in the correct place. When invoked by bsd.pkg.mk, the current working directory is ${PKG_DB_TMPDIR}, and any state files generated by the (DE)INSTALL scripts are copied into the correct place by the register-pkg target.
2005-01-23Rework the way that packages are registered during a "make install". Wejlam2-42/+64
split the fake-pkg target into three smaller pieces: pre-install-fake-pkg - Create files in ${WRKSRC}/.pkgdb meant to be installed into ${PKG_DBDIR}/${PKGNAME} that don't depend on the installed files. post-install-fake-pkg - Create files in ${WRKSRC}/.pkgdb meant to be installed into ${PKG_DBDIR}/${PKGNAME} that may depend on the installed files. register-pkg - Copy the files in ${WRKSRC}/.pkgdb and create a few additional meta-files in ${PKG_DBDIR}/${PKGNAME}. The idea is that ${WRKSRC}/.pkgdb contains as much of the state as possible that will be copied into ${PKG_DBDIR}/${PKGNAME}. The INSTALL and DEINSTALL scripts generated by bsd.pkg.install.mk are now invoked with ${WRKSRC}/.pkgdb as the working directory, so the scripts may use the working directory to store temporary files, regardless of whether they're invoked from bsd.pkg.mk or by pkg_add.
2005-01-22message whitespace fixgrant1-2/+2
2005-01-21Re-add direct symlink logic, optional under GCC_USE_SYMLINKS=yes. Savestv1-2/+8
one fork/exec step on platforms where gcc is compiled with hardcoded gcc-lib pathnames. This applies to most platforms, but the default currently remains not to use symlinks so as to avoid unexpected gotchas for users.
2005-01-21The pipe triggers a subshell even though () is not used. So use "exit" andtv1-13/+13
|| on the outside of the command to determine whether the packages found in the loop are up to date.
2005-01-21Fix missing {} around variable name, noted by wiz.tv1-5/+5
Change one instance of $(...) to `...` per policy.
2005-01-21Add NOLINT=1 for BSD-.mk based packages.tv1-2/+2
2005-01-21Add ruby16/ruby18 to base addresses list.tv1-1/+5
2005-01-21Interix doesn't have a "flex" program per se in the base system. Its "lex"tv1-2/+2
is flex, but libfl.a and FlexLexer.h are missing. So use pkgsrc flex on an as-needed basis.
2005-01-21Defer the check of GNU_CONFIGURE until later; should fix build of net/ORBittv1-6/+2
(and perhaps other packages) which set GNU_CONFIGURE only after bsd.prefs.mk.
2005-01-20Also match NetBSD security releases, e.g. 2.0.1, when deciding whetherjlam1-2/+3
using dlopen() implies linking against libpthread. Idea for fix from PR pkg/29022 and probably also fixes PR pkg/28800.
2005-01-20Add LINTPKGSRC_CACHE support to reuse .lintpkgsrc.db created by pre-build.tv1-5/+14
"cd" to $USR_PKGSRC automagically so this can be called from any dir.
2005-01-19Fix error in previous; add explicit version check first, then the optionallytv1-5/+10
excluded timestamp check.
2005-01-19* Add USE_BULK_TIMESTAMPS (default "yes") to control whether dependencytv3-24/+66
binpkg timestamps, and ${PKGDIR} file timestamps, will be used to determine if a rebuild is necessary. If changed to "no", then rebuilds will only happen when PKGNAME actually changes. * Add LINTPKGSRC_DB (and companion USE_LINTPKGSRC_CACHE, default "no") to make pre-build generate a reusable database with "lintpkgsrc -E"; helps with nfs-mounted pkgsrc. A future change will allow use of this in the upload script. * Add entry for PRUNEPACKAGES in build.conf-example (this was missing).
2005-01-19Add no_NY locale used by kdbg and kbiff. Also hsb and nds locales usedmarkd13-13/+169
by kde.
2005-01-18Force manpages to be man-only (no catpages) when using BSD .mk files intv1-1/+5
a package build. This may change once groff is fixed, but for now, there's no guarantee of a nroff available on the host system.
2005-01-18Add <bsd.lib.mk> to base addresses list.tv1-1/+2
2005-01-18Add python23 to the base-address list.tv1-1/+2
2005-01-18Split out the argument pre-processing logic into its own scriptjlam7-164/+329
arg-pp-main, and allow for wrapper-specific hooks to extend the pre-processing through _WRAP_ARG_PP.<wrappee>. Move the Darwin GCC-related preprocessing into arg-pp-darwin-gcc, and create a arg-pp-mipspro-cc that understands -LANG:<feature> and -LIST:<feature> so that they're not confused with the usual -Ldir options.
2005-01-18Turn distfile pruning back off by suggestion of wiz@. It's only binpkgtv1-2/+2
pruning that needs to be on by default.
2005-01-18Turn on all pruning by default. This avoids problems with @blddep matchingtv1-4/+4
in the current incarnation of pkg_install.
2005-01-18Teach the wrapper scripts about HP-UX *.sl shared libraries. Theyjlam1-1/+14
work the same way as ELF *.so shared libraries from pkgsrc's point of view -- just the extension is different.
2005-01-17Add a blank line between multiple "broken due to a broken dependency"jmmv1-2/+2
messages for better readability.
2005-01-17Rework code to more easily allow listing other platform that, like NetBSD,jlam1-2/+3
use GCC and can accept -pthread. Add DragonFly(BSD) to this list (from PR pkg/28964).
2005-01-15- Move all CHECK_FILES_SKIP definitions to a central place in bsd.pkg.mk.jmmv3-46/+44
- Move the previous block of code down in the file so that all used variables are defined (specially PKG_SYSCONFDIR). Fixes a problem noticed by kristerw@'s bulk build in comms/minicom. - Ignore diff's return code, which aborts make in NetBSD 1.6.2. Also noticed by kristerw@'s bulk build. - Use full paths to do the checks, instead of relative to ${PREFIX}. Less ambiguity. Matches should be turned into regular expressions that anchor to a whole line (tried that, but found some problems). - Turn CHECK_FILES to NO by default. As said in the previous point, there are still some problems that have to be fixed and minor improvements to be done. And I have no time to fix this ATM. Yes, this definitely needs more testing. I'm sorry for all the noise. (But hey! you should set and try this feature locally! ;-)
2005-01-15Fix endif typoadrianp1-2/+2
2005-01-15Work around an undef-in-string warning caused by unexpanded $NetBSD$tv1-4/+4
id tags. Noticed by kristerw.
2005-01-14Also skip ${INFO_DIR}/dir in the check-files functionality, as this filejmmv1-1/+6
is not controlled by any package (so it won't be part of any PLIST).