summaryrefslogtreecommitdiff
path: root/mk/buildlink2/libtool-fix-la
AgeCommit message (Collapse)AuthorFilesLines
2003-09-02Merge pkgviews-mk branch into the HEAD by running:jlam1-1/+1
cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-08-31Don't allow -R* options in dependency_libs -- rpath info shouldn't be injlam1-1/+5
there.
2003-08-31Strip bare -L${BUILDLINK_DIR}, -L${BUILDLINK_X11_DIR} and -L${WRKSRC}, asjlam1-3/+5
well as stripping -L to subdirs of these directories from dependency_libs lines in *.lai files. This corrects the changes in revision 1.18 of this file and restores some functionality accidentally removed in version 1.19 of this file. Should fix the subversion buildlink/libtool problem reported on tech-pkg@.
2003-08-27Correct the glob so that we actually match -L${BUILDLINK_DIR}/* andjlam1-2/+2
-L${BUILDLINK_X11_DIR} and discard them. (from pkgviews-mk).
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-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-06Some changes for Bourne shells that don't match NetBSD's feature-set:jlam1-5/+9
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>.
2002-12-26Rewrite wrapper scripts so that it is possible to add wrapper-specificjlam1-26/+26
logic and caching in a more natural way.
2002-12-22The buildlink2 problems on non-NetBSD platform seem to be related tojlam1-9/+9
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-10-30Move the sed command in _BLNK_{,UN}TRANSFORM_SED into a sed command filesjlam1-5/+2
.transform.sed and .untransform.sed that are generated by a new gen-transform.sh shell script. This avoids all of the silliness with exceeding the length of the value of a make variable that brought about breaking the original _BLNK_TRANSFORM_SED into _BLNK_TRANSFORM_SED.[1-4]. It's also vastly easier to understand the gen-transform.sh script as opposed to the juxtaposition of make and sed regular expressions, a.k.a. massive eyesores, that were in bsd.buildlink.mk. Also fix the directory protection scheme so that it might actually work if the pkgsrc directory is a subdirectory of /usr/pkg (${LOCALBASE}). Lastly, filter out /usr/X11R6 (${X11BASE}) if the package doesn't define USE_X11. This should catch packages that use X11 without announcing it, and avoids one way you can circumvent buildlink2.
2002-10-01Really, really fix the problem I was trying to fix with rev 1.6. I wantjlam1-7/+29
to only add -Ldir/.libs for *.la files that are not named with absolute paths or named with an absolute path starting with ${WRKSRC}. This should fix the problem with converting kdebase3 to buildlink2.
2002-09-28* Split _BLNK_TRANSFORM_SED into 4 variables, as even with 3 it wasjlam1-1/+2
overflowing the make variable size limit. * Rename _BLNK_WRAP_ENV to _BLNK_WRAP_SETENV, and use _BLNK_WRAP_ENV to set the shell environment for the wrappee. Allow BUILDLINK_WRAPPER_ENV to add to the shell environment.
2002-09-24Use |, not : to separate case conditions.jlam1-2/+2
2002-09-23For completeness, also allow for ./* when naming uninstalled libtooljlam1-3/+3
archives, and also do the special handling for dependency_libs.
2002-09-23Also add -L*/.libs for *.la that start with "../", which is also quitejlam1-2/+2
common when referring to an uninstalled libtool archive.
2002-09-23The previous commit of libtool-fix-la let a lot of references to the buildjlam1-13/+27
directory escape into the installed *.la files. Fix this by only adding -L*/.libs if the *.la file is uninstalled, and by filtering out references to ${WRKSRC}.
2002-09-20Fix problem with linking against uninstalled libtool archives that in turnjlam1-8/+47
depend on other uninstalled libtool archives. During the relinking process the newly installed libraries weren't being found. We now insert the appropriate -Ldir flags to allow them to be found in the uninstalled locations.
2002-09-18Split up the UNTRANSFORM variables into *.{1,2,3} so that they won'tjlam1-1/+4
exceed any maximum length on values stored in a variable.
2002-09-16Change the way that we note when a libtool file has been fixed byjlam1-5/+10
buildlink2. We used to create a timestamp file in the .libs directory. Now, we add a line to the *.la and *.lai file that directly notes that it has been "modified by buildlink2". This makes it easier to debug problems caused by using the wrong libtool during either a build or install by checking if the *.la or *.lai files have the "modified by buildlink2" line.
2002-08-22Merge pkgsrc/mk from the buildlink2 branch back into the main trunk.jlam1-0/+100