Commit Graph

53 Commits

Author SHA1 Message Date
espie
5828a721c7 rename REGRESS -> TEST
shorter, less ambiguous (as discussed with some porters)
there will be a sweep to fix all regress.

keep "make regress" as an alias for "make test".
2013-03-10 22:27:15 +00:00
espie
7843107e9a minor tweaks:
- make sure PKGDIR exists prior to making READMES, allows using update-plist
before creating DESCR and stuff
- list-distinfo target, to allow dpb to fetch stuff non locally eventually
- zap addsum
- check that all files in distinfo are actually accounted for in DISTFILES
and SUPDISTFILES
2013-03-02 13:08:49 +00:00
espie
3468bf1fd7 allow unlock to be called with SUBDIR= 2013-01-06 11:57:21 +00:00
espie
f9ad29c2e9 tweak things a bit... no need for an extra _fullpath variable.
also, use a broken() function to simplify THAT particular shell fragment.
I've been running with this for ages...
2012-10-10 10:55:33 +00:00
espie
a6da6e2d7f slow architectures might clean /tmp too eagerly, move the default
LOCKDIR to a local location that's less susceptible to surreptitious
cleanup, that is under WRKOBJDIR

after discussion with sthen@
2012-08-18 07:58:20 +00:00
espie
27f4c3dc4f forgot cruft from readmes 2012-05-28 09:43:17 +00:00
espie
b6c9f9baf3 zap old readmes infrastructure, replaced by new age databases/ports-readmes
which is ways more accurate anyways.
2012-05-28 09:38:04 +00:00
espie
7bc86a3598 whine for pkgpaths with extra / 2012-05-15 11:48:07 +00:00
halex
1fbdcad4e3 call exit 1 after cleanup in signal traps, or the shell keeps running after
SIGINT and friends

ok espie@
2012-05-07 21:11:43 +00:00
espie
958fa76f4d kill fetch-makefile here too 2012-02-17 07:40:35 +00:00
espie
1c7aab78c9 sort -u requires one parameter to not hang on stdin...
allow SUBDIR=archivers/arc make show-prepare-results to work
2011-12-02 15:14:20 +00:00
espie
55ef3a8806 dpb refuses multiple subpackages in a pkgpath, there's no reason for
pkgpath.mk to do otherwise.
2011-11-20 15:38:08 +00:00
espie
2334188bc1 oh, hum... use TMPDIR instead of hardcoding it. 2011-11-19 11:36:53 +00:00
espie
cb960e35d0 mv _cache_fragment to pkgpath.mk
create a new category of recursive targets that can use this fragment,
and use them, e.g., print-package-signature from top-level should benefit
a lot.
2011-11-19 11:33:39 +00:00
espie
e8b4473500 setting PKGPATH in pkgpath.mk is not enough, pass it thru the environment
as appropriate.

(typical make package would call getpkgpath 15 times instead of 1!)
2011-11-17 17:53:22 +00:00
espie
2517b318eb speed-up dependency checking a bit:
- resolve-lib -needed, less perl invocations (gains a lot)
- show-run-depends, less fancy than run-dir-depends, a bit faster...
- don't create cache for internal targets (external stuff already did it)

define _PERLSCRIPT in pkgpath.mk since getpkgpath should use it...
2011-11-15 20:08:36 +00:00
espie
520b395530 a bit more micro-optimization: allow print-plist-libs-with-depends 2011-11-14 10:29:58 +00:00
espie
a08bf6b41e tweak the flavor_fragment stuff to be able to specify "hey, if there's no
flavor, it means it's empty and not the default one". Useful for tools
that reuse saved fullpkgpaths.
2011-09-24 07:36:02 +00:00
fgsch
f33f72e660 add repackage to the recursive targets.
with input and ok espie@
2011-03-28 00:16:13 +00:00
espie
c7b6b23044 tweak logic slightly to avoid duplicate error messages which make no sense 2011-03-22 19:56:51 +00:00
espie
e544151d8e allow things to proceed after flavor_fragment in SUBDIR handling.
Also puts the FULLPKGPATH in extra_msg to figure out where bad dependencies
come from
2011-03-20 19:28:07 +00:00
espie
a4f88880eb - add check-register, that basically does print-plist
- switch motif to WANTLIB
- start warning about old style LIB_DEPENDS. It's time !
2010-11-07 00:03:38 +00:00
espie
ff7b318b8c turns out dpb doesn't need this in the end... 2010-10-28 11:14:23 +00:00
espie
7eded3e86b pass FULLSUBDIR around, to eventually allow dpb to distinguish between
empty and default stuff.
2010-10-18 08:32:21 +00:00
espie
3e43c2d160 move LOCKDIR default to pkgpath.mk since it's shared with Makefile.
fix one missed dolock.

Thanks naddy@
2010-08-20 23:11:07 +00:00
espie
34fb20b43d use scripts from bin 2010-08-20 15:02:24 +00:00
espie
da03d678c9 print-plist-contents | grablibs appears often enough: combine them as
print-plist-libs
2010-07-06 12:09:55 +00:00
espie
3f48860b4c fix and recommit, my bad. 2010-04-20 21:00:35 +00:00
espie
8565ca1737 provide a _MAKE internal that does the cd ${.CURDIR} && exec,
use it to avoid the obj/ problem in /usr/ports.
provide a _MAKESYS internal for bsd.port.mk with SYSTRACE too
2010-04-20 10:03:36 +00:00
espie
c52b023249 don't know how this broke, but make it work again (and more sturdy against
multiple commas)

noticed by aja
2010-04-05 13:59:03 +00:00
espie
228149426e support for more stats in dpb, basically harmless 2010-03-05 07:49:29 +00:00
espie
f7f5b4ff0a some important improvements to bsd.port.mk
- simplify IGNORE handling, always define it, even when NO_IGNORE is set,
and only use it for the targets it's meant to influence.
- make it possible to multiply-IGNORE a port, so stuff that's BROKEN and
NOT_FOR_ARCH will show up as both.
- DESCRIBE_TARGETs can die, since we no longer need special IGNORE dance
for them.
- add an IGNORE_IS_FATAL tweak, so that ignored ports can actually error out.
- reorg dump-vars to choose what to show, including new IGNORE, and COMES_WITH.
- name an explicit prepare step, which does check build dependencies and
install them (useful for build timing purposes)
- move the do-fetch test out, so that we can add pre-extract and do-extract
there eventually.
2010-02-12 12:00:19 +00:00
espie
5552fa34d2 maintainer usability: some targets are usually not invoked recursively,
but they can (sometimes) be useful: add DANGEROUS knob to prevent running
them accidentally, but allow people to run makesum/update-plist/update-patches
recursively.
2009-07-26 12:14:05 +00:00
espie
d4209be428 new "convenience target": update-or-install (all)
Basically, make update without the tests that prevent it from running when
stuff is not installed yet.
2008-07-26 10:59:20 +00:00
espie
5b18fe959e ... works much better if I commit pkgpath.mk as well... 2008-07-03 17:00:38 +00:00
fgsch
537c203d29 allow port-lib-depends-check to be recursive; espie@ ok. 2008-05-23 16:53:28 +00:00
espie
59ea16ab14 no reason for fetch-all not to be a recursive target 2008-05-17 11:02:22 +00:00
espie
7e5366d9fb no reason not to allow install-all as a subdir target, so...
allow it!
2008-05-13 14:52:44 +00:00
espie
43c841c254 avoid recomputing ARCH all the time. 2007-07-08 17:57:56 +00:00
espie
9eb5a6bae5 tweak getpkgpath to display a diagnostic, but not exit 1, in case of
error.

Do the real erroring out through a fatal error in pkgpath.mk (and set
PKGPATH to something less confusing than an empty variable). This
solves PR 5510 for real.
2007-06-28 21:05:47 +00:00
espie
1196a0d7f3 reorganize to avoid repeating lists of targets:
classify stuff that is used in bsd.port.subdir.mk, name them in pkgpath.mk,
and use them as .PHONY targets in both bsd.port.mk and bsd.port.subdir.mk.
2007-06-03 12:51:59 +00:00
espie
8b31dd60d8 use a simple perl script to compute initial pkgpaths... Cwd can replace
pwd -P, and we select the longest prefix from PORTSDIR_PATH.

This lets mystuff-like dirs get stripped from PKGPATH correctly, as long
as PORTSDIR_PATH is set correctly.
2006-12-26 15:00:24 +00:00
espie
26075e9de6 move TMPDIR to pkgpath.mk to allow its use from both bsd.port.mk and
bsd.port.subdir.mk

Use absolute paths to build readmes files, based on READMES_TOP, which
can be (or not) PORTSDIR.

Generate category readmes in tmp directory as well.

minor clean-ups
2006-12-02 11:27:46 +00:00
espie
926c904147 same formatting clean-up as bsd.port.mk 2006-11-27 15:38:01 +00:00
espie
19abee34c6 revert. called from bsd.port.subdir.mk as well, which doesn't define
TMPDIR.
Noticed by steven@
2006-11-03 23:19:42 +00:00
espie
ac93b5a9b2 zap a few non relevant lines, make _ALL_VARIABLES* internal.
Use TMPDIR in pkgpath.mk
2006-11-01 12:41:34 +00:00
espie
ee210c3e4e move REPORT_PROBLEM to pkgpath.mk so that we can use it from bsd.port.mk
as well.

Add the target to the default problem reporter.
Report problems while building dependencies.
2006-07-08 09:20:30 +00:00
espie
94f6ed8d7c alek@-friendly error messages. 2005-11-03 19:32:25 +00:00
espie
005b234dc8 streamline flavor_fragment after trying to explain it to sturm@.
it makes more sense to have a subdir variable as input, split it
into toset and dir as output, and to unsetenv FLAVOR SUBPACKAGE along
the lines.

End result should be equivalent, but slightly more readable.

no objection from my neighbors either...
2005-11-02 20:30:12 +00:00
naddy
56823d7f5d prevent leak of custom IFS value from shell fragment; ok sturm@ 2003-08-28 21:50:12 +00:00