Commit graph

6237 commits

Author SHA1 Message Date
reed
071cc8a6a3 Define DEVOSSAUDIO and DEVOSSSOUND for DragonFly.
From Kimura Fuyuki in PR #35824.
2007-02-25 00:29:27 +00:00
rillig
3d61247309 The post-build-only option also needs to load the variables. 2007-02-23 03:43:53 +00:00
rillig
8d8d67c7de Too many packages fail in mysterious ways when they cannot find
pkg-config, which happens mostly after updating a package. Therefore, a
failing wrapper is installed for this tool.
2007-02-23 02:49:56 +00:00
rillig
215797f36f The compiler option -Wl,foo,bar,baz is split into -Wl,foo -Wl,bar
-Wl,baz before processing the resulting options again.

Fixes PR 32203.
2007-02-23 00:31:29 +00:00
rillig
a65c6021a4 Changed the default Java Virtual Machine for NetBSD and Linux from "jdk"
(JDK 1.1.8) to "sun-jdk" (any Sun JDK >= 1.2), since JDK 1.1.8 has been
crashing for some NetBSD bulk builds for over a year now.
2007-02-22 23:52:58 +00:00
rillig
7cdc72c444 Changed the default warning message to include the word "unknown", since
otherwise it doesn't sound like a warning.
2007-02-22 14:54:32 +00:00
rillig
990ee366b6 Added the missing documentation that explains _why_ OBJHOSTNAME should
be set for locking. Based on the CVS log for bsd.pkg.mk 1.907.
2007-02-22 07:25:43 +00:00
rillig
322b451e11 Finished the split of PKGSRC_LOCKTYPE into LOCALBASE_LOCKTYPE and
WRKDIR_LOCKTYPE. Added more documentation.
2007-02-22 07:20:41 +00:00
rillig
6699eeb63a More documentation. 2007-02-22 07:15:54 +00:00
rillig
75380048aa Updated the ABI documentation, which also works on Solaris. 2007-02-22 07:05:57 +00:00
rillig
1b99f46aad gcc understands -Wno-unused-parameter. 2007-02-21 19:29:56 +00:00
rillig
d1b2c5f7f4 At the very beginning, the variables are extracted by running bmake in
the pkglint directory. This part had been more time-consuming than
necessary. Now it only needs one call to bmake instead of n.
2007-02-21 14:25:20 +00:00
rillig
4d2476efa1 Changed the failure into a warning when options such as "-I -L" appear
next to each other.
2007-02-21 12:27:36 +00:00
rillig
a0dd1a37e7 The options -I, -L and -R must not be followed directly by another
option. Instead of just merging them, the wrapper fails. Let's see which
packages get broken by that and then fix them.

I've also heard rumours that a plain -L is used as an alias to -nostdlib
in some compilers. This would have been handled wrong up to now, since
it definitely wasn't intended to be merged with the following argument.
2007-02-21 09:43:26 +00:00
jschauma
b9211a69aa - also find possible listings in {whatever}foo variations
- use PKGVULNDIR from env for correct location of pkg-vulnerabilities
2007-02-21 05:32:30 +00:00
rillig
90bdb331b2 OPSYS is not a list, so don't use the :M operator on it. 2007-02-21 01:33:55 +00:00
xtraeme
86825fa8bd Use fuse.buildlink3.mk from filesystems/fuse if OPSYS is linux. 2007-02-20 23:49:05 +00:00
xtraeme
af9810cf6a If OS is not linux or NetBSD with /usr/include/fuse.h, use
PKG_FAIL_REASON.

FreeBSD and Linux support needs changes yet...
2007-02-20 22:56:35 +00:00
rillig
4354925665 Made the locking more flexible by letting the user choose different
locking types for WRKDIR and LOCALBASE.

The default values are currently based on PKGSRC_LOCKTYPE, but the
recommended values are different. For LOCALBASE, the recommended value
is "sleep", since after one transaction has finished, the next can be
done in the new LOCALBASE without problems.

The situation is different though in WRKDIR. After one transaction has
finished there, it is often the case that the directory is removed,
including the lockfile. In that case, the package has usually been
installed and packaged successfully, and it would be a bad idea to let
the next transaction try to do the same again. Therefore, the
recommended value here is "once".
2007-02-20 22:11:10 +00:00
wiz
991a68755c Quite a number of unrelated packages install files into
share/emacs/site-lisp -- add it to default directories.
2007-02-20 18:57:05 +00:00
rillig
f1bc7a1210 Mapping command line options to the ABI is not as simple as I thought:
-32 does _not_ belong to ABI 32. Instead, the mapping is:

	ABI	Options
	(undef)	-o32 -32
	32	-n32
	64	-64

While here, allowing -OPT:* to pass through to the compiler, since it
will understand it.

This should fix PR 35729.
2007-02-20 16:12:41 +00:00
rillig
114317f32c Added a README file with some basic introduction to encourage developers
to port pkgsrc to other packaging systems.
2007-02-20 13:08:32 +00:00
uebayasi
d660bce7c0 Teach emacs22nox and leim22. 2007-02-20 12:36:02 +00:00
rillig
fdd9280481 Make the help finder find multi-line definitions, like in
mk/configure/replace-interpreter.mk.
2007-02-20 11:45:40 +00:00
rillig
a856ec03a1 Cleaned up the code:
- Targets that are not intended to be defined here (replace-pkg and
  undo-replace-pkg) are not defined here. (Sounds obvious, but apparently
  isn't.)

- Targets that are intended to be defined here and only here (replace
  and undo-replace) do not need a multiple-definition protection.

- Moved all comments to the top of the file.
2007-02-20 11:17:03 +00:00
rillig
70e7958fda I find the ABI useful to know when looking at a binary package. 2007-02-20 10:32:09 +00:00
rillig
79c6d231d0 For all but a very few developers, it is sufficient to check the
distfiles' checksums once and only once, between fetching and extracting
them.

The DO_CHECKSUMS_REPEATEDLY variable can be set to "yes" by those who
need the checksums checked more than once.
2007-02-20 09:53:23 +00:00
uebayasi
2a60f0037b A missing quote. 2007-02-20 09:22:14 +00:00
jschauma
853b673667 Only invoke audit-packages if we do find the package-name prefix in
the vulnerabilities file.  This cuts down significantly on the time
spent running sort-packages:
On 3228 packages before:
20259.43s real  9888.82s user 13138.60s system

With this change:
 6595.97s real  3215.58s user  4265.13s system
2007-02-20 06:46:20 +00:00
rillig
5495a908a1 The ABI for which the code should be generated can be queried from the
wrapper_abi variable. This is used in the MIPSpro wrapper to reject any
package that tries to compile a file for the wrong ABI. This is not just
a warning because such a package most likely has more severe problems.

The gcc -Wall option seems to be similar to the MIPSpro -fullwarn
option, so map them.
2007-02-19 14:50:33 +00:00
rillig
b157602e03 The argument -64 means to use the 64-bit ABI for Sun C and MIPSpro. 2007-02-19 14:43:05 +00:00
rillig
9ef7b40e37 Fixed "make debug" when CONFIGURE_ARGS contains a shell redirection for
stdin.
2007-02-19 12:19:49 +00:00
rillig
56ae0e7a97 The error output of "make debug" may be useful to know, too. 2007-02-19 12:10:43 +00:00
rillig
92248be659 Fixed more shell quoting issues, which showed up on IRIX. No wonder that
the package count on IRIX is so small.
2007-02-19 11:05:48 +00:00
rillig
acce7c2324 Oops: In the pre-previous commit, I forgot the $$2. 2007-02-19 10:51:58 +00:00
rillig
5f821d63e6 Why is OBJHOSTNAME needed for locking? 2007-02-19 10:39:47 +00:00
rillig
fad42cf10b When make(1)'s shell is a Korn shell, brace expansion may be performed.
This is especially critical for dependency patterns like
p5-perl-headers-6.5{,nb*}, which just occured on IRIX.

By the way, in "set -e" mode, assertions for non-empty variables can be
written much easier.
2007-02-19 10:33:46 +00:00
rillig
5a2b720572 Made _DEPENDS_PATTERNS_CMD a little simpler. 2007-02-19 10:18:33 +00:00
jnemeth
ae54396f9d Fix _EMACS_VERSION_NOREV. Thanks to dsl@ for spotting the missing ".". 2007-02-19 09:20:59 +00:00
rillig
ecb69be79f The mipspro compiler knows -32, -n32 and -64, of course. 2007-02-18 23:59:57 +00:00
rillig
ea5e7c8c6d Documented WRAPPER_REORDER_CMDS. 2007-02-18 23:49:44 +00:00
xtraeme
a5cf3e1e21 Add missing comment. 2007-02-18 22:37:51 +00:00
xtraeme
ddf11a8816 Fix if/else/endif case and indentation. 2007-02-18 22:37:06 +00:00
xtraeme
a8818eb624 FUSE framework for pkgsrc, in a very rudimentary state.
Seems to work fine on NetBSD with librefuse and some packages,
will need modifications for other systems.

Requested by agc@.
2007-02-18 22:07:56 +00:00
tv
6e168c7c12 Add support for sun-j{dk,re}6. 2007-02-18 19:12:07 +00:00
tv
6460221db6 Add JAVA_LD_LIBRARY_PATH, which is needed by the upcoming sun-jre6. 2007-02-18 16:25:54 +00:00
adrianp
e345235eb8 * Add an extra -V option to mkreadme to support a non-standard PKGVULNDIR
* Add the necessary changes to allow genreadme.awk to process the v1.1.0
  format pkg-vulnerabilities file.
* Changes are fully backward compatable i.e. mkreadme should be able to
  parse v1.0.0 and v1.1.0 format files.
2007-02-18 00:08:36 +00:00
adrianp
17ebee959f Add new snort descriptions for upcoming update to the 2.6 branch 2007-02-17 17:35:25 +00:00
tonio
2a3096f51c Make sure MACHINE_ARCH is set to x86_64 for FreeBSD-amd64 2007-02-16 16:09:23 +00:00
obache
21f5a560f1 Added qdbm option (used by mail/bogofilter). 2007-02-16 15:50:06 +00:00