summaryrefslogtreecommitdiff
path: root/mk/check
AgeCommit message (Collapse)AuthorFilesLines
2016-08-20Fix for otool from Xcode 8.0adam1-2/+2
2016-04-10Remove support for USE_DESTDIR=no.joerg1-35/+1
2016-03-11Explicitly skip directories. PR 50955.dholland1-1/+4
2016-03-10Reset 'found' variable for each library check. Previously, all subsequentjperkin1-1/+2
tests would pass after the first successful check. Exposes library issues in a number of packages.
2016-02-24Fix issue with VAX when awk's split is called with empty string.jklos1-1/+3
2016-02-19Add an additional check to ensure that library REQUIRES are not relativejperkin1-4/+9
paths. These would previously pass the checks as the files would exist when checking from within the DESTDIR, but were not resolvable at runtime.
2015-11-27Perform interpreter sed(1) check with LC_ALL=C, avoids failures on newerjperkin1-2/+2
Darwin releases with "sed: RE error: illegal byte sequence".
2015-11-24Do the "defined && !empty" dance for NetBSD 5 make.jperkin1-2/+2
2015-11-16Add support for CHECK_WRKREF_EXTRA_DIRS to check-shlibs. If "extra" isjperkin2-2/+13
listed in CHECK_WRKREF then these directories will added to the checks for rpath references.
2015-08-17Introduce support for checking Mach-O dynamic libraries.jperkin3-19/+138
This works in a similar way to the ELF checks, but uses otool(1) to list the library name and its dependencies, and the checks fail if there are WRKDIR references or if the -install_name of the library does not match $PREFIX, as well as ensuring that any libraries from pkgsrc are correctly registered as full dependencies. Removes support for the user to set USE_CHECK_SHLIBS_ELF, but there were no reasonable reasons for doing so in the past anyway, and it may be masking issues in platform files we should fix.
2015-08-17Fix check-shlibs regular expression to match .dylib/.sl the same as .sojperkin1-2/+2
2015-08-10Fix typo in local variable name.jperkin1-2/+2
2015-04-29Use a single egrep and regexp instead of iterating over the list of files tojperkin1-5/+3
check and calling grep on each of them. Idea for using ":ts|" from Joerg. Reduces the test runtime by around 50%, depending on platform and package.
2015-04-29Only check executable files for valid interpreters. By the time this check isjperkin1-10/+3
performed all installed files should have their correct mode set, and there are no INSTALL scripts that currently change file modes under PREFIX after installation (nor should they ever). This change considerably speeds up the test. For example in www/firefox-l10n the time to run the test reduces from 181 seconds (135 seconds of system time) down to 10 seconds (6 seconds system time) on my SmartOS build systems.
2015-02-16Remove obsolete bulk build variables.jperkin1-5/+1
2015-02-01Revert "Drop obsolated old bulk build related variable settings."obache1-1/+5
proposed/discussed is required for such changes.
2014-11-21Drop obsolated old bulk build related variable settings.obache1-5/+1
2014-10-12Simplify PKG_DEVELOPER checks.joerg9-21/+24
2014-10-03Cache the results of getline and system() calls. Testing withjperkin1-7/+20
x11/kde-workspace4 shows a 25x performance improvement, reducing the runtime of _check-shlibs from 7m55s to just 18s.
2014-10-01Fix the readelf environment variable.jperkin1-2/+2
2014-09-07Set nrpath correctly in the case where there is no RPATH at all. Fixesjperkin1-2/+2
issues seen on NetBSD.
2014-09-06Ensure we iterate over the RPATH in search order, rather than relying onjperkin1-5/+5
awk array iteration which could result in the wrong library being chosen. Fixes issue seen with GCC 4.9 where the libgcc from the main GCC package was found first and caused errors, even though the RPATH correctly had the gcc49-libs version listed first.
2014-09-04Add a 'wrappers' option for CHECK_WRKREF which, if enabled, will check forjperkin1-3/+8
references to ${WRAPPER_DIR}. Update the error message when an invalid CHECK_WRKREF option is used.
2014-05-09use configured in check-permsrichard1-2/+2
2014-03-11Revert rev. 1.5ryoon1-3/+1
2014-03-11Revert rev. 1.5 and 1.6ryoon1-11/+2
The change introduced in rev. 1.5 disables portability check.
2014-03-11Fix "illegal reference to local variable word" error with lang/nawkryoon1-2/+11
under Debian GNU/Linux 7.4. lang/nawk's length(array) does not work as expected. So length(array) make array as usual variable.
2014-03-02Imprement CHECK_SHLIBS_SKIP, same as other CHECK_*_SKIP.obache1-1/+20
2014-03-01Fixes floating point exceptions on VAX.jklos1-1/+3
2014-02-20Prevent _CHECK_FILES_{PRE,POST} to include check-files-{pre,post}-messageobache1-5/+5
target, it is unwanted in check-files-clean target.
2013-10-25Some Linux systems now use DT_RUNPATH, so match it here as well.joerg1-6/+6
2013-05-12drop `file' command from default USE_TOOLS list.obache1-1/+4
It is used in limited case, and does not exist by default on some platforms. proposed at over 30 months ago, and no negative feedback (only one request).
2013-05-09Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.riastradh1-3/+3
Build depends are target packages that are needed at build-time for, e.g., static libraries to link against, header files to include, &c. Tool depends are native packages that are needed at build-time for, e.g., compilers/linkers/&c. to run. ok agc
2013-03-08Add DESTDIR to error message in case of PLIST mismatch.wiz1-3/+3
Noted by Edgar Fuß.
2013-02-20skip symbolic link for shlibs check, it may point to absolute path and currentlyobache1-2/+5
installed old version's file.
2013-01-04Don't print the /bin/sh warning on SunOS-5.11, where /bin/sh is ksh93.jperkin1-2/+2
2012-07-02Expand the list of full dependencies, so that the shared library checkjoerg1-2/+2
can work without further calls for indirect full dependencies.
2012-06-16Revert last change.obache1-17/+2
Honor dicision of the copyright holder.
2012-06-15allow DSO in not only non-full dependency packages but also indirect full ↵obache1-2/+17
dependency.
2012-05-29Extend shared library check to all files that match *.so.joerg1-2/+2
2012-05-22mk/check/check-files.mk: Skip locale.aliasmarino1-1/+4
On DragonFly, packages like devel/doc++ and net/wap-utils were failing the file check during installation due to a present locale.alias file. Treat it the same as charset.alias.
2011-10-15Rename "flavor" to "pkgformat".reed1-5/+5
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG support to pkgsrc. (I am not adding that further support in this commit.) This is just a rename of the existing functionality. Now it will be easy to test the GSoC work by simply putting in a single directory (such as "rpm" or "deb"). See http://addpackageforma.sourceforge.net/ for some details. This is from Anton's CVS, but I made some minor changes: - changed plural pkgformats to singular pkgformat (to be consistent) - fixed a few places (in comments) that were missed - catch up on some additions to flavor not in the pkgforma cvs: PKGSRC_SETENV and _flavor-destdir-undo-replace and undo-destdir-replace-install.
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs1-2/+2
to santise environment
2011-04-19Just warn about non executable files using env.roy1-2/+7
2011-04-19Disallow the use of env(1) as an interpreter.roy1-2/+7
2011-01-11Skip interpreter check unless regular file.obache1-1/+4
PR#44089, avoid warnings from broken symbolic link or link to a directory.
2010-08-24I'm fed up with having to waste time because PKG_DEVELOPER is "special" andbad9-18/+18
can't be disabled by setting it to "no" like the other variables. Besides, flavor/pkg/metadata.mk has been expecting for a long time that "no" is a valid value. Make PKG_DEVELOPER DWIM.
2010-02-02Deal with cases where the first dependency of a package is a buildjoerg1-3/+7
dependency, but a full dependency follows later.
2010-02-02The missing run-time search path test cannot run reliably in DESTDIR modetnn1-3/+8
when not using the readelf(1) method, so skip the test and warn about it.
2009-10-21revert previous - better do a bulk build with this change first to seetnn1-1/+4
if/how much stuff is dependent on it.