Commit graph

5677 commits

Author SHA1 Message Date
wiz
7400a7cf16 When the bulk build code encounters a directory in *SPECIFIC_PKGS
that does not exist, it stopped.

Now it instead adds an entry to the main broken file and marks
it as not package with maintainer "directory_does_not_exist"
in the HTML output. (Not packaged directories are not mentioned
in the text version.)
2006-07-26 17:00:03 +00:00
jlam
f065d908d0 Move barrier to just after the depends phase. This allows both the
"tools" and "wrapper" phases to be able to expect all the dependencies
to be installed already.
2006-07-25 18:04:25 +00:00
jlam
af66f920c9 BUILD_ENV was renamed to PKGSRC_MAKE_ENV. 2006-07-25 16:04:44 +00:00
rillig
5092ccdc95 Whenever f2c is mentioned in USE_LANGUAGES, a C compiler is also needed,
so automatically add it to USE_LANGUAGES. Fixes PR 34079.
2006-07-25 10:20:03 +00:00
wiz
8af4c67976 Remove comment for non-existing USETBL. 2006-07-24 16:50:27 +00:00
wiz
84159cda4e Describe groff-docs. 2006-07-24 16:49:55 +00:00
jlam
7e75e0ad89 The proper phase to run just before "configure" is "patch", not
"wrapper", after "wrapper" was moved to be between "tools" and "extract".
This should fix PR pkg/34061.
2006-07-23 15:33:16 +00:00
wiz
078ec42655 Remove mirrors.sunsite.dk because it causes hangs in the
weekly distfiles fetch.
2006-07-23 14:11:52 +00:00
wiz
0b9a3594c5 Remove cran.dk -- causes hangs for weekly distfiles mirror job. 2006-07-23 13:28:14 +00:00
jlam
77b719dae8 Modify the barrier so that we always invoke the recursive make process
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-22 16:31:35 +00:00
rillig
15c11119af The C compiler is also used for Objective C, so the c-fail-wrapper is
only created if none of these languages is mentioned in USE_LANGUAGE.
2006-07-22 05:01:17 +00:00
jlam
7d1f4cca8e "BUILD_ENV" was misnamed. It's actually the environment that is passed
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-21 14:27:56 +00:00
jlam
4011c5cff2 Rearrange sequence so that "wrapper" occurs between "tools" and
"extract".  This allows all user-definable targets (pre-*, do-*,
post-*) to have access to the wrapper scripts.
2006-07-21 14:21:28 +00:00
jlam
80369fb5c8 Modify the shlib-type script so that it doesn't need to compile anything
-- 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-21 13:40:27 +00:00
jlam
8f3802b3d9 Remove USE_GNU_GETTEXT from pkgsrc. Packages generally only needed
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-20 20:02:23 +00:00
jlam
574f8fe190 Make _show-dbginfo-configure work for packages that don't set
CONFIGURE_ARGS.  We guard against an empty CONFIGURE_ARGS to prevent
the ODE variable loop from expanding to an empty value.
2006-07-20 19:00:50 +00:00
rillig
8774cc5fc5 CONFIGURE_ARGS are processed by an ODE "for" loop, since that prevents
an empty line from being printed when the variable is empty. It also
removes the need for special handling of "<".
2006-07-20 17:56:27 +00:00
jlam
6bd385f1bb Use an ODE variable loop instead of a make .for loop to output the list
of "TOOL" variables defined by the tools framework.
2006-07-20 17:40:45 +00:00
rillig
63572ebd6f Added the build-env target. 2006-07-20 17:31:20 +00:00
rillig
98a199bc4d Include the file bsd.pkg.debug.mk if requested by invoking the "debug"
target.
2006-07-20 17:16:43 +00:00
rillig
5902b29ca6 Oops, there had been an RCS tag that should not have been expanded. 2006-07-20 17:14:26 +00:00
rillig
680b655fe9 Added the "debug" target, which outputs a lot of information helping in
debugging packages that have build problems.
2006-07-20 17:10:45 +00:00
rillig
1e90e68755 Up to now, the language "c" has always been enabled, no matter if the
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-20 16:44:01 +00:00
jlam
5ffee8aef3 Don't bother with error messages when attempting to remove the "work"
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-20 15:42:04 +00:00
jlam
33879949fb The package directory path is "PKGPATH", not "PKG_PATH", which is used
by pkg_add(1).
2006-07-20 14:17:48 +00:00
jlam
7c21fc1820 Change last instance of _REPLACE.* to REPLACE.*. Remove special
_REPLACE.* handling from replace-interpreter.mk.
2006-07-20 13:54:44 +00:00
joerg
eeaca99630 verify_file() returns a non-zero result whenever the distfile does not
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-20 13:31:08 +00:00
jlam
159d2f8131 Remove ${SED} check that no longer works. 2006-07-20 13:19:29 +00:00
jlam
fa2d895a21 Be more conservative and avoid possible shell implementation differences
by not using `...` inside ${...#...}.
2006-07-19 22:26:26 +00:00
jlam
f1759fb181 Handle case where {SH,}LIBTOOL_OVERRIDE is empty for shells that don't
understand empty lists in for loops.  Addresses PR pkg/34042.
2006-07-19 22:07:13 +00:00
jlam
7af716330d Drop support for LTCONFIG_OVERRIDE. For quite a long time, pkgsrc
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-19 19:14:37 +00:00
jlam
034c5b9566 Add messages noting when the PRE-INSTALL and POST-INSTALL actions are run. 2006-07-19 18:05:35 +00:00
jlam
c88a32be7d Make "mirror-distfiles" less verbose by not printing out anything if no
bootstrap dependencies need to be built and installed.
2006-07-19 16:01:40 +00:00
jlam
ec6f4ba413 Comment the code a bit more. 2006-07-19 15:13:40 +00:00
jlam
cc5761ea0f The "makedistinfo" target should actually be named "distinfo" to match
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-19 14:54:56 +00:00
jlam
ae7cf87ca5 Only pass -v to the fetch script if PKG_VERBOSE is set. 2006-07-19 14:25:59 +00:00
jlam
cbcfa6d0b5 Restore original quoting from old fetch.mk for _ORDERED_SITES to resolve
the problem with MASTER_SORT*.

XXX The whole MASTER_SORT* thing should just be a standalone script.
2006-07-19 14:22:47 +00:00
jlam
2936f01adf Add a verbose flag to the fetch script to output the actual fetch command. 2006-07-19 14:16:29 +00:00
jlam
d2df49806c Make some variables "private":
MASTER_SORT_AWK
	SORT_SITES_CMD
	ORDERED_SITES

These variables are purely internal to pkgsrc.
2006-07-19 14:03:59 +00:00
jlam
16335bb8a4 Work around incomprehensible quoting mess surrounding MASTER_SORT* by
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-19 14:01:29 +00:00
jlam
1302d118e8 PASSIVE_FETCH only affects "ftp", so move it to the ftp-related FETCH_*
variables.
2006-07-19 13:33:42 +00:00
jlam
4c09a7046a Convert _FETCH_MESSAGE to plain old FETCH_MESSAGE. Remove _FETCH_MESSAGE
processing from mk/fetch/*.mk.
2006-07-18 23:27:14 +00:00
jlam
833691e2fe Overhaul fetch module:
* 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-18 22:41:06 +00:00
jlam
3c73469517 Add a flag "-s suffix" for allowing the specified files to have a suffix
that will be removed before looking up the checksum in the distinfo file.
2006-07-18 21:39:39 +00:00
gdt
cd807f496b During 'make replace', use pkg_admin to set the unsafe_depends
variable to YES for each pacakge that depends on the replaced package.

Discussed on tech-pkg with generally positive comments.
2006-07-17 18:18:42 +00:00
wiz
ad211bc06f Remove stale comment, noted by bad@ in PR 33871. 2006-07-17 18:07:06 +00:00
jlam
e65b7c1371 First cut at a fetch script to replace the humungous fetch "macros" in
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-17 15:34:22 +00:00
jlam
ecea1ccbaa Don't say "ERROR:" or "WARNING:"... be a more typical shell script by
just noting the error or warning to standard error.
2006-07-17 14:32:26 +00:00
rillig
ebb2a82ae6 Added LOCALBASE, PKGINFODIR and PKGMANDIR to _BUILD_DEFS, since they
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-17 13:35:11 +00:00
schmonz
0a53ed9007 Remove duplicate files from ${ALLFILES}. This doesn't affect the
"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-17 02:13:11 +00:00