Commit graph

70 commits

Author SHA1 Message Date
joerg
59d47660a0 Fix a number of GENERATE_PLIST entries to always have a terminating ; 2009-06-16 15:25:31 +00:00
joerg
76039544d1 Remove @dirrm related logic. 2009-06-14 22:57:58 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
joerg
bb65b2534b Fix C++ build on NetBSD 5.x. Bump revision of gcc3-c.
Inspired by patch from Aran Clauson in the GCC Bugzilla.
2009-02-28 18:37:22 +00:00
jlam
b5e6ca3a7e Move code that generates a dynamic PLIST from the {pre,do,post}-install
targets and into a GENERATE_PLIST variable definition.  Remove some
unnecessary empty PLISTs as a result of properly setting GENERATE_PLIST.
2007-10-25 21:04:21 +00:00
jlam
56ba4d2690 Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
can handle packages having no PLIST files.
2007-10-25 16:54:26 +00:00
heinz
fb84bbc16e Added support for installation to DESTDIR. 2007-10-13 15:06:29 +00:00
adrianp
f35f07a816 The v7 and v9 directories on SunOS may not exist so only try and remove
them if they do exist.
2007-09-08 10:41:01 +00:00
rillig
e86c4508b7 Fixed pkglint warnings. 2007-02-15 14:35:13 +00:00
joerg
5e43280b23 Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes.
The redundant parsing of bsd.prefs.mk is mostly avoided now and
parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
2006-12-12 21:52:34 +00:00
markd
324e66cd29 Update gcc3-* to 3.3.6. Fix build of gcc3-f77 and gcc3-java on
NetBSD-current.
2006-12-07 11:24:27 +00:00
abs
7a1971ede9 Set MAKE_ENV+=SHELL=${CONFIG_SHELL} for all gcc packages. Fixes SHELL set
to non sh compatible shell in environment. Thanks to Georg Schwarz.
2006-09-27 15:46:11 +00:00
pooka
10c4c12b63 run make with env SHELL=/bin/sh. avoids shell hell and makes the
build work if your shell happens to be hell (i.e. tcsh)
2006-09-27 14:20:28 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
792529759b * Honor PKGINFODIR.
* List the info files directly in the PLIST.
2006-03-30 03:44:41 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
wiz
43de7f8bc0 Now that no package uses USE_GCC_SHLIB any longer, remove support
for it from compiler.mk.

Move the variable of the same name used by compiler/gcc.mk and
the gcc* buildlink3 files into private namespace (_USE_GCC_SHLIB).
2004-11-22 22:24:46 +00:00
jlam
10681043c3 Include "/usr/pkg/gcc3/lib" in the list of directories that contain gcc3
libraries.
2004-08-13 18:30:29 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
drochner
3be5d2a1b5 update to 3.3.4
bugfixes only afaict, no new features, no new files
2004-07-02 15:40:01 +00:00
abs
066ddabcbf Update gcc3-ada to 3.3.3nb1
Update gcc3-c++ to 3.3.3nb1
Update gcc3-c	to 3.3.3nb2
Update gcc3-f77 to 3.3.3nb1
Update gcc3-java to 3.3.3nb1
Update gcc3-objc to 3.3.3nb1
Update gcc3 to 3.3.3nb1

gcc arm: fix GCC _P_R_ target/14302

        Apply gcc fix for gcc PR target/14302 to fix ARM compiler
        issues triggered by at least glib, glib2, and pkgconfig.

             2004-02-26  Richard Earnshaw  <rearnsha@arm.com>
                   Daniel Jacobowitz  <drow@mvista.com>

                   PR target/14302
                   * arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS): Don't check the mode
                   size for minipool references.
2004-05-22 17:48:21 +00:00
jschauma
c51f31d0a8 Set the CC variable to .../bin/gcc (not .../bin/cc): on some systems,
there exists a 'cc', leading to buildlink creating a 'cc' wrapper pointing
to the original 'cc', which then won't work with the gcc flags, while the
'gcc' wrapper does work (since packages simply call 'cc' (or 'gcc') and
rely on buildlink having prepended the path to the right wrapper).
2004-05-20 15:05:46 +00:00
seb
00cc0486ea Garbage collect BUILDLINK_PKGBASE.<pkg> from buildlink3: it is not anymore
used since revision 1.139 of mk/buildlink3/bsd.buildlink3.mk.
2004-05-17 21:32:33 +00:00
seb
4db623d9f5 Apply sparc64 fix from gcc cvs via
src/gnu/dist/gcc/gcc/config/sparc/sparc.h revision 1.2.

Bump PKGREVISION of gcc3-c package.
2004-04-10 16:37:22 +00:00
seb
1cd5dcea8a Make all gcc3-* packages use a single distinfo file from gcc3/distinfo and
a single patch directory from gcc3/patches/.
Also Move gcc3-c/{Makefile.common,language.mk} into gcc3/.
2004-04-10 15:47:08 +00:00
jlam
e979cbd817 When building devel/gmake as a build dependency, build it without locale
support.  This makes it easier to "bootstrap" the installation of a
pkgsrc compiler without a lot of additional indirect build dependencies on
gettext, libiconv, libtool, etc.
2004-03-25 23:34:01 +00:00
jlam
8a90d10d76 The internal buildlink variable name is now "gcc3-c". 2004-03-22 08:26:43 +00:00
jlam
7db11b582a Fix serious bug where BUILDLINK_PACKAGES wasn't being ordered properly
by moving the inclusion of buildlink3.mk files outside of the protected
region.  This bug would be seen by users that have set PREFER_PKGSRC
or PREFER_NATIVE to non-default values.

BUILDLINK_PACKAGES should be ordered so that for any package in the
list, that package doesn't depend on any packages to the left of it
in the list.  This ordering property is used to check for builtin
packages in the correct order.  The problem was that including a
buildlink3.mk file for <pkg> correctly ensured that <pkg> was removed
from BUILDLINK_PACKAGES and appended to the end.  However, since the
inclusion of any other buildlink3.mk files within that buildlink3.mk
was in a region that was protected against multiple inclusion, those
dependencies weren't also moved to the end of BUILDLINK_PACKAGES.
2004-03-18 09:12:08 +00:00
jlam
46cf8098c1 Rename the internal package variable referred to by buildlink[23]. No
functional change.
2004-03-18 04:19:39 +00:00
jlam
59bdf89739 If the ${PKGBASE} of a package doesn't match the token passed to
BUILDLINK_PACKAGES, then set BUILDLINK_PKGBASE.<pkg> explicitly so that
we can map from <pkg> to BUILDLINK_PKGBASE.<pkg>.
2004-03-16 18:23:26 +00:00
jlam
9ff0e10340 Reorder location and setting of BUILDLINK_PACKAGES to match template
buildlink3.mk file in revision 1.101 of bsd.buildlink3.mk.
2004-03-05 19:25:06 +00:00
drochner
bf761bc865 update to gcc-3.3.3 2004-03-02 14:46:33 +00:00
kristerw
e553612a49 Previous change broke build on NetBSD because it tried to "rm -f" a
directory instead of just the file that was intended.
2004-02-22 04:51:25 +00:00
jlam
1bf1cd9015 Buildlink the gcc3-c libraries and headers early so that fake-la can find
them.
2004-02-21 10:37:27 +00:00
seb
e021a3c198 Play it safe -and be Solaris friendly: don't rely on 'ln -sf' to properly
remove an existing file, use 'rm -f' then 'ln -s'.
2004-02-21 08:38:45 +00:00
jlam
0316e47605 Use stricter dependency patterns so that we only match ones with the same
distribution version number.
2004-02-20 06:52:43 +00:00
jlam
efa1ab70ba Include "../../mk/compiler.mk" to get the value of CC_VERSION before
testing it.
2004-02-18 13:33:40 +00:00
jlam
50e07b6657 Bump the PKGREVISION after fixing up the installed *.la files to remove
references to the buildlink work directories.
2004-02-13 15:13:00 +00:00
jlam
df95f240e0 Use "sunos"-style shared library numbering whenever a platform wants the
"linux"-style one.  This matches our pkgsrc libtool behaviour so that we
can get a consistent numbering across different platforms so that we don't
have to fiddle with the PLIST.  This fixes PR 22556 and PR 23684.
2004-02-12 22:53:47 +00:00
jlam
dc0f2089d9 Include gcc3-c/buildlink3.mk to get the gcc3-c library and header files
symlinked into ${BUILDLINK_DIR}.
2004-02-12 11:40:45 +00:00
jlam
2d398958e1 Honor GCC3_PKGMODIF for alternate gcc3 install location. 2004-02-10 19:31:27 +00:00
jlam
3816e3f0f9 Add an explicit dependency on gcc3-c so that gcc3-* sub-language packages
will depend on gcc3-c instead perhaps of just using the system compiler.
2004-02-10 19:29:36 +00:00
jlam
7699290f10 If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
2004-02-06 19:04:24 +00:00
jlam
a23231c7f5 Correctly depend on binutils if binutils is already installed and
${LOCALBASE}/bin is in the ${PATH}.
2004-02-06 02:49:54 +00:00
jlam
214bd0797e We should only ever append to DEPENDS, not set it. 2004-02-06 01:42:29 +00:00
jlam
186233d0ae Fix lossage from buildlink3.mk files not being included by bsd.prefs.mk
as a result of recent changes in mk/compiler.  This fixes seeing the
mysterious "_gcc3" when building gcc3-* packages.
2004-02-05 20:58:41 +00:00
jlam
6472620f7b bsd.compiler.mk no longer adds dependencies or includes buildlink*.mk files
if it's being included by bsd.prefs.mk, so we can safely move the
BUILDLINK_DEPENDS line to its usual location.
2004-02-05 03:45:13 +00:00