Commit graph

148 commits

Author SHA1 Message Date
richard
8a4981f558 use configured in check-perms 2014-05-09 11:59:27 +00:00
ryoon
370bb25b4d Revert rev. 1.5 2014-03-11 23:27:40 +00:00
ryoon
88465f1339 Revert rev. 1.5 and 1.6
The change introduced in rev. 1.5 disables portability check.
2014-03-11 23:23:01 +00:00
ryoon
5b659c4f2a Fix "illegal reference to local variable word" error with lang/nawk
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-11 21:32:11 +00:00
obache
e98bbce8cb Imprement CHECK_SHLIBS_SKIP, same as other CHECK_*_SKIP. 2014-03-02 05:43:16 +00:00
jklos
3e9df3ec81 Fixes floating point exceptions on VAX. 2014-03-01 17:57:01 +00:00
obache
0e0d049625 Prevent _CHECK_FILES_{PRE,POST} to include check-files-{pre,post}-message
target, it is unwanted in check-files-clean target.
2014-02-20 09:15:15 +00:00
joerg
71bda04a66 Some Linux systems now use DT_RUNPATH, so match it here as well. 2013-10-25 14:11:13 +00:00
obache
add5c36964 drop `file' command from default USE_TOOLS list.
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-12 06:17:50 +00:00
riastradh
9e0c502480 Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.
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-05-09 23:37:25 +00:00
wiz
3ca0214c05 Add DESTDIR to error message in case of PLIST mismatch.
Noted by Edgar Fuß.
2013-03-08 15:32:52 +00:00
obache
354965a339 skip symbolic link for shlibs check, it may point to absolute path and currently
installed old version's file.
2013-02-20 06:00:51 +00:00
jperkin
568e518ff4 Don't print the /bin/sh warning on SunOS-5.11, where /bin/sh is ksh93. 2013-01-04 10:51:57 +00:00
joerg
86a1f7d707 Expand the list of full dependencies, so that the shared library check
can work without further calls for indirect full dependencies.
2012-07-02 14:53:13 +00:00
obache
746a40d55d Revert last change.
Honor dicision of the copyright holder.
2012-06-16 11:58:07 +00:00
obache
36a4eb2941 allow DSO in not only non-full dependency packages but also indirect full dependency. 2012-06-15 14:46:53 +00:00
joerg
bd737b69e2 Extend shared library check to all files that match *.so. 2012-05-29 21:53:55 +00:00
marino
9220ff46a6 mk/check/check-files.mk: Skip locale.alias
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.
2012-05-22 07:59:31 +00:00
reed
88166ad6f5 Rename "flavor" to "pkgformat".
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-10-15 00:23:07 +00:00
abs
fc3bada41a Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
roy
7ecb96b2ef Just warn about non executable files using env. 2011-04-19 15:31:45 +00:00
roy
b73064c230 Disallow the use of env(1) as an interpreter. 2011-04-19 14:28:28 +00:00
obache
fb23ffa128 Skip interpreter check unless regular file.
PR#44089, avoid warnings from broken symbolic link or link to a directory.
2011-01-11 12:03:18 +00:00
bad
89f715edf7 I'm fed up with having to waste time because PKG_DEVELOPER is "special" and
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-08-24 19:08:28 +00:00
joerg
40c00aad94 Deal with cases where the first dependency of a package is a build
dependency, but a full dependency follows later.
2010-02-02 23:35:36 +00:00
tnn
f7cda37482 The missing run-time search path test cannot run reliably in DESTDIR mode
when not using the readelf(1) method, so skip the test and warn about it.
2010-02-02 15:36:15 +00:00
tnn
ab33a2bb5f revert previous - better do a bulk build with this change first to see
if/how much stuff is dependent on it.
2009-10-21 18:00:00 +00:00
tnn
33518e0113 remove lib/charset.alias from CHECK_FILES_SKIP 2009-10-21 17:00:33 +00:00
joerg
013ced16d3 Add wrkref check for using the .buildlink or .x11-buildlink
subdirectories. Update comment on the default checks.
2009-09-02 14:43:06 +00:00
agc
d07c430fe5 Get rid of an abstraction violation which has been in the tree since
March 2008. Not vital, but the previous way does not scale well/at all.
2009-07-26 05:32:43 +00:00
tnn
ddc47f016a fix typo in comment 2009-06-18 14:51:55 +00:00
minskim
ecb0f805f1 Remove a redundant "$" from a grep pattern. 2009-05-08 20:46:29 +00:00
uebayasi
c166eebbec Fix check-wrkref path.
_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
2009-01-12 13:11:22 +00:00
rillig
c448324760 Oops. 2008-12-15 12:28:49 +00:00
rillig
9a009cf3a3 Made the code shorter.
The info messages can be omitted. At least for ELF binaries, the code is
sufficiently stable.
2008-12-15 11:03:49 +00:00
rillig
0e70dc215e Removed unused variables. 2008-11-18 21:58:22 +00:00
joerg
8f45797884 "Downgrade" checkperms dependency to a normal build dependency.
This way it doesn't have to be installed for make checksum etc.
to run.
2008-06-22 22:05:19 +00:00
tnn
29fefc1b76 Enable USE_CHECK_SHLIBS_ELF on FreeBSD. Aleksej Saushev PR pkg/38606. 2008-05-13 11:40:24 +00:00
joerg
630dcf7283 Enable USE_CHECK_SHLIBS_ELF by default on DragonFly and NetBSD. 2008-03-09 13:47:08 +00:00
rillig
0f02165471 Removed colons from variable names so they are accessible to "bmake
help".
2008-02-20 10:43:55 +00:00
rillig
5530265343 After being deprecated for 16 months, SKIP_PORTABILITY_CHECK is now
obsolete.
2008-02-20 10:27:35 +00:00
rillig
5f7de0ffaa Removed colons for the sake of "bmake help". 2008-02-20 10:23:26 +00:00
rillig
c18f3fed81 Added a new check for binaries, so that they are installed according to
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-13 15:02:20 +00:00
rillig
339e8ef931 Adjusted the documentation to the source code. 2008-02-13 08:33:08 +00:00
tnn
8a03a4df4f Enable check-fakehome.mk. 2008-02-10 11:44:48 +00:00
tnn
d91ec32482 Enable fake home directory support. Also add a wrkref check because an
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-10 11:43:20 +00:00
adrianp
d08d9e77fe Skip ${PREFIX}/emul/linux32/proc.* as well 2008-02-08 23:13:35 +00:00
rillig
66736dde43 Replaced _PKG_SILENT and _PKG_DEBUG with RUN. 2008-02-07 21:36:13 +00:00
tnn
96ef75e1dd No need to walk the whole directory when checking for emptyness.
From Robert Elz.
2008-02-05 11:17:00 +00:00
tnn
3b84dc1b5a This is the check part of the fake $HOME code. Not enabled yet. 2008-02-05 09:45:00 +00:00