summaryrefslogtreecommitdiff
path: root/mk/buildlink3/bsd.buildlink3.mk
AgeCommit message (Collapse)AuthorFilesLines
2015-05-04Drop _LIBTOOL and _SHLIBTOOL and make LIBTOOL and SHLIBTOOL point to thejoerg1-3/+1
wrapped version by full path. This fixes some cases where the wrappers have been bypassed. lang/lua52 triggered the investigation as it failed to link against libreadline, which should have been translated to libedit. Tested by jperkin and myself with full bulk builds.
2015-04-27Remove ECHO_WRAPPER_MSG and just use ECHO_BUILDLINK_MSG, which was setjperkin1-2/+2
to the same value anyway. Also removes a comment from 2005 which was possibly wrong at the time it was committed, given the same construct has been used in bsd.buildlink3.mk unchanged since 2004.
2015-03-15Drop special casing of rpath in /usr/lib, the change didn't really workjoerg1-9/+1
due to misspelling in the old wrapper case and for cwrappers, it creates more problems than it fixes. If parts of /usr/lib should really be preserved, they should be added explicitly as pass-thru directory.
2015-03-15PR 49686: Drop -I and -L options references the built-in searchjoerg1-1/+9
directories of the compiler/linker when using cwrappers. Command line flags will often put them before the corresponding flags for PREFIX/include and PREFIX/lib, so the version from outside .buildlink would be prefered. The other way around is much less likely to be a problem and normally the expected case. Bump required cwrappers version for the necessary exact-match feature.
2014-12-30Remove pkg_views support, second part: infrastructure.wiz1-95/+17
2014-11-25Fix typojoerg1-2/+2
2014-11-24Clean up error from manual patch application.joerg1-2/+2
2014-11-24Add cwrappers glue as developed during Google's Summer of Code 2007.joerg1-1/+26
2014-10-31Fix typo.wiz1-2/+2
2014-09-02Check for the existence of a file before trying to remove it. It is highlyjperkin1-6/+7
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-05-18Catch up to /boot/common => /boot/system/develop on Haiku.obache1-2/+4
2014-04-17Stop USE_BUINTIN.pkg=no escalation from IGNORE_PKG.pkg=YES.obache1-2/+3
affect to result of pkgtools/x11-links, normal build v.s. pbulk.
2014-03-10Swap the ordering of the buildlink3 filters so that ${LOCALBASE} isjperkin1-13/+13
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).
2013-06-08Add two additional hacks/workarounds to make netbsd-5's make accept thedholland1-3/+5
USE_BUILTIN checking loop.
2013-06-07After including builtin.mk files, go through BUILDLINK_TREE in tree orderdholland1-1/+47
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-05-13Fix another :tsjperkin1-2/+2
2013-05-13It is a common misconception that ${FOO:tsc} will split FOO on 'c',jperkin1-2/+2
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-04-28* use SYSTEM_DEFAULT_RPATH/COMPILER_INCLUDE_DIRS/COMPILER_LIB_DIRSobache1-18/+30
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-02-02Fix previous, it didn't work as intended. Just having /usr/lib${LIBABISUFFIX}hans1-3/+1
there should be sufficient, and it works.
2013-02-01Treat /usr/lib${LIBABISUFFIX} like /usr/lib to avoid picking up thehans1-1/+3
wrong libraries from that dir.
2012-09-16Add "BUILDLINK_AUTO_DIRS.<pkg>" control variable:sbd1-1/+10
"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-16Add BUILDLINK_DIR.${_pkg_} with is either ${BUILDLINK_PREFIX.${_pkg_}} ifsbd1-1/+7
it is a builtin prefix or ${BUILDLINK_DIR} otherwise.
2012-05-24Treat /usr/lib${LIBABISUFFIX}} the same as /usr/lib and strip it out ofsbd1-4/+4
the runtime library search path.
2012-05-11Apply user transformation earlier to make it possible to dropjoerg1-5/+5
to-be-mangled entries like rpath using BUILDLINK_TRANSFORM.
2012-04-23If the BUILDLINK_PREFIX is '/usr' then the BUILDLINK_LIBDIRS will besbd1-1/+4
'lib${LIBABISUFFIX}'
2012-04-08Fix reverse condition, rewrite of X11BASE => BUILDLINK_X11_DIR are required forobache1-2/+2
X11_TYPE!=modular.
2012-01-17On Linux-x86_64 system transform /usr/lib/../lib* to /usr/lib* so thatsbd1-1/+11
the buildlink rules work properly.
2010-12-03Fix build on 64bit linux platforms. When buildlinking directories weabs1-3/+3
want ${BUILDLINK_DIR}/lib not ${BUILDLINK_DIR}/lib${LIBABISUFFIX} Tested on Linux x86_64 (Centos 5) and NetBSD
2010-05-02Fix typo in comment.wiz1-2/+2
2010-04-28Use /boot/common as default BUILDLINK_PREFIX if /usr does not exist.obache1-1/+10
It's default location of posix packages for Haiku OS.
2009-03-20Restore duplication check for _BLNK_PACKAGES that got lost with earlierjoerg1-2/+2
versions and was not fatal.
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-26/+41
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-16Move _SYS_VARS processing to a point where BUILDLINK_PACKAGES isjoerg1-14/+14
finalised.
2008-06-22When bombing out because the package we need isn't installed, printdholland1-2/+2
the full requirement rather than just the package name. This message should never be seen (after all, the package we need is supposed to *get* installed) but sometimes if things are screwed up in one way or another it does show up. Since often what's wrong is that the package that's installed is the wrong version, not that it's missing entirely, this way the error message makes a lot more sense. E.g. http://mail-index.netbsd.org/tech-pkg/2008/06/12/msg001126.html et seq. ok dillo@
2008-03-10Replace "pkg_admin -S lsbest" usage with pkg_info -E. The base strippingjoerg1-7/+5
in bsd.buildlink3.mk was broken with pkg_install-20080309 was it returned a relative path. It would have failed before e.g. with symbolic links in the path. pkg_info -E is simpler and was added exactly for this purpose. Fixes PR 38213 and PR 38211.
2008-02-19Check if BUILDLINK_AUTO_VARS.${_pkg_} is defined before testing itxtraeme1-2/+3
via !empty. This fixes a problem with gnome-panel and db1.
2008-02-07Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig1-22/+22
2007-12-05Escape colons in preprocessor, compiler or linker flags while checkingtron1-12/+12
their existances in other variables. This avoids parsing errors if e.g. "BUILDLINK_LDFLAGS.<pkg>" contains a colon.
2007-10-01Why don't we use pkg_info -qL instead of pkg_info -f?rillig1-1/+2
2007-08-02Add core of the infrastructure support for cross-compilation.joerg1-2/+2
- USE_CROSS_COMPILATION activates it, CROSS_DESTDIR specifies root of the target filesystem - derive _CROSS_DESTDIR from CROSS_DESTDIR or MAKEOBJDIR - buildlink3.mk prefixes the files to symlink with _CROSS_DESTDIR - compiler/gcc.mk knows about the target prefix (e.g. i386--netbsdelf) - PKG_DBDIR is prefixed with _CROSS_DESTDIR - package-install and bin-install are not called with su - install and strip are redirected to the tool version - links for the target specific ar, as, ld, nm, objdump, ranlib and strip are added - compiler wrapper detect if linking is requested or not - special command sinks for CPP and CC/CXX add the cross-compile magic: - modify include dirs to get the target /usr/include - modify linker dirs and runpath to use target /usr/lib at link time, but keep correct rpath entries Supported-by: Google SoC 2007 Basic tests by he@ on Sparc. Review from jlam@.
2007-07-27Remove remaining traces of BUILDLINK_TRANSFORM.${pkg}.joerg1-5/+1
2007-07-23*blush* One variable was missing for the !modular case.joerg1-1/+2
2007-07-23More aggressively conditionalize X11BASE handling. Only one casejoerg1-6/+28
is left now and that is hidden by LOCALBASE=X11BASE for modular Xorg.
2007-06-06Added _VARGROUPS.rillig1-1/+14
2007-01-25Absolute never use .x11-buildlink. Some cases get nasty to fix, sojoerg1-1/+5
back to this.
2007-01-17Renamed BUILDLINK_TRANSFORM.* to BUILDLINK_FNAME_TRANSFORM.*, to makerillig1-5/+9
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?
2006-12-20For modular Xorg disable xpkgwedge (will be made a hard error later).joerg1-12/+12
Don't add ${X11BASE}/bin to PATH, don't include mk/x11.buildlink3.mk when USE_X11BASE is set and don't use BUILDLINK_X11_DIR and related magic. OKed by wiz@
2006-11-17Added a check for whether X11BASE is set correctly. Currently the errorrillig1-1/+5
message is Syntax error: word unexpected (expecting ")") which is not helpful at all.
2006-11-05Special case LOCALBASE before X11BASE, as they can be identical injoerg1-1/+2
the case of modular Xorg and the latter is more specific.
2006-09-10ensure that -I and -L paths are correctly rewritten even if ${LOCALBASE}schwarz1-4/+15
contains ${X11BASE} (e.g. ${LOCALBASE} being /usr/local and ${X11BASE} being /usr)