summaryrefslogtreecommitdiff
path: root/mk/check
AgeCommit message (Collapse)AuthorFilesLines
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.
2009-10-21remove lib/charset.alias from CHECK_FILES_SKIPtnn1-4/+1
2009-09-02Add wrkref check for using the .buildlink or .x11-buildlinkjoerg1-2/+9
subdirectories. Update comment on the default checks.
2009-07-26Get rid of an abstraction violation which has been in the tree sinceagc1-2/+2
March 2008. Not vital, but the previous way does not scale well/at all.
2009-06-18fix typo in commenttnn1-2/+2
2009-05-08Remove a redundant "$" from a grep pattern.minskim1-2/+2
2009-01-12Fix check-wrkref path.uebayasi1-3/+2
_CHECK_WRKREF_FILELIST_CMD is a command which prints PLIST paths converted to absolute path. _CHECK_WRKREF_FILELIST_CMD can run anywhere, so cd ${DESTDIR} before that is pointless. To access files, _CHECK_WRKREF_FILELIST_CMD's output needs to be s/^/${DESTDIR}/ when destdir is used. Reviewed By: joerg
2008-12-15Oops.rillig1-2/+2
2008-12-15Made the code shorter.rillig1-9/+10
The info messages can be omitted. At least for ELF binaries, the code is sufficiently stable.
2008-11-18Removed unused variables.rillig1-4/+1
2008-06-22"Downgrade" checkperms dependency to a normal build dependency.joerg1-2/+2
This way it doesn't have to be installed for make checksum etc. to run.
2008-05-13Enable USE_CHECK_SHLIBS_ELF on FreeBSD. Aleksej Saushev PR pkg/38606.tnn1-2/+2
2008-03-09Enable USE_CHECK_SHLIBS_ELF by default on DragonFly and NetBSD.joerg1-1/+6