Commit graph

98 commits

Author SHA1 Message Date
rillig
17e39f419d Fix indentation in buildlink3.mk files.
The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was
reviewed manually.

There are some .include lines that still are indented with zero spaces
although the surrounding .if is indented. This is existing practice.
2018-01-07 13:03:53 +00:00
sevan
48b17812da Do not build with the gcc-java enabled by default.
Add a comment to note the removal of option.
Discussed on pkgsrc-users@
http://mail-index.netbsd.org/pkgsrc-users/2016/09/29/msg023796.html
2016-09-30 13:16:59 +00:00
jperkin
db1332a441 Use OPSYSVARS. 2016-02-25 14:42:55 +00:00
jperkin
ac56158090 Attempt to bring sanity to how ABI and MACHINE_ARCH are set.
Previously there were at least 5 different ways MACHINE_ARCH could be set,
some statically and some at run time, and in many cases these settings
differed, leading to issues at pkg_add time where there was conflict
between the setting encoded into the package and that used by pkg_install.

Instead, move to a single source of truth where the correct value based on
the host and the chosen (or default) ABI is determined in the bootstrap
script.  The value can still be overridden in mk.conf if necessary, e.g.
for cross-compiling.

ABI is now set by default and if unset a default is calculated based on
MACHINE_ARCH.  This fixes some OS, e.g. Linux, where the wrong default was
previously chosen.

As a result of the refactoring there is no need for LOWER_ARCH, with
references to it replaced by MACHINE_ARCH.  SPARC_TARGET_ARCH is also
removed.
2016-01-24 16:14:44 +00:00
jperkin
842c8f3479 Remove mk/find-prefix.mk usage from the lang category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:51:16 +00:00
agc
54622f28e2 Add SHA512 digests for distfiles for lang category
Problems found with existing digests:
	Package nhc98 distfile nhc98src-1.22.tar.gz
	a8adc8f22371998ee0657bc0e01058a57d876abc [recorded]
	81975fcb5f1dda5efeaabc30ce8c6dceae55e591 [calculated]

Problems found locating distfiles:
	Package gcc-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package ghc7: missing distfile ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz
	Package icc11: missing distfile l_cproc_p_11.1.080.tgz
	Package jini: missing distfile jini-1_2_1_001-src.zip
	Package oo2c: missing distfile oo2c_32-2.0.11.tar.bz2
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package oracle-jdk8: missing distfile jdk-8u60-linux-i586.tar.gz
	Package oracle-jdk8: missing distfile jdk-8u60-solaris-x64.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-linux-i586.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-solaris-x64.tar.gz
	Package sun-jdk6: missing distfile jdk-6u45-linux-i586.bin
	Package sun-jdk6: missing distfile jdk-6u45-solaris-i586.sh
	Package sun-jdk7: missing distfile jdk-7u72-linux-i586.tar.gz
	Package sun-jdk7: missing distfile jdk-7u72-solaris-i586.tar.gz
	Package sun-jre6: missing distfile jce_policy-6.zip
	Package sun-jre6: missing distfile jre-6u45-linux-x64.bin
	Package sun-jre6: missing distfile jre-6u45-solaris-x64.sh
	Package sun-jre7: missing distfile jre-7u72-linux-i586.tar.gz
	Package sun-jre7: missing distfile jre-7u72-solaris-i586.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 22:50:31 +00:00
sevan
d1c8dac856 Remove the whitespace between $(LINKER_RPATH_FLAG) and the path. Otherwise the
flag may be misinterpreted by linker (e.g. Apple's ld)

Closes PR pkg/40028
Reviewed by wiz@
2015-01-22 11:56:31 +00:00
joerg
3f1add1dad Fix build on NetBSD 7+ 2014-09-10 12:18:54 +00:00
jperkin
a2d70e4426 Replace all references to _GCC_REQD with the appropriate logical value for
each GCC version.  Using the variable causes impossible version constraints
when a specific GCC is depended upon but the user is using something newer,
as _GCC_REQD will be set to the higher value.
2014-09-06 08:20:28 +00:00
asau
65612e34d2 Make it build on FreeBSD 10. 2014-07-02 22:10:40 +00:00
rodent
e5b2fdbc78 'Please use ${ECHO} instead of "echo".'
'Please use ${ECHO_N} instead of "echo -n".'
2013-04-06 14:58:18 +00:00
rodent
1a6dc952b9 "For efficiency reasons, please include bsd.fast.prefs.mk instead of
bsd.prefs.mk."
2013-04-06 11:06:52 +00:00
rodent
9971a1cb19 'Please use "${TEST}" instead of "test".' 2013-04-06 04:11:44 +00:00
rodent
cdd3752457 "Definition of PKG_SKIP_REASON is deprecated. Use PKG_FAIL_REASON instead." 2013-04-06 04:07:24 +00:00
wiz
bd06e1cb46 Reset MAINTAINER/OWNER (became observers) 2013-02-01 22:21:05 +00:00
dholland
8f3c2fc86b Remove leftover references to gcc3-ada and gcc34-ada. 2012-12-31 03:20:12 +00:00
asau
88feb4ac62 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-02 20:11:34 +00:00
joerg
6855a2cecb Redo netbsd/ctype_base.h patch to not pollute the namespace as much with
sys/param.h.
2012-06-08 15:42:28 +00:00
dholland
7e751949e4 Set BUILDLINK_ABI_DEPENDS correctly (with +=, not ?=)
It turns out there were a lot of these.
2012-05-07 01:53:12 +00:00
hans
9c3fbe955d Fix gcc-inplace-math option. 2012-04-26 13:27:43 +00:00
hans
3493fd478e Clean up lang/gcc34 to be similar to lang/gcc4*. 2012-04-25 18:40:27 +00:00
ryoon
c51c07980f Fix PR pkg/46029
* Make gcc handle -fPIC properly.
  from http://gcc.gnu.org/viewcvs/branches/csl-sol210-3_4-branch/gcc/config/sol2.h?r1=87927&r2=87928&pathrev=178719
2012-04-08 20:45:15 +00:00
hans
a335a3b1b5 Revbump for PLIST change due to BUILD_F77=YES. 2012-03-21 17:08:46 +00:00
hans
291f2bd6f8 Re-enable F77 build. This was accidentally lost in 2005 with r1.21. 2012-03-21 14:43:31 +00:00
sbd
ee982b7f81 Remove the MESSAGE files from gcc34 and gcc4X, the messages is VERY outdated! 2012-03-12 08:23:54 +00:00
sbd
8c2e3b7a22 Do DESTDIR support The Right Way(tm) by passing ${INSTALL_ENV} to
the 'make install' process and _not_ using MAKEFLAGS.

Should fix PR pkg/45290
2011-08-26 02:57:13 +00:00
wiz
ab0ddeb4cd Convert to destdir, from Makoto Fujiwara <makoto@ki.nu>. 2011-06-03 08:32:30 +00:00
obache
1d9df3258a recursive bump from gettext-lib shlib bump. 2011-04-22 13:41:54 +00:00
wiz
b80c3a7ef8 Fix patch-ac for NetBSD<5.99.41. 2010-12-23 15:25:16 +00:00
wiz
2d6b99bac3 Fix build on NetBSD-5.99.41 (_? -> _CTYPE_?) while hopefully not breaking
older releases.
2010-12-20 00:04:50 +00:00
wiz
8c7216dfa9 Set LICENSE. 2010-12-20 00:04:26 +00:00
tez
dbd7c366f2 Add patch to embedded libltdl for CVE-2009-3736 from:
http://lists.gnu.org/archive/html/libtool/2009-11/msg00065.html
2010-05-04 20:46:31 +00:00
asau
00708ce7e3 Recursive revision bump for GMP update. 2010-03-24 19:43:21 +00:00
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
hasso
955bff512e Hack it to work on DragonFly. 2009-04-22 18:59:54 +00:00
markd
00e0151458 Fix build on NetBSD 5.x using same patch Joerg applied to gcc3. 2009-03-30 10:57:02 +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
obache
9669e20043 Fixes pkgname of BUILDLINK_DEPMETHOD, it caused unwanted full dependency,
pointed out in PR 39234.
2008-07-28 09:48:48 +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
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
dmcmahill
6a3b553a4b _ULIMIT_CMD already includes a trailing ";" so don't follow that with
"&&" as some shells do not like this.
2007-04-07 22:23:01 +00:00
tron
090c296644 Apply resource limits for ADA build, too. 2007-02-05 06:46:10 +00:00
tron
aa2c5e38dc Unlimit datasize to fix build under (at least) NetBSD-i386 3.3.1 using
NetBSD's GCC 3.3.3.
2007-02-04 22:54:13 +00:00
rillig
5acfb0b6ca Renamed BUILDLINK_TRANSFORM.* to BUILDLINK_FNAME_TRANSFORM.*, to make
clear that these variables are completely unrelated to
BUILDLINK_TRANSFORM.

Added a legacy check that catches appearances of BUILDLINK_TRANSFORM.*.

XXX: Where should incompatible changes in pkgsrc be documented?
2007-01-17 03:11:18 +00:00
rillig
cd7e9298b9 Fixed the AWK interpreter. Bumped PKGREVISION. 2006-10-04 22:40:40 +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
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