summaryrefslogtreecommitdiff
path: root/mk/buildlink3
AgeCommit message (Collapse)AuthorFilesLines
2003-09-02Remove -R* options from the dependency_libs lines of *.la and *.lai files.pkgviews_mkjlam1-1/+10
2003-08-31Add a README file that documents pkgviews and buildlink3.jlam1-0/+159
2003-08-31Move the PKGVIEWS file into buildlink3 and rename it "TODO". This filejlam1-0/+43
contains the pkgviews migration plan as well as any other buildlink3/pkgviews ideas that we may have.
2003-08-31Also strip out -L@WRKSRC@ since the libraries may be in the top-leveljlam1-2/+2
source directory.
2003-08-31Make USE_X11_LINKS=NO mean "don't add a dependency on x11-links".jlam1-7/+14
2003-08-30Missed one more.jlam1-2/+2
2003-08-30The comment in the example buildlink3.mk file in the comments had a typo:jlam1-2/+2
FOO_BUILDLINK_MK -> FOO_BUILDLINK3_MK Thanks, seb!
2003-08-30There are three different parts we can add to the common transformingjlam1-2/+18
cache to speed things up: passthru automatically accept certain options without further checking transform change -[IL]{${X11BASE},${LOCALBASE},${DEPOTBASE}/*} to the correct ${BUILDLINK_DIR} reference block block certain options without further checking Seeding the cache appropriately lets us handle large classes of options without having to go through the wrapper logic file, which generates a cache hit for every single option and bloats the cache quite bit more. The implementation is at the bottom of bsd.buildlink3.mk where ${_BLNK_WRAP_CACHE_ADD_TRANSFORM} is generated. For now, only do the passthru stuff, since I'm not sure of the correctness of the other two phases. "transform" is probably okay, but "block" may be a tad too aggressive.
2003-08-30Protect references to ${PREFIX} and ${X11BASE} directories from beingjlam1-2/+34
removed when unbuildlinkifying files. Also properly convert -[IL]${DEPOTBASE}/<pkg>/path to -[IL]${BUILDLINK_DIR}/path in the seeded cache so that we can properly use pkgviews packages as dependencies for overwrite packages.
2003-08-30Allow a transformation to be _only_ for either transform or untransform.jlam1-5/+23
2003-08-30* Change the mangled directory name style so that it's possible tojlam1-7/+15
differentiate between the start and end of the mangled name. * Change references to ${DEPOTBASE}/<pkg> into ${LOCALBASE} so that "overwrite" packages think headers and libraries for "pkgviews" packages are just found in the default view. * Remove extra bit of _UNBUILDLINK_SED that duplicates sed commands that are added by the depot:...:... command.
2003-08-30Add a new command "depot:src:dst" that translates "src/<dir>/" into "dst/".jlam1-38/+51
Also be more strict about matching either non-separators or separators that can appear after a directory name.
2003-08-30Strip leading spaces from dependency_libs in the modified .lai file.jlam1-1/+2
2003-08-29Fix up building X11 packages and fix _BLNK_LT_ARCHIVE_FILTER to translatejlam1-26/+39
${DEPOTBASE}/<pkg>, not just ${DEPOTBASE}, into ${BUILDLINK_DIR}.
2003-08-28Deal with "-Wl,--rpath -Wl,/path/to/dir" by compressing it into a singlejlam5-6/+46
argument "-Wl,--rpath,/path/to/dir". This makes the cache-lookup much easier.
2003-08-28Avoid removing bare -[ILR], etc. You're allowed to put a space betweenjlam1-7/+20
the option flag and the directory that follows it.
2003-08-28Properly preserve some whitespace during tranformations.jlam1-10/+10
2003-08-28Second pass at making buildink3 usable by overwrite packages. Thisjlam2-46/+106
drags in most of the functionality present in buildlink2. We try something new to prevent libtool from looking in ${LOCALBASE}/lib for more libtool archives. Also, modify the cache-seeding to occur in stages and allow for a way to specify which stages we want. Currently, we seed with only the passthru and transforming bits.
2003-08-27(*) Automatically add BUILDLINK_CPPFLAGS.<pkg> and BUILDLINK_LDFLAGS.<pkg>,jlam1-8/+32
if they're defined, to the CPPFLAGS and LDFLAGS passed to the build. (*) Fix a silly error that stopped files for "overwrite" packages from being symlinked into ${BUILDLINK_DIR} -- a "$" was used instead of "$$". (*) Normalize a few status messages (printed by ${ECHO_BUILDLINK_MSG}) so that they match formats with the rest of pkgsrc. By default, these messages are suppressed.
2003-08-27Correct the glob so that we actually match -L${BUILDLINK_DIR}/* andjlam1-2/+2
discard them.
2003-08-27Add code to unbuildlinkify files and libtool archives.jlam2-5/+46
2003-08-27Add some .PHONY targets for correctness.jlam1-1/+4
2003-08-27First pass at allowing overwrite packages to build using buildlink3.jlam1-45/+150
2003-08-27Remove spurious line that causes spewage for "static" action.jlam1-2/+1
2003-08-27Rename BUILDLINK_DEPOT to BUILDLINK_PKG_DBDIR to more accurately reflectjlam1-13/+12
what we'll be using the variable for.
2003-08-27Some speed optimizations so that we don't keep evaluating some variablesjlam1-8/+17
set via != for every sub-make process.
2003-08-26Separate the concepts of where the metadata for a depoted package are, andjlam1-6/+12
where the actual files for a depoted package are.
2003-08-26ename some private variables so that they begin with _BLNK.jlam1-4/+4
2003-08-26Avoid executing pkg_info when we don't have to.jlam1-15/+14
2003-08-26Add some comments at the top describing a typical buildlink3.mk file.jlam1-1/+22
2003-08-25Revert PKG_DBDIR -> PKG_DBDIR_DFLT change. Since the pkg_* tools alljlam1-3/+3
support a command-line option to specify the pkg_dbdir, we can keep the old PKG_DBDIR semantics without change. This is less impactful for when we merge.
2003-08-23Tighten up and correct the section on rpath flags: add ${RPATH_FLAG} to thejlam1-8/+10
flags that we allow to specify an rpath, and it's okay to use "-Wl," instead of ${_COMPILER_LD_FLAG} since compilers that don't support it will have those args automatically removed by the wrapper scripts.
2003-08-23Rename BUILDLINK_DEPOT to BUILDLINK_PREFIX so that fewer packagejlam1-14/+14
modifications are needed to convert packages to use pkgviews.
2003-08-22Change two instances of DEPOTBASE into PKG_DBDIR where we are usingjlam1-3/+3
pkg_admin(1) to search through package metadata directories.
2003-08-22Make pkgtools/x11-links not recursively depend on itself, and fix up thejlam1-7/+6
definition of BUILDLINK_X11_DIR to point to the right place if x11-links is installed.
2003-08-21Use the 20030819 pkg_install tools, which support PKG_DBDIR_DFLT, andjlam1-5/+5
modify pkgsrc to use the new variable. This greatly simplifies a lot of the code instead of having to overload the value of PKG_DBDIR as we did before this change.
2003-08-19Add the depot directory of the package we're building to the list ofjlam1-1/+5
allowed directories in the runtime library search path.
2003-08-16Use DEPOT_PKG_ADMIN instead of PKG_ADMIN_CMD (just for correctness sincejlam1-4/+8
we're assuming pkgviews here), and default the BUILDLINK_DEPOT.<pkg> variable to be the default view directory if <pkg> isn't installed.
2003-08-16Stop worrying about empty _COMPILER_LD_FLAG since the wrappersjlam1-13/+9
automatically take care of it.
2003-08-16Programming with make variables/loops is not like programming with shelljlam1-15/+17
variables/loops. Setting temporary variables in loops doesn't really work (or at least not all of the time), so rewrite loops to avoid setting temporary variables.
2003-08-16We need to match the next directory part of ${DEPOTBASE}/* when we'rejlam1-3/+3
replacing with ${LOCALBASE}, otherwise we're not matching the full depot directory.
2003-08-16libtool-fix-la needs ${DEPOTBASE} and ${LOCALBASE}.jlam1-1/+3
2003-08-16Use commas instead of / as separator for sed expression involving paths.jlam1-3/+3
2003-08-16Use the common work log instead of our private one.jlam1-2/+2
2003-08-16Use comments to document this shell script. Also, add some new behaviour:jlam1-2/+75
We make sure that we don't ever reference other .la files from installed .la files, only referring to other libraries via the usual "-L/path -llib" and making sure that /path is always somewhere under the default view. This makes wildcard dependencies work for "overwrite" packages by letting libtool find libraries in the default view. A similar change may be needed for pkgsrc/mk/buildlink2/libtool-fix-la during the pkgviews integration.
2003-08-16Don't rely on the shell supporting ${var%%pattern}, although we do rely onjlam1-4/+9
it supporting ${var#pattern} (NetBSD's /bin/sh and ksh seem to do so).
2003-08-16Make the SunPro compilers look-and-feel a bit more like GCC, which isjlam3-3/+60
what pkgsrc basically assumes is present. We sanitize rpath arguments (buildlink2 already did this via sanitize-rpath, but we do it another way here) and we do something new: convert GCC's "-Werror" into the flag with corresponding functionality for the SunPro compiler (suggested in private email from salo).
2003-08-16Add comments to document what the libtool-* files actually do in thejlam3-3/+31
wrapper framework.
2003-08-16Add comments to the ld-post-* files that document exactly what the purposejlam2-4/+15
of these files is.
2003-08-14Initial implementation of buildlink3, based on buildlink2 and designed tojlam13-0/+1585
take advantage of pkgviews. More thought is needed for the pkgviews/libtool interaction because libtool archives (*.la) will likely contain absolute paths to other .la files in depot directories, but we don't want this since binary packages with wildcard dependencies may break.