Commit graph

5971 commits

Author SHA1 Message Date
rillig
2681aeb95a Moved the definition of append_extra_args a bit to make the code a
little more understandable.

Eliminated the otherwise unused variable original_cmd.
2006-11-26 08:42:42 +00:00
rillig
b4ca67c5db The bulk builds now use the new target can-be-built-here, which checks
if some of PKG_SKIP_REASON, PKG_FAIL_REASON, NOT_FOR_*, ONLY_FOR_* are
set.

The code uses some shell trickery to avoid the use of subshells, since
these would prevent the variable assignments from being effective.
2006-11-26 08:39:52 +00:00
rillig
714dc5ff6b Moved the code that checks for PKG_FAIL_REASON and PKG_SKIP reason from
the internal/ directory to misc/, since it is not really internal to
pkgsrc.

Fixed the case where PKG_SKIP_REASON was not noticed by the bulk builds.

Added the NOT_FOR_UNPRIVILEGED and ONLY_FOR_UNPRIVILEGED variables.
2006-11-26 08:37:03 +00:00
jschauma
913617419c - Run a single find(1) command to get the list of new files rather than running
two finds+two greps.
- Run a single find(1) command rather than ls | grep to determine pkg count.
2006-11-26 03:08:24 +00:00
jdolecek
ff7e8ffa0d set ORS to space for _MASTER_RAND_AWK, so that the output would be the
in the format MASTER_SORT_REGEX expects when MASTER_SORT_RANDOM is off,
in order for MASTER_SORT to actually work when MASTER_SORT_RANDOM=YES
(default nowadays)

XXX testing stuff before committing would surely be a good idea
2006-11-25 21:33:39 +00:00
jdolecek
6b73f1c417 MASTER_SITE_GNOME - add a .cz mirror 2006-11-25 14:46:50 +00:00
tron
5e12c6a0bc file(1) under NetBSD-sparc64 4.99.4 identifies the file
"gdk-pixbuf/Makefile.in" from the "gtk2" package as "libtool library file".
Change the textfile check to accept any file which file(1) identifies
as "<whatever>libtool<whateverelse>" to fix the build of the
"gtk2" package (and probably other packages).
2006-11-23 16:27:53 +00:00
joerg
90db16ee98 Only set BINPKG_SITES to ftp.netbsd.org, if the OS is actually NetBSD. 2006-11-21 13:54:26 +00:00
rillig
1264ae81d1 Added better documentation for pre-extract, do-extract and post-extract.
They are found by "make help" now.
2006-11-20 00:03:22 +00:00
wiz
9d7fe65c60 Use PKG_FAIL_REASON for platform checks, to make them work again.
XXX: PKG_SKIP_REASON seems broken?
2006-11-19 09:32:29 +00:00
jschauma
dea4bd6524 nuke two Useless Use of Wc and let awk do the legwork. This saves us
two forks per package.
2006-11-19 03:06:26 +00:00
rillig
bf5fd7d07a "Forcing an error", like expressed in the comment, should be done via
PKG_FAIL_REASON, not via PKG_SKIP_REASON.
2006-11-18 08:29:13 +00:00
rillig
a1012e4c1c Improved the wording of some of the comments. 2006-11-18 08:13:26 +00:00
rillig
f7b79c10f7 Added an empty line to make "make help topic=ABI" work better. 2006-11-18 07:48:06 +00:00
rillig
61de9d8f37 Provided a useful error message for the case that X11_TYPE is set to
something else than { xorg native }. According to the error reports on
pkgsrc-users, many have still X11_TYPE=XFree86.
2006-11-17 09:50:54 +00:00
rillig
98b52d5edd Added a check for whether X11BASE is set correctly. Currently the error
message is

    Syntax error: word unexpected (expecting ")")

which is not helpful at all.
2006-11-17 09:19:37 +00:00
rillig
e2e94b2719 On Interix, the -c option of checkperms is disabled, as checkperms does
not know about Interix yet. This is a temporary work-around for
PR 34968.
2006-11-17 01:05:47 +00:00
rillig
ba470586c1 The undo-replace target had confused the "installed" and the "new" name.
Fixed this.
2006-11-16 22:06:18 +00:00
rillig
825ba83c0e Moved the check for PKG_FAIL_REASON and PKG_SKIP_REASON at the very end
of bsd.pkg.mk, so that all infrastructure parts may add their error
messages to PKG_FAIL_REASON.
2006-11-16 09:38:53 +00:00
markd
4beda37608 Allow CPP to be set to something not on the PATH (as used to work in
pre wrapper days).  Especially useful for Solaris where cpp tends to
live in /usr/css/lib/cpp.
2006-11-16 02:42:13 +00:00
rillig
9a93c2f8bc Added some documentation on the DESTDIR support that has recently been
introduced to pkgsrc. There are still some FIXMEs left.
2006-11-15 19:27:16 +00:00
joerg
bf76172a69 Font-related entries we skip for CHECK_FILES should be skipped for
print-PLIST as well.
2006-11-15 10:40:34 +00:00
rillig
e6050a98e2 Moved the code that checks PKG_FAIL_REASON and PKG_SKIP_REASON into its
own file. The further plan is not to include this file in the middle of
loading, but at the end, when no variables will be changed. This will
allow the _whole_ pkgsrc infrastructure to generate errors with
PKG_FAIL_REASON, which is currently not the case.
2006-11-14 13:56:14 +00:00
rillig
9ba5e8c4e3 Fixed indentation of the debugging messages and the missing newline at
the end of the file.
2006-11-14 13:40:20 +00:00
rillig
1639b3587b Instead of $0 and $1 .. $NF, the function check_test_eqeq should test
the string in the ''line'' variable. This will make koffice build again.
2006-11-13 23:21:53 +00:00
agc
2dda8adbb1 Record the build host (i.e. the machine a package was built on) in the
build information.

Useful for binary package manipulation.
2006-11-13 18:02:09 +00:00
dan
ffab6df01c add w3m option 2006-11-13 01:39:44 +00:00
rillig
66982a6030 Added a missing line continuation in the code for CHECK_FILES_STRICT.
Apparently no one has been using that code since June 2006.
2006-11-12 20:57:55 +00:00
hira
dda857dd5c Add `uim' option, requested by Yamashiro, Jun <yamajun at ofug dot net>
in PR pkg/34596.  It's disabled by default.
2006-11-12 15:13:56 +00:00
obache
d997a0a7b7 Remove http://openoffice.behrsolutions.com/ from MASTER_SITE_OPENOFFICE.
Suggested by Zafer Aydogan in PR 32111.
2006-11-12 12:10:46 +00:00
rillig
0ba86a9a56 Removed the tests for CHECK_INTERPRETER and CHECK_PERMS. They are now in
../checks/*.mk.
2006-11-12 00:51:00 +00:00
rillig
c879441de5 Moved the test whether this check should be enabled to this file.
Removed the dependency to NO_PKG_REGISTER.

Renamed the check-interpreter target to _check-interpreter.
2006-11-12 00:49:57 +00:00
rillig
918d65cc09 Added the CHECK_PERMS_AUTOFIX variable, which allows packages to say
that the file permissions should be fixed automatically.

Moved the test whether this check should be enabled from
../install/install.mk to here.

Renamed the target from check-perms to _check-perms.
2006-11-12 00:44:24 +00:00
rillig
b7ceab86aa Improved the formatting of the comment and made the code a little
shorter.
2006-11-12 00:37:44 +00:00
rillig
5644aacf25 Moved the check for whether check-wrkref should be run from
install/install.mk to check/check-wrkref.mk.

Renamed the check-wrkref target to _check-wrkref.
2006-11-12 00:13:26 +00:00
rillig
bd41165b43 Improved the readability of the header comment.
CHECK_WRKREF may be set to "wrkobjdir" to check for references to
WRKOBJDIR.

Added some error checking.

Removed the dependency on NO_PKG_REGISTER.
2006-11-12 00:09:50 +00:00
rillig
53ee7b45c5 Fixed the comment. 2006-11-11 23:59:56 +00:00
rillig
8f9b2f0817 Added some documentation.
Since hooks should not be overwritten, removed the !target() check. That
way, one gets a warning when attempting to add some code to the hook.
2006-11-11 23:51:30 +00:00
rillig
06e3596610 Moved the check whether check-shlibs should be run from
install/install.mk to check/check-shlibs.mk.

Renamed check-shlibs to _check-shlibs. Since it had been declared as
"private" before, this will not break anything.
2006-11-11 23:31:38 +00:00
rillig
8589d49821 Added the usual header comment.
Removed the special case handling of NO_PKG_REGISTER. What does checking
for shared libraries have to do with whether the package is registered
in the package database or not?

Removed the check on CHECK_SHLIBS_SUPPORTED, which will be reintroduced
soon.
2006-11-11 23:27:51 +00:00
rillig
1a7d02851e Improved a comment. 2006-11-11 23:08:00 +00:00
rillig
c9f593bcde Converted the SunPro wrapper to use the functions from wrapper-subr.sh.
Added some code to check for unknown options.

Reindented the file so that the compiler options are better visible.
They had been hidden by the massive block comments before. Also, every
option has got its own line so that one only needs to read the first
column to find the relevant code.
2006-11-11 07:50:28 +00:00
rillig
b11cdc1a44 Added wrapper-subr.sh, which provides shell functions that are useful to
make the wrapper code less frightening. For example, instead of

    arg="${arg#-Wl,}"
    $debug_log $wrapperlog "   (transform-sunpro-cc) to: $arg"
    addtocache=yes

one can simply write

    transform_to "${arg-Wl,}"

The functions that are currently implemented are: transform_to,
transform_discard, transform_to_nocache, transform_discard,
transform_pass and transform_pass_unknown.
2006-11-11 07:44:46 +00:00
rillig
46aab65a30 Made the SunPro compiler understand gcc's -MM option for generating
Makefile dependencies.
2006-11-11 07:00:57 +00:00
rillig
76810d60ee Provided the usual header comment. 2006-11-10 20:48:41 +00:00
rillig
d9096da9ad Fixed the warning from GNU awk that in strings, \$ is the same as a
plain $.
2006-11-10 08:17:06 +00:00
rillig
1a51080155 Refined the pattern for lines containing bad macros. White-space is
allowed between the "#" and the "define", and the value must be of the
form "${varname}/...", that is, starting with a double quote, followed
by "${" and a variable name, and directly behind the closing brace must
be a slash. This should catch most false positives while still being
useful.
2006-11-10 07:59:01 +00:00
rillig
d43645467b Added documentation. 2006-11-09 21:29:26 +00:00
rillig
05707c80dc This is also an FAQ of autoconf, so provide a link to there. 2006-11-09 21:07:25 +00:00
rillig
0a17361ac7 Documented the ksh-compatible form of the SKIP_FILTER. 2006-11-09 15:12:46 +00:00