summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2002-01-25Optimize the code to extract distfiles based on the extract suffix byjlam1-19/+19
putting them all into one large case statement instead of successive if statements, and by removing the creation and constant testing of a temp file to mark when the distfile is extracted.
2002-01-24For NetBSD/alpha versions >= 1.5V add -mieee to both CFLAGS and FFLAGS.dmcmahill1-1/+9
This will pass -mieee to those package which obey CFLAGS and FFLAGS. paraphrasing an email from Ross: The executive summary is: if i386 uses it (and it does) then alpha should also, or some programs will SIGFPE out on alpha when they don't on i386. If anyone asks, the details are as follows: The actual effect of -mieee is to put a software completion code bit into every floating point instruction, and to put trap barrier instructions in the code as necessary to ensure that traps are delivered before branches or other instructions make it impossible to trace backwards to the trapping op. The code bits have little effect on the hardware, mainly what happens is that when the hardware and palcode deliver a trap, they tell the trap handler whether the faulting op had a completion code. If it did, the kernel is suppose to trace backwards, find the op, and interpret it in SW, doing all the wacky ieee stuff that most chips don't do, stuff like denormal arithmetic and the generation of magic values (infinity, NaN) and the sticky flags. We do all that now except for a couple of truly obscure things that SoftFloat didn't support and which I haven't yet added. (And these are things that happen ONLY when you are taking overflow and underflow traps, which no one has every really done AFAICT. If you have the default behavior of gradual underflow and nontrapping infinity generation, we do everything.) This brings up the question of -mieee libraries, but that's not a pkgsrc problem. (Except to the extent that I recommend that libraries from pkgsrc, like everything else, also be compiled with -mieee. And in the case of libraries, it might be worth individually modifying the Makefile for the "not easy" case.)
2002-01-23Be more pervasive with previous change.jlam1-4/+7
2002-01-23When copying config files, if the destination file already exists, thenjlam1-2/+3
tell user where the example file is located. Patch provided by Stoned Elipot <seb@netbsd.org> in private e-mail.
2002-01-23Continue the trend removing the temporary ${PKGDIR} workaround.seb1-7/+1
2002-01-22make sure FFLAGS ends up in MAKE_ENV as well as BUILD_DEFS. This allows youdmcmahill1-4/+4
to do make FFLAGS='-my -f -flags' and at least the pkgs which obey FFLAGS use them.
2002-01-22Also replace for @SETENV@ (/usr/bin/env).jlam1-1/+2
2002-01-21Change the messagezuntum1-2/+2
"Perhaps you forgot the -P flag to cvs co or update?" to "Perhaps you forgot the -P flag to 'cvs checkout' or 'cvs update'?"
2002-01-21Add QMAILDIR variable that defaults to /var/qmail, may be set in /etc/mk.confzuntum2-3/+9
Also substitute QMAILDIR in PLIST because more packages than just mail/qmail need it.
2002-01-21Add ${QMAILDIR} to MESSAGE_SUBST, as it is going to be used in all qmail-relatedzuntum1-2/+3
packages.
2002-01-20add some html markup to the .broken files (which now have .html extenstion).dmcmahill1-10/+12
The primary purpose is so when a package is broken due to broken depends, there are links to the build logs of the broken dependencies. Suggested by Brook Milligan on tech-pkg.
2002-01-19Add coarse-grained locking to pkgsrc builds, by means of a beefedagc6-17/+110
up version of the bare-bones code in PR 7590, from David Maxwell. The definition governing the type of locking used is PKGSRC_LOCKTYPE, which can take any of the values "none", "sleep", and "once". The default is "none". If "sleep" locking is used, and process A is building a package, when process B attempts to build the same package, process B will sleep for PKGSRC_SLEEPSECS seconds, and attempt to grab the lock again. Coarse-grained locking uses the OBJHOSTNAME definition to ensure that the PID space is regular for shlock(1) to do its work. The pkgsrc/pkgtools/shlock package has been provided for environments where shlock is not standard.
2002-01-18Apply quoting to "${SORT_SITES_CMD}" to make Solaris's "/bin/sh" happy.tron1-2/+2
2002-01-17nuke USE_PYTHON, it's not needed anymoredrochner1-12/+1
2002-01-15if a sub-make is invoked to install a prerequisite pkg, pass it thedrochner1-2/+2
required pkg name (as PKGNAME_REQD)
2002-01-15Add zh_TW locale dir, per pkg/15250.wiz4-4/+20
2002-01-15Test before creating ${_DISTDIR} to avoid Solaris' /bin/mkdir apparentseb1-2/+2
brokenness.
2002-01-15Rearrange code so that if EXTRACT_CMD is defined, then it is used tojlam1-10/+18
extract all of the files listed in ${EXTRACT_ONLY}. This is so that a package author doesn't have to grub through bsd.pkg.mk in order to find how to override the extraction method. Problem noted by Antti Kantee in private email.
2002-01-12add the OBJHOSTNAME functionality that appeared in 1.901 of bsd.pkg.mk.dmcmahill1-20/+22
When OBJHOSTNAME is set, the various cache files and log files will include the hostname in their names. Useful when multiple machines of the same architecture share pkgsrc.
2002-01-11Add and document a new OBJHOSTNAME definition.agc2-3/+16
If set, the first component of the hostname (up to the first '.', if any), will be appended to "work." to form the WRKDIR_BASENAME. OBJHOSTNAME takes precedence over OBJMACHINE.
2002-01-10bsd.pkg.install.mk lists many things in FILES_SUBST, and we should havejlam1-1/+7
something to replace for each of those things in the header.
2002-01-10Also substitute for ${PKG_SYSCONFDIR} in MESSAGE files.jlam1-2/+3
2002-01-09Add elk package variable used to determine if X11 module is enabled or not.seb1-1/+6
2002-01-09In automake*-override targets make sur that find return a least a fileseb1-5/+5
(/dev/null) for touch to operate on or else it fails. Also corrected TOUCH_ARGS to TOUCH_FLAGS.
2002-01-07Only add rpath to LDFLAGS when the platform supports it.seb1-1/+3
2002-01-06Remove support for MASTER_SITES_foo and PATCH_SITES_foo, without furtherfredb1-9/+1
ceremony, as we can use SITES_foo instead, as is now documented in Packages.txt. The former were only ever used by exactly three packages (ghostscript, ghostscript-nox11, and kterm).
2002-01-06Put back the DIST_SUBDIR handling in the _FETCH_ALLFILES macro.fredb1-4/+4
2002-01-06Re-work the fetch target(s), as discussed on "tech-pkg". The primaryfredb1-65/+50
motivation is to make the order that sites are hit more sane, and especially to prevent hitting sites that aren't ever expected to have the sought after file. Now, ${MASTER_SITE_OVERRIDE} is always hit first. If that fails, then the sites designated for that file, then ${MASTER_SITE_BACKUP}, are hit (by default), but with the order subject to ${MASTER_SORT_REGEX} and ${MASTER_SORT_AWK}. The "designated sites" are usually ${MASTER_SITES} for files in ${DISTFILES}, and ${PATCH_SITES} for files in ${PATCH_FILES}. However, defining a variable `${SITES_foo}' in the package "Makefile" overrides that for file "foo". [The use of ${MASTER_SITES_foo} and ${PATCH_SITES_foo}, which is currently only used by a couple of packages for the same purpose, is deprecated, and will be shortly unsupported.] Also eliminate redundancy in the do-fetch and fetch-list-one-pkg targets, by making them use a single, common macro (escaped with `:Q' in the fetch-list-one-pkg case), so "make fetch-list-one-pkg | sh" now does exactly the same thing as "make do-fetch".
2002-01-06Fix file recognition for "unbuildlink-buildlink-subst" so it recognizetron1-2/+2
shell scripts under Solaris.
2002-01-06Rewrite handling of "AUTOMAKE_OVERRIDE" so that files get touched in thetron1-17/+19
desired order and in an order based on who the filesystem orders things.
2002-01-06Remove duplicate handling of "USETOOLS". It's already defined and addedtron1-6/+1
to "MAKE_ENV" in "bsd.prefs.mk".
2002-01-05Ignore "/usr/bin/msgfmt" under Solaris because it's not the GNU version.tron1-2/+3
2002-01-05Use wildcard in dependence on "gtexinfo" package so that "USE_GTEXINFO"tron1-2/+2
accepts version 4.0 of the package.
2002-01-05Use abstract names like "datasize" and "stacksize" in "UNLIMIT_RESOURCES"tron1-4/+7
to avoid portability problems as suggested by Jim Wise.
2002-01-04Allow objects of the form libfoo_pic.a to be linked into shared objects asskrll1-2/+2
well as the normal shared objects. This means that the new toolchain, that links in libgcc_pic.a, will build proper shared objects again. Bump to nb5 and make this the required version. Fixes pkg/15120 from Matthias Scheler <tron@colwyn.zhadum.de>
2002-01-04Minor indenting nit.agc1-3/+3
2002-01-04Add a new variable "UNLIMIT_RESOURCES" which can be used to raise processtron1-2/+10
limits for building a package.
2002-01-03Explicitly set BUILDLINK_DIR and BUILDLINK_X11_DIR with = instead of ?=.jlam2-4/+4
We really don't want these to change from the correct values (within ${WRKDIR}).
2002-01-01Remove trailing \ in the sed expression for config script wrappers as Linuxjlam1-2/+2
chokes on the construct. This was a pasto that's been there for a while but was uncaught. Thanks for David Brownlee <abs@netbsd.org> for noting the problem and the solution.
2002-01-01NS_ENCRYPTION hasn't been user-decidable for over a year now -- remove option.wiz1-7/+1
2001-12-27Darwin's patch(1) requires that you tell it to make backup files, as wellagc1-2/+2
as giving it a suffix to name the backup file.
2001-12-26(1) Create new variable "APACHE_SUEXEC_CONFIGURE_ARGS" that may containjlam2-3/+13
--suexec-* configure options that are passed directly to the Apache configure script. This may be used to tune the suEXEC configuration in more restrictive ways, e.g. --suexec-uidmin=1000. This solution is more open-ended than the fix proposed in pkg/14973. Also, we don't duplicate all of the options from the Apache configure script in pkgsrc bsd.pkg.defaults.mk. This closes pkg/14973 by Eric Schnoebelen <eric@cirr.com> (2) For namespace consistency, deprecate APACHE_USER in favor of APACHE_SUEXEC_USER. Move APACHE_USER into bsd.pkg.obsolete.mk. (3) Create the suEXEC user when the functionality is enabled in the server so that CGI scripts will work properly. This closes pkg/14903 by Wojciech Puchar <wojtek@3miasto.net>
2001-12-26Remove excessively clever checks to allow a section to be seen only if it'sjlam1-8/+5
the second time this file is included. Check for BSD_PREFS_MK instead.
2001-12-26Define a symbol BSD_PREFS_MK that may be checked by Makefile fragments tojlam1-1/+13
see whether they are being included from within bsd.prefs.mk or from without.
2001-12-26Include bsd.prefs.mk so that INSTALL_RCD_SCRIPTS may be defined before thejlam1-1/+3
relevant code in this file.
2001-12-25Add another locale dir (bg).wiz4-4/+20
2001-12-25Add another locale dir (de_AT).wiz4-4/+20
2001-12-24Initial implementation of pthread.buildlink.mk to transparently allow forjlam2-1/+110
using either the native pthread implementation or using a package pthread implementation instead, e.g. pth, ptl2, mit-pthreads, etc. The only currently supported package pthread implementation is pth as it's the only one with a buildlink.mk file. An example usage is: USE_PTHREAD= native pth .include "../../mk/pthread.buildlink.mk" or a fancier example is: USE_PTHREAD= native .include "../../mk/bsd.prefs.mk" .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") CONFIGURE_ARGS+= --without-pthreads .endif .include "../../mk/pthread.buildlink.mk"
2001-12-23Make the AUTOMAKE_OVERRIDE work for packages that use automake-1.5 and/orjlam1-7/+12
autoconf-2.5* by touching some more files. Thanks to YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> for pointing out the error in private e-mail. Also list several packages on which to verify this code after making changes to the AUTOMAKE*_PATTERNS.
2001-12-22Change the way the files used by the GNU auto* tools are touched. We nowjlam1-6/+43
touch some files before the configure script is run, and some more afterwards. We touch the files afterwards since the configure script can get modified after it is run, and touching some files afterwards prevents them from being regenerated if they depend on the configure script.