summaryrefslogtreecommitdiff
path: root/mk/buildlink2
AgeCommit message (Collapse)AuthorFilesLines
2003-06-25Using GNU missing script as makeinfo seemed like a good ideaseb1-2/+4
when a package use the buildlink2 framework but does not define USE_MAKEINFO. Well it was not after all. This caused annoying messages because missing's commands emit annoying error messages when the script is invoked with only 'makeinfo' as argument (typically run this way by configure scripts). And more it does not handle makeinfo's '--output=...' argument. I first thought that it could be used as a nice way to get ride of the need for makeinfo when it was only dubiously run during build or installation of a package. But it also has the annoying behavior of creating empty files because of the typical automake generated Makefile target for info file build. Making the buildlink2's makeinfo hiding script only logging an error and doing 'exit 1' is actually a better tool to spot the need for makeinfo.
2003-06-19Introduce a new framework to handle info files, install-info andseb1-1/+52
makeinfo commands. The goal of the new framework is twofold: - reduce the number of '@exec' and '@unexec' in PLIST by using INSTALL/DEINSTALL scripts to handle entries addition/removal Info directory file. - achieve lighter dependencies by avoiding unnecessary run-time dependency on the gtexinfo package and if needed with the help of the standalone install-info command provided by the recently imported package pkgtools/pkg_install-info. A package must be sightly updated to use this new framework and must define the variable USE_NEW_TEXINFO. This variable will be removed from the pkgsrc tree when all package would have been updated. For details see section 10.24 of Packages.txt, comments in mk/{texinfo.mk,buildlink2/bsd.buildlink2.mk} and upcoming mail to <tech-pkg at netbsd dot org>.
2003-06-19Apply patch by Joachim Koenig-Baltes (joachim at handshake dot de) injschauma2-5/+23
followup to PR pkg/20529: Some libraries (in this example, a given Linux's native libpthread) don't come with a version number at all and/or are in fact symlinks. Test for this and act accordingly in fake-la. This allows packages that use pthread to buildlink under various Linuxen. Should close PR pkg/20529 and PR pkg/21854. Thanks, Joachim.
2003-05-06Drop trailing whitespace. Ok'ed by wiz.jmmv1-3/+3
2003-05-02Escape the wrappee name in an error message, since a user faced with anagc1-2/+2
error message of "Unable to create as wrapper script: no such file" could get confused.
2003-04-15typo in commentgrant1-2/+2
2003-04-15ugh, fix logic in last.grant1-2/+2
2003-04-15only create the wrappers for /opt/SUNWspro/bin/{CC,CXX} if we're notgrant1-1/+3
using gcc. fixes problem on Solaris where building pkgs would use the wrong CC (eg. CC=gcc) due to the wrappers being in the $PATH first.
2003-04-11Make sure wrappee is actually a file/link before considering it found.jmc1-2/+4
On solaris for instance if one put /usr/lib in their path before /usr/ccs/bin it would match /usr/lib/ld rather than /usr/ccs/bin/ld except that /usr/lib/ld is a directory...
2003-01-25Modify code to produce fake libtool archives to check whether the librariesjlam1-5/+7
named using the shell pattern actually exist.
2003-01-24Strip bare "-L${BUILDLINK_DIR}" (note there is no trailing "/lib") fromjlam1-1/+3
dependency_libs definitions in *.lai files. This should remove another instance that can cause "buildlink2 leakage" into installed files under ${LOCALBASE}.
2003-01-15Add RCS Id.jlam1-0/+2
2003-01-14Bump build dependency on x11-links to 0.12 after teaching x11-links aboutjlam1-2/+2
Xrender.
2003-01-13bump BUILD_DEPENDS on x11-links (Darwin fixes).grant1-2/+2
2003-01-10Alphabetize _BLNK_CACHE_ALL list.jlam1-2/+2
2003-01-10Don't add rpath statements to _BLNK_LDFLAGS if _USE_RPATH != "yes".thorpej1-4/+9
2003-01-10Protect some substitutions with slashes -- i.e. so that /usr/pkgsrc/.../workmycroft1-3/+4
doesn't get the /usr/pkg part expanded accidentally.
2003-01-10Protect ${WRKDIR} from transformation. We only want to transform pathsjlam1-1/+6
from outside of the work directory.
2003-01-10Fix indentation for case statement.jlam1-2/+2
2003-01-10Install a ${PREFIX}/bin/shlibtool as part of the devel/libtool-basejlam1-5/+18
package. shlibtool will not build static libraries. Add handling in bsd.pkg.mk for a variable named "SHLIBTOOL_OVERRIDE" that is analogous to LIBTOOL_OVERRIDE and causes any listed libtool scripts to be replaced with a symlink to shlibtool, and teach buildlink2 about shlibtool. Bump PKGREVISION of devel/libtool* packages to 11.
2003-01-08Teach buildlink2 about ${_OPSYS_RPATH_NAME} instead of just using -Wl,-Rjlam1-11/+4
everywhere.
2003-01-07Also substitute for @BUILDLINK_X11_DIR@ in the wrapper scripts. This wasjlam1-1/+3
a harmless bug, and the scripts will now run a little faster.
2003-01-07Output warnings to stderr, not to stdout (duh!)jlam1-3/+3
2003-01-07Don't complain about (correct) .buildlink leakage in the fake libtooljlam1-3/+4
archive case. Also output errors to stderr, not stdout (duh!).
2003-01-06Catch buildlink2 leakage as soon as it happens during the build process.jlam1-1/+6
This will hopefully prevent leakage from ever happening unnoticed.
2003-01-06Fix buildlink2 leakage into installed libtool archives that has been goingjlam1-2/+8
on since 2002-10-30. This mostly affects KDE packages.
2003-01-06Some changes for Bourne shells that don't match NetBSD's feature-set:jlam2-7/+11
if ! test ...; then ...; fi becomes: if test ! ...; then ...; fi and if ! command; then ...; fi becomes: if command; then :; else ...; fi This fixes PR 19690 by Frank Cusack <fcusack@fcusack.com>.
2003-01-03Require at least version 0.10 of the "x11-links" package becausetron1-2/+2
version 0.9 causes build failures in e.g. the "enlightenment" package.
2003-01-03Add the buildlink2 warnings to the wrapper log as well as outputting tojlam1-1/+3
stdout.
2003-01-01Use a while loop instead of a for loop to iterate over the arguments. Thisjlam1-2/+3
potentially allows for manipulating sequences of arguments instead of just one argument at a time.
2002-12-28Darwin 5.5 has finished the grueling recertification process: stillschmonz1-2/+2
works, but not with full caching.
2002-12-28As a refinement on the previous commit, we shouldn't even add .../.libsjlam1-8/+15
directories to the search list for libtool archives. Also make it clear that the warning comes from the libtool wrapper.
2002-12-28Break out of loop as soon after the first time we find a libfoo.la libtooljlam1-1/+2
archive that matches "-lfoo". This prevents breakage when someone does: -L../src -L../src/.libs -lfoo because libtool puts a .la file into both ../src and ../src/.libs. This fixes PR 19583 by Julio Merino <jmmv@netbsd.org>.
2002-12-27More ideas: _STRIPFLAG_CC, _STRIPFLAG_INSTALL, compiler optimization flags.schmonz1-2/+3
2002-12-27Both buildlink caching methods work on Solaris 8 and Darwin 6.2.grant2-5/+6
Enable full caching for any SunOS arch and Darwin 6*.
2002-12-26Full caching still works on Irix. Yay. :)jschauma1-2/+2
2002-12-26Add some libtool workarounds for software authors that don't follow thejlam3-1/+55
libtool documentation. Specifically, many authors now link against an uninstalled libtool archive with: -L../package/source/dir -lfoo instead of the correct (according to the libtool documentation): ../package/source/dir/libfoo.la The workarounds convert the former into the latter. Changes originally suggested by Rene Hexel <rh@netbsd.org> in private e-mail.
2002-12-26Rewrite wrapper scripts so that it is possible to add wrapper-specificjlam13-241/+343
logic and caching in a more natural way.
2002-12-26buildlink1 is dead. Long live buildlink2! (Perhaps Q2 should be removed.)schmonz1-4/+4
2002-12-25Let p:path convert both:jlam1-2/+3
path/subpath/libfoo.so => -Lpath/subpath -lfoo and path/libfoo.so => -Lpath -lfoo This fixes converting /usr/lib/libintl.so into "-L/usr/lib -lintl", which wasn't happening before.
2002-12-25Add a to-do item:schmonz1-3/+11
(*) Since buildlink2 is a layer of abstraction atop the toolchain, it's a logical place to deal with the vagaries of unusual toolchains. For example, on Darwin we could reliably pass the "-no-cpp-precomp" switch to every compiler invocation by emitting it from the compiler wrapper. Likewise, the use of _USE_RPATH in bsd.pkg.mk might be better handled in the linker wrapper.
2002-12-23Let's be consistent:jschauma1-3/+3
Always check for ${OPSYS} == "IRIX" (and not once for != and once for ==) Always use "-Wl,-rpath,/path" rather than sometimes "-Wl,-rpath -Wl,/path" and sometimes "-Wl,-rpath,/path".
2002-12-23Note that buildlink2 and full caching both work on IRIX (thanks, jschauma!)jlam2-3/+4
2002-12-23Note that to test buildlink2, we need to build & install, but to testjlam1-3/+3
caching, only building is needed.
2002-12-23Note that Solaris 8 & 9 work with full caching enabled (thanks grant, salo!).jlam2-6/+11
Also change _BLNK_CACHE_ALL to take wildcard lists of MACHINE_PLATFORMs so that specific operating system versions can be nailed down.
2002-12-23- full caching works on Solaris 8.grant1-4/+5
- only building pkgs is required. - update platforms.
2002-12-23Convert the lists into a capability matrix for ease of maintainence, andjlam1-16/+13
change "MacOS X" versions into their "Darwin" equivalents.
2002-12-23buildlink2 works on NetBSD-1.5.x (thanks gendalia!). Also note that wejlam1-4/+4
can test using gettext-lib instead of gettext, now that gettext-lib has been converted to use buildlink2.
2002-12-22The buildlink2 problems on non-NetBSD platform seem to be related tojlam10-94/+129
correct manipulation of variables containing values with escaped metacharacters by the shell. The new code only does partial caching, which doesn't cache "special" arguments that contain escaped metacharacters or other oddly quoted values. On certain platforms listed in _BLNK_CACHE_ALL in bsd.buildlink2.mk, we do full caching, which has enormous speed benefits since it avoids an extra sed invocation per "special" argument. Known working platforms: MacOS X 10.1.5 (schmonz) MacOS X 10.2 (grant) NetBSD 1.6 [full caching] (jlam) OpenBSD (cjep) Solaris 8 (grant) Solaris 9 (salo)
2002-12-03Allow package Makefiles to define REPLACE_LOCALEDIR, which is a space-jlam1-10/+20
separated list of files relative to ${WRKSRC} on which we do PKGLOCALEDIR replacement. This is in addition to the files on which we already do the PKGLOCALEDIR replacement (Makefile.in* and Makefile*).