summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2006-07-25BUILD_ENV was renamed to PKGSRC_MAKE_ENV.jlam1-3/+3
2006-07-25Whenever f2c is mentioned in USE_LANGUAGES, a C compiler is also needed,rillig1-1/+3
so automatically add it to USE_LANGUAGES. Fixes PR 34079.
2006-07-24Remove comment for non-existing USETBL.wiz1-7/+1
2006-07-24Describe groff-docs.wiz1-0/+1
2006-07-23The proper phase to run just before "configure" is "patch", notjlam1-2/+2
"wrapper", after "wrapper" was moved to be between "tools" and "extract". This should fix PR pkg/34061.
2006-07-23Remove mirrors.sunsite.dk because it causes hangs in thewiz1-2/+1
weekly distfiles fetch.
2006-07-23Remove cran.dk -- causes hangs for weekly distfiles mirror job.wiz1-2/+1
2006-07-22Modify the barrier so that we always invoke the recursive make processjlam15-32/+32
when passing through the barrier. This ensures the PATH (passed via PKGSRC_MAKE_ENV) is correctly set for all phases after the barrier. This fixes a bug in "interactive" pkgsrc use, where if you have no work directory and type "make build && make install", then the "install" step does not have a PATH set to include all the wrapper and tools directories.
2006-07-22The C compiler is also used for Objective C, so the c-fail-wrapper isrillig1-3/+3
only created if none of these languages is mentioned in USE_LANGUAGE.
2006-07-21"BUILD_ENV" was misnamed. It's actually the environment that is passedjlam5-13/+13
to all internal recursive make processes. As such, rename it to "PKGSRC_MAKE_ENV". XXX Note, some of the usage of this variable in package Makefiles seems XXX incorrect. They probably want "MAKE_ENV", which is the environment XXX passed to the make process when running "make" within ${WRKSRC}.
2006-07-21Rearrange sequence so that "wrapper" occurs between "tools" andjlam7-17/+24
"extract". This allows all user-definable targets (pre-*, do-*, post-*) to have access to the wrapper scripts.
2006-07-21Modify the shlib-type script so that it doesn't need to compile anythingjlam2-26/+22
-- instead, we just check "pkg_info", which should exist on all pkgsrc platforms. XXX Note that this may need to change when we later support other package XXX system flavors. Back out revision 1.79 of pkgtools/x11-links/Makefile which was only to work around needing a C compiler for shlib-type to work.
2006-07-20Remove USE_GNU_GETTEXT from pkgsrc. Packages generally only neededjlam13-26/+13
it for plurals support, but that is already handled correctly (FSVO "correctly") by the pkgsrc/mk/tools/msgfmt.sh script. Also remove _USE_GNU_GETTEXT definitions from pkgsrc/mk/platform/*.mk files as that value has been unused by pkgsrc for quite some time (going back several branches).
2006-07-20Make _show-dbginfo-configure work for packages that don't setjlam1-1/+3
CONFIGURE_ARGS. We guard against an empty CONFIGURE_ARGS to prevent the ODE variable loop from expanding to an empty value.
2006-07-20CONFIGURE_ARGS are processed by an ODE "for" loop, since that preventsrillig1-2/+2
an empty line from being printed when the variable is empty. It also removes the need for special handling of "<".
2006-07-20Use an ODE variable loop instead of a make .for loop to output the listjlam1-6/+5
of "TOOL" variables defined by the tools framework.
2006-07-20Added the build-env target.rillig1-4/+18
2006-07-20Include the file bsd.pkg.debug.mk if requested by invoking the "debug"rillig1-1/+4
target.
2006-07-20Oops, there had been an RCS tag that should not have been expanded.rillig1-2/+2
2006-07-20Added the "debug" target, which outputs a lot of information helping inrillig1-0/+119
debugging packages that have build problems.
2006-07-20Up to now, the language "c" has always been enabled, no matter if therillig1-5/+9
package said USE_LANGUAGES=#none or USE_LANGUAGES=fortran. Added a c-fail-wrapper that works like the other fail-wrappers. The default value for USE_LANGUAGES is still "c". Some problems are expected with packages that say USE_LANGUAGES+=c++ or with packages containing GNU configure scripts and setting USE_LANGUAGES=c++, as those scripts always need a working C compiler.
2006-07-20Don't bother with error messages when attempting to remove the "work"jlam1-2/+2
symlink in the pkgsrc tree in case it's actually a stale work directory. This gets rid of this error: ===> Cleaning for pkg_install-20060701 rm: work: is a directory *** Error code 1 (ignored)
2006-07-20The package directory path is "PKGPATH", not "PKG_PATH", which is usedjlam1-2/+2
by pkg_add(1).
2006-07-20Change last instance of _REPLACE.* to REPLACE.*. Remove specialjlam1-11/+1
_REPLACE.* handling from replace-interpreter.mk.
2006-07-20verify_file() returns a non-zero result whenever the distfile does notjoerg1-3/+1
currently exist. This triggers a bug in the Bourne shell of at least DragonFly and Irix, when set -e is also active. Remove set -e to avoid this. Discussed with jlam@, shown by DragonFly bulk builds, complains on DragonFly's user list and PR 34036. A test case for this shell bug is, which should return 0: set -e testf () { test -f /nonexistent || return 1 return 0 } if testf; then exit 1 fi exit 0
2006-07-20Remove ${SED} check that no longer works.jlam1-19/+1
2006-07-19Be more conservative and avoid possible shell implementation differencesjlam8-16/+28
by not using `...` inside ${...#...}.
2006-07-19Handle case where {SH,}LIBTOOL_OVERRIDE is empty for shells that don'tjlam1-3/+7
understand empty lists in for loops. Addresses PR pkg/34042.
2006-07-19Drop support for LTCONFIG_OVERRIDE. For quite a long time, pkgsrcjlam1-36/+4
had actually been ignoring LTCONFIG_OVERRIDE anyway and just using the default LIBTOOL_OVERRIDE to replace libtool scripts in packages. This just formalizes the fact that LTCONFIG_OVERRIDE is not used meaningfully by pkgsrc.
2006-07-19Add messages noting when the PRE-INSTALL and POST-INSTALL actions are run.jlam1-1/+3
2006-07-19Make "mirror-distfiles" less verbose by not printing out anything if nojlam2-5/+11
bootstrap dependencies need to be built and installed.
2006-07-19Comment the code a bit more.jlam1-1/+4
2006-07-19The "makedistinfo" target should actually be named "distinfo" to matchjlam1-7/+9
the old bsd.pkg.mk behavior (noted by adrianp in private email). Keep "makedistinfo" as an alias for "distinfo". While here, sprinkle some .PHONY declarations for correctness.
2006-07-19Only pass -v to the fetch script if PKG_VERBOSE is set.jlam1-2/+2
2006-07-19Restore original quoting from old fetch.mk for _ORDERED_SITES to resolvejlam1-3/+5
the problem with MASTER_SORT*. XXX The whole MASTER_SORT* thing should just be a standalone script.
2006-07-19Add a verbose flag to the fetch script to output the actual fetch command.jlam1-4/+11
2006-07-19Make some variables "private":jlam1-10/+10
MASTER_SORT_AWK SORT_SITES_CMD ORDERED_SITES These variables are purely internal to pkgsrc.
2006-07-19Work around incomprehensible quoting mess surrounding MASTER_SORT* byjlam1-2/+2
in do-fetch-file (formerly they were inserted by the old _FETCH_FILE inserting some quotes that are no longer added by the fetch command list macro). This makes fetching with MASTER_SORT* set work again.
2006-07-19PASSIVE_FETCH only affects "ftp", so move it to the ftp-related FETCH_*jlam1-8/+7
variables.
2006-07-18Convert _FETCH_MESSAGE to plain old FETCH_MESSAGE. Remove _FETCH_MESSAGEjlam2-17/+4
processing from mk/fetch/*.mk.
2006-07-18Overhaul fetch module:jlam7-403/+459
* All the smarts is now encapsulated in the "fetch" script. The fetch script understands how to use the distinfo file (if specified) to look up the size and checksums of the file to fetch and will use that information to verify checksums of the fetched files or resume transfers of interrupted fetches. * Move the default settings for FETCH_RESUME_ARGS and FETCH_OUTPUT_ARGS for "ftp" from mk/defaults/mk.conf into mk/fetch/fetch.mk. We rewrite it to avoid needing conditional statements. * Avoid spawning a new make(1) process just to mirror a distfile. * Split out fetch-list targets into a separate file fetch-list.mk. These targets should probably be moved into a standalone script. * Fix distclean target to properly remove partial downloads.
2006-07-18Add a flag "-s suffix" for allowing the specified files to have a suffixjlam1-6/+15
that will be removed before looking up the checksum in the distinfo file.
2006-07-17During 'make replace', use pkg_admin to set the unsafe_dependsgdt1-1/+2
variable to YES for each pacakge that depends on the replaced package. Discussed on tech-pkg with generally positive comments.
2006-07-17Remove stale comment, noted by bad@ in PR 33871.wiz1-7/+1
2006-07-17First cut at a fetch script to replace the humungous fetch "macros" injlam1-0/+173
fetch.mk. This script currently completely replaces the functionality in _FETCH_FILE. I will eventually add the ability to resume a file transfer to this script.
2006-07-17Don't say "ERROR:" or "WARNING:"... be a more typical shell script byjlam1-4/+4
just noting the error or warning to standard error.
2006-07-17Added LOCALBASE, PKGINFODIR and PKGMANDIR to _BUILD_DEFS, since theyrillig1-1/+4
influence the way the package is installed. Also, they are so commonly used that it would be a nuisance to add it to every package Makefile.
2006-07-17Remove duplicate files from ${ALLFILES}. This doesn't affect theschmonz1-1/+2
"fetch" target, but it does affect the "checksum" target's shell script, which errors out on the second occurrence of a file. The shell script should perhaps also be fixed, but it seems sensible regardless for ${ALLFILES} not to contain duplicate filenames. As a side effect, the file list is sorted. Regression found by building mail/qmail with the "qmail-netqmail" option, which adds to PATCHFILES a file that's already in ${DISTFILES}. Arguably this is gross, but it worked before, and now works again. Tested on my usual pkg_comp(8) build of 200+ packages, with an initially empty ${DISTDIR} and ${PACKAGES}. Thanks seb@ for the more idiomatic make(1) construction.
2006-07-15Split the variable BUILD_DEFS into those that are defined by packagesrillig7-54/+62
and those that are defined by the infrastructure (_BUILD_DEFS). This allows the build-defs-message target to be moved to the end of bsd.pkg.mk. Now it prints the correct result even in unprivileged builds, which had been wrong due to the order in which the files have been included. For example, ${UNPRIVILEGED_USER} was displayed as (not defined) although its value was defined, which could be checked with "bmake show-var". Tested with one package that _does_ define BUILD_DEFS and with one that doesn't. The behavior stays the same.
2006-07-15Converted the header comment to the canonical form. Changed therillig1-10/+16
definitions of CHOWN and CHGRP so that they still include the command that is skipped, which is useful when viewing the build logs.