summaryrefslogtreecommitdiff
path: root/mk/check
AgeCommit message (Collapse)AuthorFilesLines
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
2008-02-20Removed colons from variable names so they are accessible to "bmakerillig3-10/+10
help".
2008-02-20After being deprecated for 16 months, SKIP_PORTABILITY_CHECK is nowrillig1-5/+7
obsolete.
2008-02-20Removed colons for the sake of "bmake help".rillig1-3/+3
2008-02-13Added a new check for binaries, so that they are installed according torillig2-1/+60
the INSTALL_UNSTRIPPED variable. By default, this check is disabled, so that it does not cause any breakage. NB: The file(1) command needs the explicit locale to prevent translated messages. This file is copied from check-interpreter.mk.
2008-02-13Adjusted the documentation to the source code.rillig1-2/+2
2008-02-10Enable check-fakehome.mk.tnn1-1/+2
2008-02-10Enable fake home directory support. Also add a wrkref check because antnn1-3/+5
embedded path to the HOME directory can be a security problem if, say, the package looks in the HOME directory of an unprivileged user for configuration files. Note that this has the potential to cause some short-term fallout.
2008-02-08Skip ${PREFIX}/emul/linux32/proc.* as welladrianp1-3/+4
2008-02-07Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig3-26/+26
2008-02-05No need to walk the whole directory when checking for emptyness.tnn1-3/+3
From Robert Elz.
2008-02-05This is the check part of the fake $HOME code. Not enabled yet.tnn1-0/+40
2008-02-05Convert to ${RUN}tnn2-7/+4
2008-01-23STEP_MSG may be a hidden command.rillig1-5/+3
2008-01-21The package x11/gdm embeds ${exec_prefix} into a macro containing arillig1-2/+3
PATH, in which it is not directly preceded by a quote character: #define GDM_USER_PATH "/usr/bin:/bin:${exec_prefix}" Catch this by complaining about "${" also when it appears after a colon. Since this check is still disabled by default, it will not surprise anyone.
2008-01-16Make the default rpath for USE_CHECK_SHLIBS_ELF a platform variable.joerg1-2/+2
Define the values for NetBSD and DragonFly.
2007-11-30The interpreter check for packages which are their own interpreter,bjs1-2/+6
e.g. lang/perl5, was failing. Adding a check for ${DESTDIR}"$$interp" fixes this.
2007-11-28Print a warning for every file that has /bin/sh as interpreter, but onlyrillig1-1/+6
on Solaris.
2007-11-07Activated the check-interpreter for PKG_DEVELOPERs. I don't remember whyrillig1-1/+5
activating this has taken so long.
2007-10-13Fix the .include lines so that make looks in the right place first.dsl1-9/+9
Remember .include "foo.mk" is looked for (first) in the directory that contains the makefile being processed (like in C), so remove all the ${.PARSEDIR} and ../ sequences that just cause grief.
2007-09-27Even though VARBASE is sometimes below LOCALBASE, some users want torillig1-1/+3
check it. Don't prevent that in CHECK_FILES_STRICT=yes mode.
2007-09-13In bulk builds with a custom PKGSRCDIR, that directory should not appearrillig1-1/+3
in binary packages. This check can be enabled by adding "pkgsrc" to CHECK_WRKREF.
2007-09-12check-files shouldn't complain about files in VARBASE, since they cannotrillig1-1/+4
be represented in the PLIST.
2007-09-05Now it's possible to add custom directories to the check for directoryrillig1-1/+9
references.
2007-08-21Allow the existence of symlinks that point nowhere.jlam1-3/+3
2007-08-21Add actual license and a small description of what this is doing.joerg1-0/+40
2007-08-20Add a cross-compile and DESTDIR safe alternative to ldd forjoerg3-2/+142
check-shlibs. This allows more stricter detection (e.g. it checks whether the package links against a build dependency). It also checks whether the rpath contains wrkdir references (like qt3-libs). It depends on readelf and is only available for ELF systems for now. To test it, add USE_CHECK_SHLIBS_ELF to mk.conf. Supported-by: Google SoC 2007
2007-08-14Fix a number of bugs in the DESTDIR support:joerg1-2/+2
- check-perms.mk was not DESTDIR aware, prefix files before passing it to the directory extraction - PKG_FILELIST_CMD was calling pkg_info, which is fine for normal installation, but fails of course for DESTDIR. Just drop the @ lines from ${_DEPENDS_PLIST} and use that. - To make he former work, ensure that _flavor-generate-metadata is part of _INSTALL_ALL_TARGETS. It was normally a dependency of _flavor-register, but that is skipped for DESTDIR. - Remove ${_DEPENDS_PLIST} when running install-clean.
2007-08-13Prevented the files check from being confused by concurrent instances ofrillig1-1/+3
"make replace". Since these are currently not locked properly, they may remove files from PKG_DBDIR while another package is being installed.
2007-07-23When using check-perms, also depend on sysutils/checkperms.joerg1-1/+3