Commit graph

3884 commits

Author SHA1 Message Date
tv
54ce782081 Add <bsd.lib.mk> to base addresses list. 2005-01-18 19:37:08 +00:00
tv
198bb2cf3c Add python23 to the base-address list. 2005-01-18 18:22:56 +00:00
jlam
5977984da2 Split out the argument pre-processing logic into its own script
arg-pp-main, and allow for wrapper-specific hooks to extend the
pre-processing through _WRAP_ARG_PP.<wrappee>.  Move the Darwin
GCC-related preprocessing into arg-pp-darwin-gcc, and create a
arg-pp-mipspro-cc that understands -LANG:<feature> and -LIST:<feature>
so that they're not confused with the usual -Ldir options.
2005-01-18 17:25:13 +00:00
tv
81e40c318f Turn distfile pruning back off by suggestion of wiz@. It's only binpkg
pruning that needs to be on by default.
2005-01-18 15:04:34 +00:00
tv
9a80a01fb8 Turn on all pruning by default. This avoids problems with @blddep matching
in the current incarnation of pkg_install.
2005-01-18 14:11:11 +00:00
jlam
1cdb69ea24 Teach the wrapper scripts about HP-UX *.sl shared libraries. They
work the same way as ELF *.so shared libraries from pkgsrc's point of
view -- just the extension is different.
2005-01-18 05:24:47 +00:00
jmmv
cd4de569dd Add a blank line between multiple "broken due to a broken dependency"
messages for better readability.
2005-01-17 08:52:50 +00:00
jlam
2374c335bd Rework code to more easily allow listing other platform that, like NetBSD,
use GCC and can accept -pthread.  Add DragonFly(BSD) to this list (from
PR pkg/28964).
2005-01-17 08:29:30 +00:00
jmmv
af92a2b644 - Move all CHECK_FILES_SKIP definitions to a central place in bsd.pkg.mk.
- Move the previous block of code down in the file so that all used variables
  are defined (specially PKG_SYSCONFDIR).  Fixes a problem noticed by
  kristerw@'s bulk build in comms/minicom.
- Ignore diff's return code, which aborts make in NetBSD 1.6.2.  Also noticed
  by kristerw@'s bulk build.
- Use full paths to do the checks, instead of relative to ${PREFIX}.  Less
  ambiguity.  Matches should be turned into regular expressions that anchor
  to a whole line (tried that, but found some problems).
- Turn CHECK_FILES to NO by default.  As said in the previous point, there
  are still some problems that have to be fixed and minor improvements to
  be done.  And I have no time to fix this ATM.  Yes, this definitely needs
  more testing.  I'm sorry for all the noise.  (But hey!  you should set and
  try this feature locally! ;-)
2005-01-15 10:50:17 +00:00
adrianp
204ac90729 Fix endif typo 2005-01-15 08:59:28 +00:00
tv
d59d4df63a Work around an undef-in-string warning caused by unexpanded $NetBSD$
id tags.  Noticed by kristerw.
2005-01-15 01:53:00 +00:00
jmmv
a12ae77f04 Also skip ${INFO_DIR}/dir in the check-files functionality, as this file
is not controlled by any package (so it won't be part of any PLIST).
2005-01-14 18:41:00 +00:00
jmmv
99909219cc Automatically add any of the {CONF,SUPPORT}_FILES and {MAKE,OWN}_DIRS stuff
to CHECK_FILES_SKIP to avoid some false positives.  These directories are
created in the pre-install stage so are included in the generated file list.
The files are also added to silence some problems that may arise during
"make replace".  Found by wiz@ in the gtk2 package.
2005-01-14 18:02:38 +00:00
tv
782903ea16 "uptodate-pkgtools" is actually a dead target these days. Use "fetch" in
pkgtools/pkglint to determine if pkg_install needs an update.
2005-01-14 15:32:34 +00:00
jmmv
8cf5329682 Add the check-files target: when enabled, this verifies that installed
packages do not install more files than expected (nor delete existing
files), aside other sanity checks in PKG_SYSCONFDIR and VARBASE.

This behavior is only enabled if PKG_DEVELOPER is set and CHECK_FILES
is YES (the default).  Should let us catch problems in other systems,
as some packages install different files depending on the OS they are
being built (which is different to see).

Furthermore, since the sanity checks done in PKG_SYSCONFDIR and VARBASE
are quite agressive, only enable them when CHECK_FILES_STRICT is YES
(defaults to NO).  Developers should enable this feature to detect errors,
but this can't be a default yet.  Otherwise, lots of packages could be
marked broken in bulk builds (they really are, according to "cleanliness"
rules, but most of them are non-trivial to fix).
2005-01-14 14:36:31 +00:00
tv
7983e9bf35 Only do the config.* overrides iff GNU_CONFIGURE. (defined() check needed
to make older bmakes happy.)
2005-01-14 14:08:06 +00:00
jmmv
e05f3f488a For those packages where the maintainer field can't be determined by
grepping, run make to get MAINTAINER's value.  I've tested this with
a script that tries to "simulate" this one without problems, but I
can't test it "in place".
2005-01-14 13:08:28 +00:00
jlam
bff1eecc97 Modify linux-pam and solaris-pam builtin.mk files to be more general
in their tests for built-in versions of the PAM implementations.  The
MacOS X case now collapses nicely into the linux-pam case.  Allow
pam.buildlink3.mk to use solaris-pam as an accepted PAM implementation.
2005-01-14 07:54:20 +00:00
jlam
643b26af82 We need to check that IS_BUILTIN.<pam> is "yes", not just that it's empty. 2005-01-14 07:37:39 +00:00
jlam
151f14b269 Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk. 2005-01-14 06:29:55 +00:00
jlam
1b5734f517 Create a pam.buildlink3.mk file that is used by PAM-using packages.
It includes the correct buildlink3.mk file from either Linux-PAM
(security/PAM) or OpenPAM (security/openpam) and eventually will
support solaris-pam.  pam.buildlink3.mk will:

	* set PAMBASE to the base directory of the PAM files;
	* set PAM_TYPE to the PAM implementation used.

There are two variables that can be used to tweak the selection of
the PAM implementation:

PAM_DEFAULT is a user-settable variable whose value is the default
	PAM implementation to use.

PAM_ACCEPTED is a package-settable list of PAM implementations
	that may be used by the package.

Modify most packages that include PAM/buildlink3.mk to include
pam.buildlink3.mk instead.
2005-01-14 05:15:39 +00:00
tv
089aec77ed Add $NetBSD$. 2005-01-14 00:10:50 +00:00
tv
f8b3f96fb6 Add override for uncommon "config.rpath" GNU config snippet. Use platform
file to indicate that override logic should be turned on.  (AFAICT, only
Interix is afflicted at the moment.)
2005-01-14 00:10:01 +00:00
tv
609eec1da7 Put back the proper variable construct for LIBTOOL_REQD that was borken in
previous.  (_OPSYS_LIBTOOL_REQD is only defined on some platforms, so the
:U clause provides the next best choice if that's not defined.)
2005-01-13 20:19:57 +00:00
tv
e4cc383421 * Clean up syntax ambiguities, e.g. (my $foo = $bar) =~ ....
* Add optional verbosity to show most commands as they are being executed.

* "use strict" and "use warnings".

* Slurp in the varables from build.conf and bmake in one shot (amazing
  startup speed boost with nfs pkgsrc); put them in a hash to make
  "use strict" much happier with the namespace.

* Fix a bunch of undef-dereference errors evidenced by "use warnings".

* Exclude PKG_DBDIR from leftovers list if it is inside LOCALBASE.

* Convert some <a name="..."/> constructs to <a name="..."></a> to make
  non-XHTML-compliant browsers happier.
2005-01-13 19:29:28 +00:00
seb
680703690d Add TNF copyright. 2005-01-13 09:49:06 +00:00
grant
7240d7d5bd add my copyright/license. 2005-01-12 22:58:29 +00:00
jlam
1fc74ae68e Correct my name to what I legally use. 2005-01-12 22:56:41 +00:00
tv
7ac5f2db44 Fix checking of up to date binary packages. The problem with DEPENDS
containing constructs of the form

    {perl>=5.8.3nb1,perl-thread>=5.8.3nb1}

is that a Bourne shell "for" interprets this as two separate items in the
list, nuking the {}s.  The above will never succeed and thus always cause
Perl-dependent packages to be rebuilt unconditionally.

Just adding more \s isn't enough -- the parsing of the depends list has to
be moved out of the "for" clause.  So, echo them one per line and use "read"
to pull them in without allowing the shell to peek at those characters.
2005-01-12 22:51:54 +00:00
recht
e03832caa6 set _PATCH_CAN_BACKUP=no to avoid problems with DragonFly's native patch.
Patch by Todd Willey in PR 28947
2005-01-12 21:11:41 +00:00
jlam
d6dfee8415 Use ${AWK} instead of a bare "awk". 2005-01-12 18:42:42 +00:00
jlam
ffd5ad15de Rearrange how LANGUAGES.<compiler> is set so that we can more flexibly
detect when only parts of a compiler toolchain are present, e.g. the
SunPro C compiler is installed, but not the Fortran-77 compiler.
2005-01-12 18:37:52 +00:00
jlam
c39637ec68 Put a TNF copyright on files that I authored. 2005-01-12 18:36:11 +00:00
jlam
d9168be817 Whitespace. 2005-01-12 17:40:48 +00:00
jlam
61c4d07ad0 Even more whitespace. 2005-01-12 17:40:01 +00:00
jlam
44a745628d Whitespace. 2005-01-12 17:39:34 +00:00
jlam
5f768fe677 Prepend the CCC compiler dir to the PATH so that they're found by the
wrapper scripts.
2005-01-12 17:39:18 +00:00
jlam
9e296c8b45 Backout part of previous commit that was unrelated. 2005-01-12 17:30:34 +00:00
jlam
9d72ec1985 Remove explicit overrides for CC and CXX that prevented using the
definitions supplied in /etc/mk.conf.  It should now be possible to
pass optimization flags directly using CC and CXX when using CCC and
xlC compilers.
2005-01-12 17:27:50 +00:00
tv
4a31c315e7 Disable win32-jdk for now. It doesn't play well with bulk builds yet. 2005-01-12 17:23:46 +00:00
jlam
a81bf92f7d Remove explicit overrides for CC and CXX that prevented using the
definitions supplied in /etc/mk.conf.  It should now be possible to
pass optimization flags directly using CC and CXX when using SunPro
and MIPSpro compilers.
2005-01-12 16:41:14 +00:00
jlam
b6b853727d Nuke USE_FORTRAN and bring the f2c handling within the mk/compiler
framework.  The list of changes include:

  * Modify compiler.mk so that "c" is always prepended to USE_LANGUAGES,
    so we no longer need to say it in package Makefiles.  Packages
    should now append to USE_LANGUAGES instead of setting it.

  * Create mk/compiler/f2c.mk which implements another pseudo-compiler
    "f2c" that may be used with any C compiler backend, e.g.

	PKGSRC_COMPILER= f2c ccache gcc

  * Teach the various "real" compiler files, e.g., sunpro.mk, mipspro.mk,
    etc., to use f2c if the native Fortran compiler isn't present.

Packages that use Fortran should now simply include the line:

	USE_LANGUAGES+=	fortran

in the package Makefile.
2005-01-12 15:31:58 +00:00
jmmv
7edd340747 Add MONOTONE_GROUP and MONOTONE_USER, used by the monotone-server package. 2005-01-12 12:54:45 +00:00
jmmv
012b4db0a7 Redo previous because it had a chance to cause serious problems, and was
already demonstrated by imake failing.

So, instead of fiddling with PATH's value in multiple places, rely on
PREPEND_PATH to get things right.  Hopefully this will DTRT.  At least
several local tests have worked without problems.
2005-01-11 20:09:14 +00:00
tv
1b0eb440fd nfs-pkgsrc friendliness change:
Add a knob to relocate all the global bulk state files in one setting.
BULKFILESDIR; defaults to PKGSRCDIR as before.
2005-01-11 18:44:10 +00:00
tv
71b0501db3 Some shells can cache * lookups, so do all the rm -f's of */*/<something>
on one line.  Add a message prior to doing the leftover log cleanup, as
it will take a while if pkgsrc is on nfs.
2005-01-11 18:33:16 +00:00
jlam
03469252ea Really skip the transformations for imake. This shows the danger in
having variables that take a "yes" value to turn off behavior.
2005-01-11 18:08:20 +00:00
jmmv
c69a629c0c Reverse PATH order in many places: instead of appending ${LOCALBASE}/bin
and ${X11BASE}/bin to the current PATH, _prepend_ them.  This way we will
pick our own binaries in favour of the system ones, in the cases where
conflicts exist.  Also add a PREPEND_PATH for ${LOCALBASE}/bin.

This should fix several packages on non-NetBSD systems.  For example,
ispell-spanish under Linux comes to mind, as it was using the 'ispell'
binary from /usr/bin instead of the one in /usr/pkg/bin to get its
configuration information.

Ideally, buildlink could handle this as it does for libraries, hidding
unexpected binaries ;-)

No objections in tech-pkg@ (or packages@; I don't remember the exact
list where I asked).
2005-01-11 13:39:19 +00:00
hubertf
d2b3d61718 rc is in /usr/pkgsrc/, even in sandboxes 2005-01-10 20:00:30 +00:00
jlam
27f0c5d4c2 _ALIASES.<wrappee> should be cumulative. 2005-01-10 19:38:53 +00:00