summaryrefslogtreecommitdiff
path: root/mk/check
AgeCommit message (Collapse)AuthorFilesLines
2017-07-05Also check for RELRO in shared librarieskhorben1-3/+3
2017-07-05Only check ELF binaries for RELROkhorben1-3/+4
2017-07-04Implement a check for RELROkhorben4-2/+192
This is only performed if PKG_DEVELOPER and RELRO are in use. After a suggestion during my talk at BSDCan 2017; thanks! Also, submitted on tech-pkg@ for review mid-June. As a next step, it seems this can be extended to libraries, just like the check for SHLIBS does (from which this is inspired).
2017-06-14Essentially from OBATA Akio in private mail, June 2015:prlw11-1/+6
Introduce Icon Theme cache handling framework Icon Theme cache files are used by GTK+ and maintained with the gtk-update-icon-cache tool. Each Icon Theme package duplicates its own maintainance scripts: only the specified icon theme directory differs. With this framework, if packages have ICON_THEMES=yes, associated icon themes will be detected and their cache files will be maintained automatically. Change cache handling behaviour as follows: * Icon theme caches will be updated if either gtk2+ or gtk3+ gtk-update-icon-cache tool is available. * With installation of gtk2+ package, not only hicolor icon theme but also any other icon theme cache files will be updated. * Prevent removal of icon caches at deinstall, gtk3+ may be installed and using them. * Ditto with gtk3+, gtk2+ may not be installed now, so caches must be maintained by gtk3+.
2017-06-01Provide switch to activate new frameworks to replace "pkginstall".jlam1-2/+2
If ${_USE_NEW_PKGINSTALL} is "yes", then use the new "pkgtasks", "init", and "pkgformat/pkg"-scripts frameworks instead of the existing "pkginstall" framework.
2017-05-31Check that some variables have the correct number of words.jlam1-2/+6
Assert MAKE_DIRS_PERMS and OWN_DIRS_PERMS have the right number of words before using a multivariable .for loop over those variables. This prevents errors in parsing the makefiles.
2017-05-03Introduce CHECK_SHLIBS_BLACKLIST which allows users to specify a list ofjperkin2-3/+21
regexps that will cause the checks to fail if they match resolved RPATHs.
2017-04-26Only perform the CHECK_WRKREF_EXTRA_DIRS check on the resolved path ratherjperkin1-7/+7
than on all of the rpaths. We can't always exclude the rpath being added, for example when the compiler adds its own behind our back, so this avoids false positives.
2017-04-01Fixed typo.rillig1-3/+3
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.