Commit graph

359 commits

Author SHA1 Message Date
joerg
f69fd1d607 Clean up error from manual patch application. 2014-11-24 09:59:07 +00:00
joerg
516b42831c Add cwrappers glue as developed during Google's Summer of Code 2007. 2014-11-24 00:32:31 +00:00
wiz
794c5d7fb5 Fix typo. 2014-10-31 16:14:07 +00:00
jperkin
47fdae3df2 Check for the existence of a file before trying to remove it. It is highly
likely that the files in this code path do not exist, so this can save a
significant number of exec's, especially for packages with a large number of
dependencies, with a corresponding reduction in the run time for the 'wrapper'
phase.

In addition, remove a 'useless use of cat' instance to save more exec's.
2014-09-02 14:31:27 +00:00
obache
0d2918764c Catch up to /boot/common => /boot/system/develop on Haiku. 2014-05-18 11:23:26 +00:00
obache
aca999743c Stop USE_BUINTIN.pkg=no escalation from IGNORE_PKG.pkg=YES.
affect to result of pkgtools/x11-links, normal build v.s. pbulk.
2014-04-17 01:57:31 +00:00
jperkin
1b3bb96be7 Swap the ordering of the buildlink3 filters so that ${LOCALBASE} is
transformed before ${X11BASE}.  On Red Hat Linux with native X11,
X11BASE=/usr and so any ${LOCALBASE} which is under that hierarchy
(e.g. the default /usr/pkg) will break in weird and wonderful ways.

In addition to this, use ${LIBABISUFFIX} where appropriate, and avoid
some extra transformations in the X11BASE=/usr case.

This along with other recent changes gets us to a very healthy >12k
packages with native X11 on Red Hat Linux 6 (and clones).
2014-03-10 12:06:35 +00:00
obache
b1d2e3ff81 Let to find ${X11BASE}/include additionally for the case ${X11_TYPE}==native. 2013-11-23 12:35:39 +00:00
obache
8b1c2f06c4 Introduce find-headers.mk, ablility to find builtin header files.
Inspired by find-libs.mk and find-files.mk.
2013-11-23 09:06:09 +00:00
jperkin
6c97838c0c Introduce _OPSYS_PREFER.<pkg> variables as a way to set an advisory
per-platform default.  Previously PREFER.<pkg> was used, and as that
has the highest precedence it meant the defaults could not be overridden
with the PREFER_PKGSRC and PREFER_NATIVE user variables.

While here, set the openssl default for SunOS back to pkgsrc, now that
users who wish to use the builtin can do so via PREFER_NATIVE=openssl.
2013-09-04 15:14:45 +00:00
dholland
6bc2f78646 Add two additional hacks/workarounds to make netbsd-5's make accept the
USE_BUILTIN checking loop.
2013-06-08 20:23:02 +00:00
dholland
212b073ac8 After including builtin.mk files, go through BUILDLINK_TREE in tree order
and force USE_BUILTIN.pkg=no for packages that depend on packages where
USE_BUILTIN.pkg is no. The names of any such packages are accumulated in
the variable FORCED_PKGSRC for reference; this is currently undocumented
and could be dropped in the future.

This makes it a lot safer to install pkgsrc versions of selected X
libraries without switching wholesale to pkgsrc X; however, other
issues may still exist and caution is still advisable.

As seen on tech-pkg.

Also note: this may affect the builds of packages we don't realize are
affected and that haven't been revbumped. If you find one, let us know
so we can bump its version (or do that yourself) -- most likely this
change will produce in working, properly-linked packages that were
previously broken, but if problems arise please speak up.
2013-06-07 17:15:54 +00:00
jperkin
55acebac82 Fix another :ts 2013-05-13 12:01:51 +00:00
jperkin
25f4620492 It is a common misconception that ${FOO:tsc} will split FOO on 'c',
however that is not the case.  To get that behaviour use ':S/c/ /g'.

Fixes a number of issues on various OPSYS introduced with the recent
COMPILER_* and SYSTEM_DEFAULT_RPATH abstractions.
2013-05-13 11:38:30 +00:00
obache
62fd109fdb Let to find libraires in COMPILER_LIB_DIRS instead of hard coded paths. 2013-04-28 13:39:09 +00:00
obache
a257488eb5 * use SYSTEM_DEFAULT_RPATH/COMPILER_INCLUDE_DIRS/COMPILER_LIB_DIRS
instead of hard-coded /usr/include, /usr/lib, ... paths.
* allow empty BUILDLINK_PREFIX.${_pkg_}, for builtin packags not match such
  model (Haiku's system headers and libraries are in different hier).
2013-04-28 13:37:34 +00:00
hans
8880bfeddd Fix previous, it didn't work as intended. Just having /usr/lib${LIBABISUFFIX}
there should be sufficient, and it works.
2013-02-02 01:04:59 +00:00
hans
35199213ea Treat /usr/lib${LIBABISUFFIX} like /usr/lib to avoid picking up the
wrong libraries from that dir.
2013-02-01 12:43:44 +00:00
sbd
17c339e3f5 Add "BUILDLINK_AUTO_DIRS.<pkg>" control variable:
"yes" or "no" for whether BUILDLINK_{INCDIRS,LIBDIRS,RPATHDIRS}.<pkg>
should automatically be added to the compiler/linker search paths.
Defaults to "yes".
2012-09-16 07:49:11 +00:00
sbd
45ea5a1e3b Add BUILDLINK_DIR.${_pkg_} with is either ${BUILDLINK_PREFIX.${_pkg_}} if
it is a builtin prefix or ${BUILDLINK_DIR} otherwise.
2012-09-16 07:37:10 +00:00
sbd
c8cb033cda Treat /usr/lib${LIBABISUFFIX}} the same as /usr/lib and strip it out of
the runtime library search path.
2012-05-24 07:27:27 +00:00
joerg
8a0ca9cb7c Apply user transformation earlier to make it possible to drop
to-be-mangled entries like rpath using BUILDLINK_TRANSFORM.
2012-05-11 11:09:42 +00:00
sbd
3cfc61e339 Add '/lib${LIBABISUFFIX}' to the search path.
Also add a note
# XXX: Why are we looking in '/usr/lib${ABI}' and '/lib${ABI}', as we should
# XXX: only be looking in '/usr/lib${LIBABISUFFIX}' and '/lib${LIBABISUFFIX}'
2012-04-23 08:44:00 +00:00
sbd
8799fd0b9f If the BUILDLINK_PREFIX is '/usr' then the BUILDLINK_LIBDIRS will be
'lib${LIBABISUFFIX}'
2012-04-23 07:42:13 +00:00
obache
2fbb5622bb Fix reverse condition, rewrite of X11BASE => BUILDLINK_X11_DIR are required for
X11_TYPE!=modular.
2012-04-08 06:09:06 +00:00
joerg
9765e41589 Drop imake-check logic from X11 components' builtin.mk.
Always use xorg-cf-files and imake from pkgsrc, replacing xpkgwedge.
Always install man pages, not cat pages when using imake.
Unify the various imake PLIST variables in preparation for dropping.
Adjust xbattbar for the new expectations.
2012-03-19 12:34:12 +00:00
sbd
decd6778f3 On Linux-x86_64 system transform /usr/lib/../lib* to /usr/lib* so that
the buildlink rules work properly.
2012-01-17 22:19:22 +00:00
abs
fc3bada41a Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
abs
4ef034af5a Fix build on 64bit linux platforms. When buildlinking directories we
want ${BUILDLINK_DIR}/lib not ${BUILDLINK_DIR}/lib${LIBABISUFFIX}
Tested on Linux x86_64 (Centos 5) and NetBSD
2010-12-03 18:59:20 +00:00
obache
b7c70e106c Support builtin library detection for Haiku.
A half of PR#43399.
2010-08-21 05:07:51 +00:00
schwarz
f4f34bfcb4 Analogously to the case of modular xorg, do not use imake if it is not
available on the system (e.g. on MacOS 10.6). This prevents a circular
dependency on such systems involving x11-links and imake.
2010-06-16 20:23:05 +00:00
sbd
0ae82b5fa9 Add BUILTIN_PKGS with the "builtin" package names to the build information.
E.g if readline 6.0 and ncurses 5.7 are part of the system we get:
BUILTIN_PKGS=readline-6.0 ncurses-5.7
2010-05-19 09:12:15 +00:00
obache
2a02c4bb2b Revert addition of support for Haiku OS (BEINCLUDES and BELIBRARIES).
Improve a port is not better than break others, and current BUILDLINK3
dose not fit such a environment.
Thanks for tests and reviews after commit.
2010-05-03 06:58:27 +00:00
wiz
47b9279d13 Indent. 2010-05-03 05:54:18 +00:00
obache
1cd6a5a99e Replace __noexistent__ with __nonexistent__ to avoid possibilty of another confusion. 2010-05-03 05:52:59 +00:00
obache
07183bf380 Fixes r1.3, and recommit.
Assign with expansion to avoid confusion if this file is included multiply.
2010-05-02 23:59:29 +00:00
wiz
f015dcf3f6 Revert v1.3.
It broke expat detection/usage on NetBSD with native X.
See thread "intltool not building (expat problem)" on tech-pkg,
started on May 1.
2010-05-02 20:26:13 +00:00
wiz
6b03559b87 Fix typo in comment. 2010-05-02 18:32:29 +00:00
wiz
918c8ae3ea Fix typo that changes behaviour (was this tested?) 2010-05-02 18:32:09 +00:00
obache
db85cdfb31 Use /boot/common as default BUILDLINK_PREFIX if /usr does not exist.
It's default location of posix packages for Haiku OS.
2010-04-28 08:15:55 +00:00
obache
86570aa0ff Use BEINCLUDES and BELIBRARIES to find header files and libs additionally.
They point to the location of builtin header files and libraries for Haiku OS.

No objection over two and a half months in tech-pkg@.
2010-04-28 08:02:18 +00:00
joerg
100fb96324 Do not second guess the libtool mode if it was explicitly specified.
For --mode=execute, it could result in incorrect dropping of arguments,
which breaks mono.
2010-01-20 14:29:46 +00:00
obache
d81a6402d6 Fix indentation of show-buildlink3, came from a typo. 2009-10-05 02:40:06 +00:00
rillig
0280fc4e23 Reformatted and extended the comment so that it can be found by
"make help".
2009-07-11 07:56:25 +00:00
joerg
a1a6399f39 Restore duplication check for _BLNK_PACKAGES that got lost with earlier
versions and was not fatal.
2009-03-20 20:10:15 +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
37221332dd Move _SYS_VARS processing to a point where BUILDLINK_PACKAGES is
finalised.
2009-03-16 18:37:07 +00:00
obache
6f8cd07b1f Fixes typo, able to detect builtin libiconv again. 2008-12-15 10:58:53 +00:00
jmcneill
49a9b9816d Add /usr/lib${LIBABISUFFIX} to the search path 2008-12-14 16:34:24 +00:00
cube
78e303b61d Complete previous, by entering the package version definition if the file
looked up is not a pkgconfig one, at the condition that the version
script is defined.
2008-10-06 13:19:11 +00:00