summaryrefslogtreecommitdiff
path: root/mk/buildlink3
AgeCommit message (Collapse)AuthorFilesLines
2004-02-19Resolve ${LOCALBASE} to its phyiscal path and mangle it back intojlam1-15/+25
${LOCALBASE}. Some packages' configure scripts resolve all paths to physical paths, and since buildlink3 suppresses references outside of ${LOCALBASE}, it can break the build of those packages. This should fix the problem noted by Nathan Williams in the thread titled "x11/tk build failure" at: http://mail-index.netbsd.org/tech-pkg/2004/02/17/0004.html
2004-02-19Don't spew files in the package directory if the BUILDLINK_DEPENDS.<pkg>jlam1-4/+9
uses {} to list several "or" dependencies.
2004-02-18Output a more informative/desriptive error than:jlam1-1/+8
cd: cd BUILDLINK_PREFIX.foo_not_found We now say that the package wasn't installed at the time that we were trying to buildlink its files.
2004-02-18Remove some checks for PREPEND_PATH as we don't need them.jlam1-3/+1
2004-02-18* Move pkgsrc/mk/compiler/bsd.compiler.mk to pkgsrc/mk/compiler.mk.jlam1-6/+1
Package Makefiles may now directly include compiler.mk. * Don't include compiler.mk within bsd.prefs.mk any longer. It was only included for the purposes of defining CC_VERSION. Packages that want to test the value of CC_VERSION should now first include "../../mk/compiler.mk". Any GCC_REQD statements in package Makefiles should be set before compiler.mk is included. * Simpllfy pkgsrc/mk/compiler/*.mk files as a result of not needing to be included indirectly by bsd.prefs.mk. We remove the special handling associated with detecting whether the file was included from within bsd.prefs.mk. These files are now much more straightforward to write and understand. * G/C the BSD_PREFS_MK stack mechanism as the only users (compiler/*) no longer need it. * Ensure that directories are prepended to the PATH only from within bsd.pkg.mk.
2004-02-18Initial support for the MIPSpro ucode compilers found on IRIX 5.3. Thejlam2-0/+53
ucode compilers only support building the "o32" ABI.
2004-02-18Typo in comment.jlam1-2/+2
2004-02-18Typo in comment.jlam1-2/+2
2004-02-17Require x11-links-0.23 for the correct set of links with XFree86-4.3.x.jlam1-2/+2
2004-02-17Fix the glob pattern to match >= dependencies correctly.jlam1-11/+8
2004-02-17Do "dependency reduction" where dependency lists of the form "foo>=0.2jlam1-2/+53
foo>=0.3 foo>=0.4" are collapsed into a single "foo>=0.4" dependency.
2004-02-17+less obfuscated errorsjlam1-1/+3
2004-02-16also ignore -pedantic, SunPro doesn't need to be told ;-)grant2-3/+8
2004-02-16Symlink any *.pc files into ${BUILDLINK_DIR} for dependencies and forcejlam1-2/+2
pkg-config to only look in ${BUILDLINK_DIR}/lib/pkgconfig for *.pc files. This will correctly hide the presence of software from configure scripts that query pkg-config for that information. Idea suggested by Julio M. Merino Vidal.
2004-02-16Add some TODO items for me.jlam1-1/+7
2004-02-16ignore -ansi, SunPro doesn't need to be told to support ANSI C.grant2-3/+8
2004-02-16Move section that checks for PREFER_PKGSRC a little higher so that itjlam1-8/+8
actually has some effect.
2004-02-15Whitespace nits.jlam1-3/+3
2004-02-15Aside from everything under ${PREFIX}/include, grab all *.h files forjlam1-2/+2
symlinking into ${BUILDLINK_DIR} for a more complete set of headers.
2004-02-15Create wrappers for the compilers for every language supported by thejlam1-7/+1
compiler set. This will cause the libtool configuration found in several packages to use the correct C++ compiler even though the package doesn't use C++. This was causing bugs when CXXFLAGS contained flags not understood by the system gcc-2.95.3.
2004-02-13Change "-I dir" to "-Idir" (same for -L/-R) so that the .transform.sedjlam1-1/+9
script will understand these commands.
2004-02-12Move a test from the reorderlibs script out to the wrapper scripts forjlam3-6/+11
efficiency reasons.
2004-02-12Add missing "$" that was causing the reorderlibs script to create ajlam1-2/+3
variable with an exponentially increasing size. Fixes infinite loop when building security/cyrus-saslauthd.
2004-02-12Skip the common cache for more options that are only sunpro-cc related.jlam1-2/+2
2004-02-12Modify the "no-rpath" to not need a "/" to start the rpath. Also modifyjlam2-20/+20
the "r" command to allow paths ending in "/". This should fix PR 24352.
2004-02-09Darwin's special GCC also uses -dylib_file and -dylib_install_name injlam1-5/+10
similar ways to -install_name, and all need the subsequent argument to be protected from /path/shlib -> -L/path -lshlib transformations.
2004-02-09Don't generate wrapper scripts if we can't find the wrappee.jlam1-25/+28
2004-02-09We need the full path to the libtool that needs to be invoked when wejlam1-1/+5
use LIBTOOL_OVERRIDE. In the buildlink[23] case, that is supposed to be the one in ${BUILDLINK_DIR}. Create new private variables _LIBTOOL and _SHLIBTOOL to hold these paths.
2004-02-08* Let CC/CXX/CPP/FC always point to the compiler used in the actualjlam1-38/+11
building of software. For packages that use either buildlink2 or buildlink3, this would be the wrapper script in ${BUILDLINK_DIR}. * Garbage-collect _BLNK_WRAP_SETENV.* as those are not needed after the above changes. Configure and make processes will automatically find the right compilers in the PATH. * PKGLIBTOOL and PKGSHLIBTOOL are no longer needed since LIBTOOL and SHLIBTOOL point to the correct libtools regardless of any USE_BUILDLINK[23] definitions.
2004-02-06If we're passing through MAKEFLAGS variables whose values may containjlam1-2/+2
spaces, use the :Q modifier instead of double-quoting the value. This fixes breakage when executing the just-in-time su targetes.
2004-02-06Hiding the PATH from certain phases of the build only accidentally workedjlam1-3/+2
due to a type on gcc.mk that causes the ${_GCC_PREFIX}/bin to always be prepended to the PATH. The problem that was hiding was "make" resolving to ${TOOLS_DIR}/bin/make if the package used GNU make, which broke building since the package Makefile is a BSD Makefile and we passed PATH to some phases of the build. Fix this by expanding MAKE to the full path to ${MAKE} in bsd.prefs.mk. We also garbage collect the now useless checks for PHASES_AFTER_BUILDLINK that cluttered the PREPEND_PATH code.
2004-02-06We only prepend a directory to the PATH if we haven't already done sojlam1-3/+7
(by checking PREPEND_PATH) and only for those phases of the build that care about the PATH (buildlink or later). We also pass the PATH to those same phases of the build so that executing ${CC} will work correctly from custom {pre,do,post}-* targets that occur at buildlink time or later.
2004-02-05Touch up the grammar a bit in the last commit.jlam1-6/+9
2004-02-05Mention that some buildlink3 variables are not defined at all times.seb1-2/+8
Approved by jlam@.
2004-02-05Make PREFER_PKGSRC just yes/no or a list of packages. This makes itjlam1-5/+3
simpler to understand.
2004-02-05Rename BUILDLINK_PREFER_PKGSRC to PREFER_PKGSRC so that we can use itsjlam1-5/+4
value outside of buildlink-related files.
2004-02-05Support a new global variable:jlam1-1/+11
BUILDLINK_PREFER_PKGSRC This variable determines whether or not to prefer the pkgsrc versions of software that is also present in the base system. This variable is multi-state: defined, or "yes" always prefer the pkgsrc versions not defined, or "no" only use the pkgsrc versions if needed by dependency requirements This can also take a list of packages for which to prefer the pkgsrc-installed software. The package names may be found by consulting the value added to BUILDLINK_PACKAGES in the buildlink[23].mk files for that package.
2004-02-05Fix an error that crept in between revisions 1.25 and 1.26 where some /'sjlam1-3/+3
were inadvertantly added when replacing the awk script with a sed script.
2004-02-04Make it more apparent where certain "not_found" values are set forjlam1-9/+9
debugging purposes.
2004-02-04Fix harmless for-loop-break bug.jlam1-2/+2
2004-02-04Instead of tedious validating every platform for full caching compliance,jlam1-14/+13
just assume they do unless they're known _not_ to work. So far, only Darwin-5.* suffers from this problem, apparently because they use some bizarre version of zsh for /bin/sh.
2004-02-02Only create wrapper scripts for compilers that we require support for asjlam1-3/+11
noted in USE_LANGUAGES.
2004-02-02transform -f{pic,PIC} -> -Kpic and -shared -> -G to fix building ofgrant1-8/+13
packages which pass these gcc-specific flags. also ignore -Werror; if a package passes -Werror, it's expecting that the compiler is gcc, which in this case it is not. SunPro often emits warnings on code which gcc doesn't, so transforming this flag to -errwarn is counterproductive.
2004-02-01USE_{SUNPRO,MIPSPRO} are deprecated... check PKGSRC_COMPILER instead.jlam1-20/+5
Also remove unneeded section on OS-specific wrappers that's handled automatically nowadays by pkgsrc/bl3.
2004-02-01How'd that -lb get there?jlam1-2/+2
2004-01-31Bump the x11-links dependency to 0.20 to get the extensions/extutil.hrecht1-2/+2
header.
2004-01-30Use the stack in a smarter way. Take an argument (perhaps marshallingjlam1-27/+30
several arguments together) from the command line and push it onto the stack. Pop the top off the stack, process, and push replacement arguments onto the stack. Repeat the last step until no more processing is done, and we have our final argument to be passed on through to the rest of the wrapper script.
2004-01-30Remove debugging line that I accidentally left there.jlam1-2/+1
2004-01-30Teach buildlink3 how to reorder libraries on the command line. Youjlam5-10/+107
specify library orderings with: BUILDLINK_TRANSFORM+= reorder:l:crypt:crypto The wrapper scripts then reorder the libraries so that -lcrypt will always come before -lcrypto. If there are lots of reorder:l:... commands, then the algorithm looks a bit like a topological sort.
2004-01-29Revert the changes in revision 1.2 to do duplicate directory suppression.jlam1-11/+3
We just let the rest of the wrapper scripts do it now that we can't overflow a fixed-sized circular buffer.