Commit graph

6931 commits

Author SHA1 Message Date
taca
d5c9fef324 Add description of skey option. 2007-11-04 12:06:51 +00:00
rillig
a21f857cf8 Clarified the comment. 2007-11-03 15:17:42 +00:00
rillig
daba721a30 Added keywords. 2007-11-03 11:50:18 +00:00
rillig
171c4b82b8 Variables that are not lists should not use the empty(...:M) construct
if the same can be expressed more clearly.

Added some internal variables to be shown by "bmake show-all-emacs".
2007-11-03 11:23:06 +00:00
rillig
2db8b70075 Moved common commands into a variable. This saves 15 lines. 2007-11-03 10:25:33 +00:00
rillig
5fa3759ae6 Simpler includes. 2007-11-03 09:12:46 +00:00
rillig
67974dcb6a Added some variables for "bmake show-all-fetch". 2007-11-02 09:02:57 +00:00
rillig
5fba458aef sunpro doesn't know -ggdb. 2007-11-01 14:31:03 +00:00
rillig
02052152d3 Before running _SUBST_IS_TEXT_FILE on a file, make sure that the file
exists.
2007-11-01 13:12:48 +00:00
rillig
e27c4fc2e0 Moved the pre-configure-checks-hook below do-configure-pre-hook, so that
REPLACE_INTERPRETER takes place before the portability check. Shell
scripts that will use bash anyway do not need to be checked for
portability problems.
2007-11-01 08:37:24 +00:00
rillig
1d9b92e28d Some implementations of X11 install both manpages and catpages, which
has not been supported by pkgsrc up to now.

This changes adds a PLIST macro @imake-man that expands to zero, one or
two lines, depending on the value of IMAKE_MANINSTALL. Packages must
explicitly have the macro in the PLIST files to use this feature. Since
currently no package has that, this change doesn't affect anything at
all by now.

TODO: The platforms' definitions for IMAKE_MANINSTALL and the other
definitions like IMAKE_MAN_SUFFIX need to be adjusted.
2007-10-31 21:09:03 +00:00
rillig
78baea8080 Changed ${TEST} to [...], since only the very basic conditions are
checked, which is handled the same by every implementation of test(1).

Removed the comment saying that absolute directories can be handled. It
doesn't work.
2007-10-31 19:20:08 +00:00
rillig
8945fb054b Simpler .include lines. 2007-10-31 12:07:13 +00:00
rillig
6974a32cea Simpler .include lines. 2007-10-30 23:35:51 +00:00
bjs
550cee0d3c Add gmp-fat option 2007-10-30 01:38:53 +00:00
uebayasi
04325ed444 Fix a typo. 2007-10-29 13:13:31 +00:00
uebayasi
f1e0ce13c4 Enable buildlink3.mk for EmacsLisp package build.
This works very straightfoward; create set of symbolic links of *.el / *.elc
files under ${BUILDLINK_DIR}/share/emacs.  At configure and build stage,
emacs / xemacs binaries run with the EMACSLOADPATH pointed to there.  This
should work because those EmacsLisp packages assume the Emacs / XEmacs program
running at build time and that running after installation are identical and
the task looking for other *.el / *.elc files is Emacs / XEmacs's business.

I have tested only Emacs 21 and Emacs 22.  XEmacs should work ... at least
XEmacs supports EMACSLOADPATH too if grep worked correctly.

While here change the following:

* Provide {FOR,NOTFOR}_emacs_{x,nox} switches to be used in PLIST.

* Add the xemacs214nox entry.

* Clean up "leim" handling code; avoid .if ... .endif as far as possible.
2007-10-29 12:52:36 +00:00
wiz
3f67bd7de1 Describe gimp option (for sane-frontends). Sort. 2007-10-29 01:17:13 +00:00
taca
0e3dac1952 Add options used in net/samba; acl, ads and winbind. 2007-10-28 14:42:09 +00:00
wiz
0be60b73fe Remove options that still do not have a description. 2007-10-28 13:09:40 +00:00
tron
74302ef9bd Protect against multiple inclusion. This fixes the "sane-frontends"
package which includes "bsd.options.mk" via its own "options.mk" and
via "graphics/gimp/buildlink3.mk".
2007-10-28 11:29:06 +00:00
taca
804a10c358 Add description of libiconv-cp932 option. 2007-10-28 03:20:30 +00:00
obache
260d826ba3 Recent flash player is not compatible with netscape navigator/communicator
as reported in PR 29620 and compatible version have unresolved security issues.
Drop dependency on ns-flash and remove NS_NO_FLASH variable.

Bump PKGREVISION of navigator/communicator.
2007-10-27 13:35:26 +00:00
jlam
ae9b935fd0 * If PLIST_SRC is explicitly set to an empty value in a package Makefile,
then automatically generate a PLIST that says "${PKGNAME} has no files".

* If PLIST_SRC and GENERATE_PLIST are not set in a package Makefile,
  and no PLIST files exist, then fail during the package build with
  PKG_FAIL_REASON.

* Remove "intentionally empty" PLISTs again.

Now, the easy way to say that a package installs no files is to just
add the following to the package Makefile:

	PLIST_SRC=	# empty
2007-10-25 22:00:39 +00:00
rillig
a10504d8a1 simpler includes. 2007-10-25 18:27:05 +00:00
jlam
38c496d6c0 Re-add "intentionally empty" PLISTs for meta-packages and other packages
that directly manipulate empty PLISTs.

Modify plist/plist.mk so that if the PLIST files are missing and no
GENERATE_PLIST is defined, then the package fails to build.
2007-10-25 17:49:45 +00:00
jlam
66e67631a0 Allow packages to have no PLIST files whatsoever. If such a package also
does not set GENERATE_PLIST, then automatically generate a PLIST that
says:
	@comment ${PKGNAME} has no files.
2007-10-25 16:46:14 +00:00
bjs
e9c8dffc33 Add links-zlib option, quell pkglint warning from www/links. 2007-10-22 05:46:19 +00:00
adrianp
64dfe76316 Rename PKGTOOLS_VER to PKGTOOLS_VERSION and use that everywhere
Export PKGTOOLS_VERSION so that genreadme.awk can use it
This will sync the output between './mkreadme' and 'make readme'
2007-10-20 13:35:12 +00:00
dsainty
ece7c88dfb Allow a package to use its custom group so long as the group is in the
(new) UNPRIVILEGED_GROUPS list.

In addition, the value of UNPRIVILEGED_GROUPS is defaulted to all the
groups the installing user is a member of, in a similar mold to
UNPRIVILEGED_GROUP and UNPRIVILEGED_USER.

This allows non-root installations of packages that have special group
requirements but no special user requirements, so long as the installation
user has been given the necessary group membership.

Raised on tech-pkg @ 2007/10/14.
2007-10-20 06:57:17 +00:00
rillig
034b8390a8 Reverted the last changes, which factored out some definitions that are
usually the same on the supported platforms.

The reason for having duplicate code in these files is to make it easier
to port pkgsrc to a new platform: You just have to copy one of the
existing platform files and edit the values in it. With some values
factored out, you would have to look at one more file.

Pointed out by agc@.
2007-10-19 13:41:34 +00:00
rillig
f53c1ce2ee Factored out the parts that are common between all the supported
platforms, mainly because it wouldn't have made sense to document the
variables in one of those files, but they need to be documented
somewhere.

Added the file defaults.mk, which now serves as the reference document
which provides useful default values and _explains_ the variables.
2007-10-18 21:52:23 +00:00
rillig
b2e71313c3 Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
rillig
21cf860699 Accept all licenses in DEFAULT_ACCEPTABLE_LICENSES if the user is only
using the += operator, not the simple = operator, in mk.conf. That way
we can mark packages as having open source licenses without disturbing
the users.
2007-10-17 10:37:43 +00:00
bjs
530590485b Add ares and cares asynchronous resolver library options, used by net/aria2, but could be common to others 2007-10-17 09:47:22 +00:00
is
0596912f74 Handle more variants of the position independent code flag from Solaris.
This is needed for Xaw3d. Fix suggested by joerg@.
2007-10-17 07:30:10 +00:00
tnn
24d5b54409 Fix abusers of LOWER_OPSYS to check OPSYS or MACHINE_PLATFORM instead. 2007-10-16 23:48:58 +00:00
wiz
029e9b6376 Remove some legacy support after branching 2007Q3. 2007-10-16 21:32:59 +00:00
tnn
772f8281eb Allow PKGLOCALEDIR to be overridden. 2007-10-16 12:11:25 +00:00
tnn
85c3c33db0 The previous commit needs all platforms to be correct about
separating LOWER_OPSYS and LOWER_OPSYS_VERSUFFIX, since numbers are now
removed from LOWER_OPSYS when forming MACHINE_GNU_PLATFORM.
Fix the remaining to platforms: Interix and IRIX.
2007-10-16 11:51:21 +00:00
tnn
ae9f32a8e5 OSF1 and HPUX: Separate the version component from ${LOWER_OPSYS}
into ${LOWER_OPSYS_VERSUFFIX}.
When assigning GNU_MACHINE_PLATFORM, strip numerical characters from
LOWER_OPSYS. (final component is eg. osf5.1 not osf15.1)
2007-10-16 11:34:16 +00:00
rillig
7a16551a71 Added the variable CCACHE_BASE, so that a ccache other than the one
installed by devel/ccache can be used. This is especially important for
cross-builds.

Documented IGNORE_CCACHE.

Fixed the double use of the directory ${WRKDIR}/.ccache, which was used
both as wrapper directory and as cache directory.
2007-10-16 09:33:29 +00:00
rillig
a4361cd6f5 Switched two words, so that the version number of the package appears to
the right instead of the (strictly) redundant word "found".
2007-10-14 07:42:31 +00:00
joerg
0b4fba23f9 Ignore post-hyphen parts of the Linux kernel version similiar to
DragonFly and FreeBSD. It seems like Linux people love those...
This addresses the first part of PR 37100.
2007-10-13 19:38:53 +00:00
rillig
6521357648 The "debug" variable was often used like "if [ $debug = yes ]; then ...;
fi". There is an easier way to solve the same problem with much less
code.
2007-10-13 17:46:12 +00:00
rillig
de3c265e94 The --database option doesn't exist. 2007-10-13 17:29:26 +00:00
rillig
6ae88c613d Made the code simpler and documented it. 2007-10-13 13:49:19 +00:00
dsl
d24555b956 Fix the .include lines so that make looks in the right place first.
Remember .include "foo.mk" is looked for (first) in the directory that
contains the makefile being processed (like in C), so remove all the
${.PARSEDIR} and ../ sequences that just cause grief.
2007-10-13 11:04:15 +00:00
tron
37836fbbc2 Explain "dnsrbl" and "spf" used by "milter-greylist". 2007-10-11 18:49:53 +00:00
tv
acf643f5a5 Add $HOME/.pinepwd support by default; bump PKGREVISION. Option "pinepwd"
can be disabled to remove the behavior again.

In spite of UW's "recommendations" against enabling this, it should be up
to the sysadmin and user whether to use the rope to build a bridge or
hang him/herself.  PC-Pine has it enabled by default; there's no reason
besides FUD to make the Un*x build any different.
2007-10-11 13:14:48 +00:00
rillig
3eba70a2da Rewrote the comments on REQD_FILES to be accessible via "bmake help". 2007-10-10 11:42:36 +00:00
rillig
85575fe696 Added _VARGROUPS. 2007-10-10 02:37:13 +00:00
rillig
ac64ea2785 AIX has nothing to do with NetBSD-1.5. 2007-10-09 20:39:39 +00:00
rillig
1e1c37d2e2 Added _VARGROUPS. 2007-10-09 20:34:48 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
rillig
f60e7ea91d Fixed CVS Id and trailing empty lines. 2007-10-09 14:33:25 +00:00
rillig
e32f6e30d6 Provided some reason for having PKGMANDIR and PKGINFODIR. And, by the
way, MANINSTALL isn't user-settable.
2007-10-09 14:31:31 +00:00
rillig
996a2bf60c typo 2007-10-09 11:31:46 +00:00
rillig
0c31da43e2 Added _VARGROUPS. 2007-10-07 21:48:30 +00:00
kano
abdb54b351 fix obsolete URLs for www.NetBSD.org
close PR pkg/37071
reviewd by xtraeme@
2007-10-07 12:59:11 +00:00
rillig
8832ece985 Added lots of XXX that should be cleaned up when the compiler framework
is rewritten the next time.
2007-10-05 22:09:09 +00:00
rillig
6ea2bde2b6 I often want to know which directories pkgsrc is using. 2007-10-05 21:03:39 +00:00
joerg
d05706a374 When linking with XLC on AIX, force -brtl to get linkage behaviour we
expect from other platforms.
2007-10-05 18:19:45 +00:00
heinz
fd36c09d91 Additional pattern matching NetBSD-3.1_STABLE-i386, forgotten in the
last commit (Thanks to Jukka Salmi for noting this).
2007-10-03 08:56:07 +00:00
heinz
83ae2b7b40 Added NetBSD 3 to the list of platforms which need pthreads linked into
the application if it uses dlopen().
This change was triggered by the longstanding bug that mod_perl (due to
perl itself) was built with threads but apache was not, thus leading
to incompatibility between apache and mod_perl.
Whether NetBSD 4 needs to be added as well is still an open question.
2007-10-02 16:20:05 +00:00
rillig
6ded5eb97b Some useful keywords for "bmake help". 2007-10-01 22:32:45 +00:00
rillig
6560c76f0c Documented the currently available features and added _VARGROUPS. 2007-10-01 11:47:00 +00:00
rillig
e4e9db758a Added CVS Id. 2007-10-01 10:08:20 +00:00
rillig
36d9ee0a85 Fixed the comments a little bit.
Hey Joerg, since you made the non-modular Xorg obsolete, you could have
at least changed the comments in this file, reflecting the change to
modular Xorg.

Now, please document here how these files are really meant to be used,
since you know it better than me.
2007-10-01 07:21:44 +00:00
rillig
bedf33485e Why don't we use pkg_info -qL instead of pkg_info -f? 2007-10-01 06:46:37 +00:00
rillig
a4dbfbcae3 MANINSTALL is _not_ user-settable. 2007-09-30 12:56:24 +00:00
rillig
5f3f47d00c More variables. 2007-09-30 12:25:48 +00:00
rillig
b8d6f5ddcb Outside of .for loops, there is no _t_ variable. Hi joerg. 2007-09-30 12:22:44 +00:00
rillig
ad95b81717 Fixed indentation. 2007-09-30 12:19:11 +00:00
rillig
51806895cd The mentioned manpages are useless for understanding this file. 2007-09-30 11:23:08 +00:00
rillig
712c3ee7d5 Removed a funny comment from 1997. 2007-09-29 16:03:28 +00:00
rillig
5d5b4179cc obsolete. 2007-09-29 15:58:16 +00:00
rillig
0229bb6658 Documented the file format. 2007-09-29 15:56:04 +00:00
rillig
09fda1f5a3 Added documentation about manpage handling in pkgsrc. This still needs
much work.
2007-09-29 13:49:21 +00:00
rillig
65a80e3a87 typo 2007-09-29 13:17:52 +00:00
rillig
2f8f317263 + _VARGROUPS 2007-09-29 11:03:24 +00:00
rillig
7756a9e297 Improved the documentation. 2007-09-29 10:56:34 +00:00
rillig
3e6363f13d Even though VARBASE is sometimes below LOCALBASE, some users want to
check it. Don't prevent that in CHECK_FILES_STRICT=yes mode.
2007-09-27 13:57:12 +00:00
rillig
67d6bc285f One ident string per file is enough.
Committed although we are in a freeze, since it doesn't affect building the
packages.
2007-09-27 12:49:14 +00:00
rillig
84579a3239 More comments. 2007-09-27 11:19:52 +00:00
rillig
192098606d Documented the used environment variables. 2007-09-27 11:11:32 +00:00
hira
a67f295a78 Fix a comment (gnome-vfs2 -> gnome-vfs). 2007-09-25 10:32:17 +00:00
gdt
41baa6d8fa revert previous; it has trouble in two many places and 1) a fix isn't
obvious 2) we're in freeze, so restore to working as quickly as
possible.
2007-09-22 15:19:47 +00:00
rillig
9993d0aa30 BINPKG_SITES may be empty, and most shells don't like syntactically
empty for loops.
2007-09-21 23:59:30 +00:00
gdt
398104408b When replacing, use the oldname as found in work/.replace_oldname to
tar up, instead of PKGBASE.

This enables modifying that file to have a package that isn't
automatically found be the replace target, e.g., "echo libglade2-2.6.2
> work/.replace_oldname" after make replace fails to find a package to
tar up when doing make replace in libglade.
2007-09-21 15:13:55 +00:00
wiz
3528e06345 Fix paths for GConf, libglade, libart, libsigc++, lablgtk moves.
Bump PKGREVISION.
2007-09-21 13:03:25 +00:00
rillig
c05db5893e Instead of the overly verbose "Required installed package", the type of
dependency (bootstrap, build, full) is printed.

When building a package that pulls in the basic tools as dependencies,
it is good to know whether these are build or full dependencies, so the
additional information is useful.
2007-09-21 07:27:41 +00:00
rillig
842f8b2745 Replaced _PKG_SILENT _PKG_DEBUG with the shorter RUN. 2007-09-20 18:30:34 +00:00
rillig
553d52ca88 When CPP is defined as "cc -E", the wrapper framework created the
wrapper for gcc and cc as type "CPP", although these aren't C
preprocessors. By preventing the code from overwriting files, this works
now.
2007-09-20 18:17:18 +00:00
rillig
1fcdecd105 Added variable descriptions. 2007-09-20 17:28:48 +00:00
rillig
7c0cf0016c Renamed pkgpath to pkg_path, since there exists a completely independent
variable PKGPATH. I hope this will avoid some confusion.
2007-09-19 13:32:59 +00:00
rillig
93100472de When using bin-install, the version of the installed package was checked
twice: First against the required package pattern (PKGNAME_REQD), and
then against the current version (PKGNAME). When only a binary package
for an old (but sufficient) version of a package was available, that
version had been installed and the current version been built
afterwards, which was unnecessary.

This problem was mentioned in PR 36146, and is hereby fixed.

By the way, the code was really ugly: The messages that had been printed
didn't reflect what the code was actually doing. This is fixed, too.
2007-09-19 13:26:19 +00:00
rillig
4334ec644a Fixed incorrect quoting of arguments. This behavior had been unnoticed
for several years now, since the directories in the -I... and -L...
options usually don't need quoting. But when the -D... option was
processed using the same code, the bug had become visible.
2007-09-19 13:08:19 +00:00
rillig
e446929efd Before and after the transformations, the commands are written to the
log file in a format that allows copy-and-paste into a shell. Before, it
wasn't possible to see from the log file whether a space was a delimiter
or part of a shell word.
2007-09-19 13:02:15 +00:00
rillig
7e901dd9f3 Added LOCALPATCHES and PATCHDIR. 2007-09-19 08:37:37 +00:00
rillig
500f99647b Made "make show-all-patch" work. 2007-09-19 08:32:13 +00:00
reed
edb3562456 For Portable C Compiler.
Add beginning of PKGSRC_COMPILER=pcc support.
Based on "sunpro".

Please help improve this. I have not tested with C++ or fortan.
2007-09-18 01:51:10 +00:00
heinz
e62c70c5d2 Fixed typos in comments. 2007-09-16 14:40:57 +00:00
rillig
2e36f667a2 The word "skipped" is ambiguous. Use "untransformed" instead. 2007-09-13 10:50:43 +00:00
rillig
7c238f4588 In bulk builds with a custom PKGSRCDIR, that directory should not appear
in binary packages. This check can be enabled by adding "pkgsrc" to
CHECK_WRKREF.
2007-09-13 09:52:46 +00:00
rillig
c7873e00e2 It has always annoyed be that package authors had to write ${PKGMANDIR}/
in the definition of INSTALLATION_DIRS, where a short man/ would be much
shorter. Since we already have that man-transforming magic in some other
places of pkgsrc, it's also here.

While here, documented INSTALLATION_DIRS and
INSTALLATION_DIRS_FROM_PLIST so they are found by "bmake help".
2007-09-13 09:44:58 +00:00
rillig
c852fe8d9a check-files shouldn't complain about files in VARBASE, since they cannot
be represented in the PLIST.
2007-09-12 10:22:53 +00:00
rillig
cbdb42f74b Explained the usr, pkg and sys that appears in the output. 2007-09-12 10:08:38 +00:00
rillig
b099dacd53 ONLY_FOR_PLATFORM and NOT_FOR_PLATFORM should only be used in commented
form.
2007-09-12 09:59:44 +00:00
rillig
2e7ea41b85 Added documentation for NOT_FOR_PLATFORM and ONLY_FOR_PLATFORM. 2007-09-12 09:55:37 +00:00
seb
c6f5917e32 Document option nfdump-nfprofile. 2007-09-12 07:36:31 +00:00
rillig
b313f8aaf3 Better specification for PKGNAME. 2007-09-11 21:21:33 +00:00
abs
4b75da6235 +USE_INET6?=${IPV6_READY} rather than =, so it can be overidden 2007-09-11 18:16:38 +00:00
xtraeme
9bc710da92 Move belnet sourceforge mirror to the last position, it's unreachable
for me.
2007-09-11 17:22:18 +00:00
rillig
f4afca78cc Merge -D and the following word, so -D UNIX -D WHATEVER doesn't get
transformed to -D UNIX WHATEVER (because the wrapper eliminates
duplicate arguments). Now it becomes -DUNIX -DWHATEVER. This fixes a
build problem reported in
http://mail-index.netbsd.org/pkgsrc-users/2007/09/10/0004.html.
2007-09-11 08:33:11 +00:00
rillig
6780484224 Reverted the last change. Apparently, it was committed without testing
it first.
2007-09-10 07:25:14 +00:00
rillig
cd03ea87b2 Added documentation. 2007-09-10 07:18:32 +00:00
rillig
ce0b07c80b Why should we write the same code over and over again? We shouldn't. 2007-09-10 07:00:37 +00:00
rillig
5b5f343c3c Added information about imake-specific variables. 2007-09-10 06:36:25 +00:00
gdt
837f3385ae Add notes of things that need fixing:
# XXX Accumulate commit message during each operation, so that a final
# commit operation will have a sensible message with all of the
# previous operations.

# XXX Fail if uid is 0, or perhaps != CVS meta files owner, to catch
# the case of invoking these targets as root.
2007-09-09 22:57:04 +00:00
rillig
51c4e0b1a7 Switched from pax to tar, as suggested by joerg@. 2007-09-09 16:42:00 +00:00
rillig
6a07f1633f Made the command that saves PREFIX silent. 2007-09-08 17:13:54 +00:00
rillig
1bd0ba21be gcc knows -fpic. 2007-09-08 13:37:51 +00:00
jlam
940bc4dcda Use an actual function (regcomp) declared in <regex.h> as the feature
name instead of just "regex".
2007-09-08 05:06:40 +00:00
jlam
d1db5cad7b Fix reversed test for MISSING_FEATURES+=inet6. 2007-09-08 05:04:37 +00:00
jlam
bc88c9e746 Canonicalize the way the features are tested. 2007-09-08 05:03:52 +00:00
jlam
de8a166406 * Teach the features framework about the fts_* family of functions.
* Teach the features framework how to create a replacement header file
  from the <nbcompat/*> equivalent for fts.h, glob.h and regex.h.
2007-09-08 04:54:12 +00:00
wiz
19c1a2725c Support alsa, libsigc++2, and resmgr emulation packages. 2007-09-07 23:04:55 +00:00
jlam
07dd3147c6 Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.

Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files.  Replace:

	BUILD_DEFS+=	USE_INET6
with
	BUILD_DEFS+=	IPV6_READY

and teach the README-generation tools to look for that instead.

This nukes USE_INET6 from pkgsrc proper.  We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
2007-09-07 22:12:10 +00:00
jlam
5073c3d95d Add a "system features" framework that will eventually be used to
automatically supply missing "basic" headers and libraries from an
older system, e.g. IRIX 5.x or Interix or AIX, etc.

Example usage:

    USE_FEATURES+=      snprintf glob regex

For now, we just pull in libnbcompat to supply the missing bits.
2007-09-07 21:55:44 +00:00
rillig
1316235db9 Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN} and made the code simpler. 2007-09-07 17:01:10 +00:00
rillig
ceae47166c Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN}, since it is shorter.
Removed unnecessary braces around a single pipeline. Also removed the
||true, since awk is very unlikely to fail.
2007-09-07 16:47:05 +00:00
rillig
91c415b938 The WRKDIR and PREFIX can be saved in the log directory when a package
doesn't build properly. These options are off by default since they
require much disk space.
2007-09-07 15:51:53 +00:00
rillig
6f5e31989b pkg_info -qR doesn't give the same results as pkg_delete -n. 2007-09-07 11:14:10 +00:00
obache
72267a276f Correct typo, really fixes PR 36940. 2007-09-07 10:57:35 +00:00
rillig
9082111f79 pkg_info needs at least one package name. Fixes PR 36940. 2007-09-07 10:38:44 +00:00
joerg
4f84d697c2 If DISTDIR points to a non-existing location and a package has neither
PATCHFILES nor DISTFILES, make fetch would complain about an unbuildable
dependency. Fix this by explicitly checking that _ALLFILES is not empty.
Reported by Sean Boudreau.
2007-09-06 20:54:53 +00:00
rillig
8485c5f6cb One line of code can say as much as ten. 2007-09-06 08:28:01 +00:00
rillig
af6cc8cfa0 Why do things in a simple way when there is a complicated alternative? 2007-09-06 08:24:12 +00:00
wiz
b99a1d8de6 + icu. Sort. 2007-09-05 21:56:21 +00:00
rillig
876b9237c3 Now it's possible to add custom directories to the check for directory
references.
2007-09-05 13:34:32 +00:00
rillig
30ba11bfca Documented all the variables that are used or defined by this file.
Added lots of XXX tags for things that should be discussed further.
2007-09-04 08:42:30 +00:00
jlam
1bffbe5e1d Introduce a new target "checksum-phase" which is used as a dependency
target by pkgsrc.  This new target computes checksums only up until
the extract phase is complete.

The "checksum" target is now a target that can always be run by the
user at any time, regardless of the presence of the work directory.

These changes were proposed in PR pkg/36603 by Robert Elz.
2007-08-31 16:30:11 +00:00
joerg
1871076e0c At least with XLC V9, xlc -V isn't that useful as it prints the
man page. Use -qversion instead.
2007-08-30 21:47:29 +00:00
joerg
ca11c32744 Newer AIX has bzip2 and bzcat pre-installed. 2007-08-30 21:29:21 +00:00
adrianp
583342970a The code for the pkg_install<20070714 vulnerability checks used in the
README.html generation are broken.  It will not find vulnerabilities in any
packages that have complex names in the pkg-vulnerabilties file.
e.g. php{4,5}-perl and sun-{jdk,jre}15
Post pkg_install-20070714 this is now fixed and only currently known
vulnerabilities are shown in the generated README.html files for packages.

You will need to update to pkg_install>=20070714 to get this fix.
2007-08-29 23:26:30 +00:00
rillig
a57e707ad8 Hey Johnny, I thought you could still write code that also works with
Solaris' /bin/sh.
2007-08-29 15:59:52 +00:00
adrianp
ccc8f33d94 The new audit-packages code goes to stdout now. 2007-08-27 15:38:08 +00:00
jlam
207a8ff447 When verifying checksums of distfiles, simply verify every checksum
provided in the distinfo file for those distfiles, rather than checking
specifically for the ones listed in _DIGEST_ALGORITHMS.  If a distinfo
file actually provides checksums for other algorithms, e.g.  TIGER,
then go ahead and verify them too.
2007-08-24 03:30:54 +00:00
jlam
ba2e1cdc9e Fix accidental :dw in previous commit. 2007-08-24 03:12:33 +00:00
jlam
9a59593e3e Restore the tradition behaviour of the "checksum" target. It can be
run now at any time up until the "extract" phase completes, and the
"checksum" target no longer keeps a state (cookie) file.

From the checksum.mk file comments:

    We do not actually wish to create a cookie file for the completion
    of the checksum phase because we want to be able to detect if
    any of the files have changed right up until the distfiles are
    extracted.  Therefore, we use the presence of the cookie file
    from the "extract" phase to determine whether we need to continue
    to verify checksums.

This addresses PR pkg/36262 and PR pkg/36603.
2007-08-24 03:11:01 +00:00
jlam
081c0f8957 Allow a nicer syntax for expressing needing at least a certain version
of an emulated operating system.  Instead of proliferating things like
SUSE_VERSION_REQD, NETBSD_VERSION_REQD, SOLARIS_VERSION_REQD, etc., a
package can say:

	EMUL_REQD=	suse>=9.1 netbsd>=2.0 solaris>=10

all in one, succinct line.
2007-08-23 18:20:30 +00:00
jlam
4fd552cb21 Use .PARSEDIR where it can be used to avoid hardcoding the path to the
emulator module.
2007-08-23 17:39:47 +00:00
jlam
711d838dc0 Back out previous and solve this in another way that doesn't involve
a hokey new emulator-opsys.mk file.
2007-08-23 17:31:46 +00:00
jlam
e44e2c60b8 Break out the inclusion of the operating-system-specific Makefile into
a separate emulator-opsys.mk file.

The emulator-opsys.mk file defines EMUL_DISTRO and the various *EMUL*DIR*
variables, as well as any opsys-specific variables.

Include this file within compat_netbsd/Makefile.common so that the
*EXEC_FMT variables (defined by the compat*/emulator.mk files) are
defined.  This fixes the build of compat* packages.

XXX emulator-opsys.mk will go away in the near future as we do more
XXX appropriate information hiding.
2007-08-23 15:59:33 +00:00
jlam
58bc5f9939 Define a variable EMUL_IS_NATIVE if the emulated operating system
matches the native operating system.  Use it in place of checking
whether EMUL_DISTRO matches "native-*" as EMUL_DISTRO is no longer
defined after bsd.prefs.mk is included.

This should fix PR pkg/36823 by Robert Elz.
2007-08-23 13:43:57 +00:00
joerg
d0f3b7006b Do not check that RCD_SCRIPTS_SRC.foo exists, assume so.
This unbreaks DESTDIR installation for mail/spamassassin,
when extract and install phase are part of the same make run.
2007-08-23 12:30:30 +00:00
joerg
8c752989ee Remove remaining parts of misc/xorg-dirs usage. 2007-08-23 09:49:18 +00:00
joerg
0f838e964b pkg_add can figure out the suffix itself, thanks. 2007-08-23 08:59:24 +00:00
gdt
dd8fde8499 Describe DEFAULT_ACCEPTABLE_LICENSES better.
Add GPL v3 to DEFAULT_ACCEPTABLE_LICENSES.

Add plan for dealing with Free licenses that have not been approved as
Free.
2007-08-22 16:29:15 +00:00
jlam
3961b685a7 Reorganize some code so that including bsd.prefs.mk doesn't expose
so much of the emulator framework.
2007-08-22 14:47:10 +00:00
jlam
ffd0fa8226 * Support netbsd-* as a valid platform in EMUL_PLATFORMS. Use the
pkgsrc/emulator/compat* and pkgsrc/emulator/netbsd32_compat* packages
  to provide the necessary shared libraries to run dynamically linked
  NetBSD binaries from the days of yore.

* Add some additional compat* packages for completeness:

	compat15, compat20, compat30

* Modify the compat* packages so that "compatNM" only provides files
  that aren't in "NetBSD-N.(M+1)".  For example, compat12 only provides
  files that don't exist in NetBSD-1.3.x, compat13 only provides files
  that don't exist in NetBSD-1.4.x, etc.

  As a result, if you are running NetBSD-3.0/alpha and want to run a
  1.3 dynamically linked binary, there is an automatic dependency
  chain that causes the following packages to be installed:

	compat13, compat14, compat15, compat16, compat20

  There are some deviations from this dependency chain on platforms
  that have changed executable formats, e.g. i386, m68, sparc, etc.
  However, in general pkgsrc will require that you have the necessary
  COMPAT_* options in your kernel to match the installed compat*
  packages.  This restriction is an artificial one imposed by pkgsrc,
  but allows for a single set of distfiles to be used on all versions
  of NetBSD.

* Provide compat* package support for every supported architecture
  of NetBSD.  Verily, it is now possible to run 1.2 binaries on
  NetBSD-1.5.3/pc532 by installing the compat12 package from pkgsrc.
  Rejoice, one and all!

* The netbsd32_compat* packages mirror the corresponding compat*
  packages for use by sparc64 and x86_64 to allow running 32-bit
  binaries with COMPAT_NETBSD32 kernel support.  The "extras" packages
  supply the additional shared libraries from the corresponding release
  of NetBSD so that the set of files in /emul/netbsd32 will be complete.

* pkgsrc/emulators/compat_netbsd contains infrastructure files shared
  by all of the compat* packages.
2007-08-21 22:49:02 +00:00
jlam
f7addad279 Allow the existence of symlinks that point nowhere. 2007-08-21 21:44:23 +00:00
joerg
8b88cd8fca Add actual license and a small description of what this is doing. 2007-08-21 21:08:18 +00:00
joerg
80b8a5c96a Add a cross-compile and DESTDIR safe alternative to ldd for
check-shlibs. This allows more stricter detection (e.g. it checks
whether the package links against a build dependency). It also checks
whether the rpath contains wrkdir references (like qt3-libs). It depends
on readelf and is only available for ELF systems for now. To test it,
add USE_CHECK_SHLIBS_ELF to mk.conf.

Supported-by: Google SoC 2007
2007-08-20 11:04:02 +00:00
joerg
4e5efdff41 Add readelf as tool, for only only the BSDs get it. 2007-08-20 11:00:33 +00:00
joerg
961f2e2499 For DESTDIR operation, no need to filter out old files. 2007-08-20 10:59:53 +00:00
joerg
651f00f91e Add cross-compiling support for bin-install and deinstall targets. 2007-08-20 10:59:05 +00:00
heinz
cd9a231f36 Removed mirror qgpop.dl.sourceforge.jp. It is not listed anymore on the
sourceforge.jp download pages and was not restored since this topic came
up in mid-July.
2007-08-19 19:16:58 +00:00
joerg
b0a55e5360 Explicitly bail out if X11_TYPE=xorg is found. 2007-08-18 00:30:21 +00:00
joerg
e09f68cb6b Remove infrastructure side of Xorg 6.9 support. Begin to simplify
some of the cases of X11_TYPE usage -- it will stay with modular|native,
so don't bother with keeping the separation in the tool list.
2007-08-17 20:27:30 +00:00
jlam
8cd21c85a1 Allow for emulation-specific patches for binary-only packages. The
patches are named emul-${EMUL_PLATFORM}-patch-* and are located in
${PATCHDIR}.
2007-08-16 16:29:27 +00:00
rillig
fca91bf3c4 Added a variable DEFAULT_DISTFILES that can be used when adding
distfiles to DISTFILES.
2007-08-16 07:42:53 +00:00
joerg
56b7b61664 A number of packages implicitly assume that ar runs the right ranlib,
so override it as well for DESTDIR.
2007-08-16 03:09:38 +00:00
joerg
0094e01f2c Provide _COMPILER_RPATH_FLAG and _LINKER_RPATH_FLAG. This should work
at the very least with AIX 5.3 directly and for older, wrapper should
take care.

Provide some more sane defaults for XLC and bail out explicitly if
XLCBASE can't be determined.
2007-08-15 21:26:28 +00:00
jlam
3ff1bf7b40 Use a flag to the checksum script to tell it whether we're checking
a distfile or a pkgsrc patch.  It's simple, cleaner, less magic, etc.
(duh!).

While here, I notice that _CHECKSUM_CMD was already being defined in
mk/checksum/checksum.mk (as it should be), so update the definition
from mk/patch/patch.mk and remove it from patch.mk.
2007-08-15 13:56:24 +00:00
joerg
ff4ca43fd6 Move APPENDELF definition after the reassigning of MACHINE_ARCH.
This allows cross-compiling of x86_64 from i386.
2007-08-15 13:25:47 +00:00
joerg
f3e91441c9 Create ranlib override for cross-compilation as libtool doesn't
use the target version.

If we ever want to create archives for the native platform,
NATIVE_RANLIB similiar to NATIVE_CC should be introduced.
2007-08-15 13:24:14 +00:00
joerg
ae3dae849b Use the new pkg_add -m for cross-compiling instead of -f. 2007-08-15 13:20:57 +00:00
joerg
4a33463b76 Remove bootstrap-register, bootstrap was changed a while ago to use
normal building and installation.
2007-08-14 23:59:25 +00:00
joerg
8eae292c51 Fix a number of bugs in the DESTDIR support:
- check-perms.mk was not DESTDIR aware, prefix files before passing it
  to the directory extraction
- PKG_FILELIST_CMD was calling pkg_info, which is fine for normal
  installation, but fails of course for DESTDIR. Just drop the @ lines
  from ${_DEPENDS_PLIST} and use that.
- To make he former work, ensure that _flavor-generate-metadata is part
  of _INSTALL_ALL_TARGETS. It was normally a dependency of
  _flavor-register, but that is skipped for DESTDIR.
- Remove ${_DEPENDS_PLIST} when running install-clean.
2007-08-14 23:58:24 +00:00
jlam
fe9b8d7edd Don't remove the whole metadata directory in _flavor-clean-metadata...
instead only remove the files generated by _flavor-generate-metadata.
This should preserve the +INSTALL and +DEINSTALL scripts (which are
created during the "build" phase") across a "make update" or a "make
deinstall".
2007-08-14 21:32:17 +00:00
jlam
701b13909a Teach the pkgsrc/mk/checksum/checksum script how to verify patches by
first stripping them of NetBSD RCS ID tags.  Use the checksum script
in the patch module to verify patch checksums instead of hand-coding
a miniature version of the checksum script in the do-pkgsrc-patches
target.
2007-08-14 21:25:09 +00:00
jlam
ea9b9c675e Strip out *all* of the lines containing NetBSD RCS ID tags that may
be lurking in patches before computing their checksum.
2007-08-14 19:22:31 +00:00
jlam
597066239a Protect the template NetBSD RCS ID tag from being expanded. 2007-08-14 19:19:01 +00:00
jlam
a78cac15b0 Move the code that generates distinfo to a standalone AWK script. 2007-08-14 19:08:18 +00:00
jlam
9999f553d9 Drop EMACS_USE_POP, EMACS_USE_X and EMACS_USE_X_TOOLKIT from the
default variable settings.  These are now handled directly by the
editors/emacs20 package via the options framework.
2007-08-14 19:04:56 +00:00
jlam
bf456958e2 Avoid checking whether PKG_OPTIONS_DEPRECATED_WARNINGS is defined in
the makefile and simply handle it in the shell code.  This allows for
appending to PKG_OPTIONS_DEPRECATED_WARNINGS in a makefile even after
bsd.options.mk is included.
2007-08-14 19:03:25 +00:00
rillig
6f1d6ed164 Return the documentation for FOO.<param> or FOO.${param} when help for
FOO is requested.
2007-08-14 18:04:16 +00:00
rillig
6af03c047d Rewrote the header comment. 2007-08-14 17:48:53 +00:00
gdt
d337d7e584 s/accept all licenses/bypass license checks/ 2007-08-14 15:23:53 +00:00
joerg
1024803ccc Checksum checks only make sense when distinfo is also present, so
move this into the conditional.
2007-08-14 14:19:19 +00:00
rillig
b1e6764d13 Don't print the message for the distribution patches if there aren't any. 2007-08-14 13:21:57 +00:00
rillig
d2a43c5046 _ACCEPTABLE is used by some bulk builders. 2007-08-14 07:54:22 +00:00
jlam
6aef13a50f Suppress the "depends on installed package(s)" message so it doesn't get
printed for each EMUL_PLATFORM that is supported by the package.
2007-08-13 15:17:09 +00:00
gdt
28ac528511 Factor out _REPLACE_NEWNAME_CMD.
Use $$newname consistently rather than $PKGBASE and $PKGNAME.
Rationalize @ with STEP_MSG.
Ensure ${RUN} is used once, and all commands are included.
2007-08-13 14:18:23 +00:00
rillig
11f5886a78 Fixed the definition and the documentation of MAKE_PROGRAM. 2007-08-13 12:03:10 +00:00
rillig
3434bf2469 PKGNAME and PKGPATH will never contain characters that need to be
escaped for HTML output.
2007-08-13 09:45:49 +00:00
rillig
959300ee1a APACHE_PKG_PREFIX can be ap22. 2007-08-13 09:31:43 +00:00
rillig
a6bcf86c93 Reworked the way the needed tools for the "patch" phase are determined. 2007-08-13 09:22:21 +00:00