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
25362a8808
prevent top-subdirs from ignoring flavor and subpackage markers
2012-02-17 07:41:22 +00:00
espie
26b5c343e3
remove that check for now, something in pkg_create chain is not sanitizing
...
its environment...
2012-01-21 19:07:20 +00:00
espie
9971f34ba5
prevent some errors I've run into recently
...
- add ERRORS framework to bsd.port.subdir.mk
- trying to add a FLAVOR or a SUBPACKAGE to an intermediate SUBDIR is an
error (see editors/vim-spell,af recently)
- re-including bsd.port.mk/bsd.port.subdir.mk after either of them is an
error (can happen when one moves stuff to Makefile.inc without really thinking
about it, ends up with PKG_ARGS holding some contents twice and make package
erroring out with duplicate contents)
2012-01-21 14:44:40 +00:00
espie
4cab976e61
zap old junk
2011-12-12 14:52:02 +00:00
espie
3aa1b0516a
unzap the ECHO_MSG
2011-11-19 11:43:05 +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
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
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
43c7b1a093
use new make feature :QL for safer quoting.
...
helps getting past shell quoting errors, so that the infrastructure
will report actual trouble (is also simpler than :S/<...>/ for pkgspecs).
REQUIRES CURRENT MAKE TO WORK!!!
2010-07-24 10:35:38 +00:00
naddy
a2c9a774ff
Remove redundant variables OPSYS and OPSYS_VER.
...
OPSYS was always "OpenBSD", the ports tree doesn't cover other
operating systems.
OPSYS_VER was the same as OSREV.
ok espie@
2010-07-18 18:49:01 +00:00
espie
e00097ed08
also prevent SUBDIRLIST from escaping, as noticed by kili@
2010-05-09 21:41:40 +00:00
espie
303bd978e6
pattern I use a lot: start right after a given dir.
...
Easy to do.
2010-05-01 10:27:56 +00:00
espie
5b287b6cbf
make sure SUBDIR doesn't escape into individual ports directory.
2010-04-20 10:02:39 +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
7112ac8117
add support for MATCHDIR: will only recurse into dirs that match the
...
pattern...
2009-04-11 14:56:31 +00:00
espie
db7f3a147c
say exactly WHAT was skipped, instead of giving the pattern
2009-01-24 11:32:43 +00:00
espie
7a9f1afb15
add message that shows we exited a directory after an error, stops log there
...
during rebuilds.
2007-08-25 07:56:04 +00:00
espie
43c841c254
avoid recomputing ARCH all the time.
2007-07-08 17:57:56 +00:00
espie
3c826c4a33
rework the way subdirs are skipped so that they're skipped a the right
...
location.
Allows stuff like make ... STARTDIR=x11/openmotif SKIPDIR=x11/openmotif
to work.
2007-06-30 14:31:00 +00:00
espie
7f62033c1e
zap duplicate lines
2007-06-03 22:25:01 +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
e55de40a3f
handle exact matches on STARTDIR.
...
allows `partial' STARTDIR, such as make describe STARTDIR=x11/kde
to work as expected.
2007-04-28 10:19:41 +00:00
espie
04b97b2f22
STARTDIR functionality: allows one to skip directly to a given directory
...
and start from there.
2007-04-07 09:55:13 +00:00
espie
bc0a71b1bb
remove stupid hack that makes _print-packagename display README on
...
subdirs. Confuse the hell out of broken dependencies, and is not
even needed.
fix typo.
2007-03-19 21:32:35 +00:00
espie
5efd6b68e4
duplicate the print-plist targets, add a version -with-depends, which is
...
slower, but shows dependency lines as well...
Also fix target evaluation to work like it does elsewhere
2006-12-18 12:52:34 +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
1ef50b337c
avoid ignoring ports while running a `describe' target.
...
triggered by setting DESCRIBE_TARGET=Yes in bsd.port.subdir.mk
2006-11-13 13:55:10 +00:00
espie
7564143ca2
shorten dependency names, so that regress and run can share.
...
add print-plist-all, for better introspection (to be used by pkg_mklocatedb).
2006-11-11 16:10:36 +00:00
espie
7be15550f4
add regress-dir-depends/full-regress-depends, similar mechanism to
...
run-depends, only the basic test changes.
2006-11-05 15:46:51 +00:00
espie
a80884552e
Allows calling print-plist from main Makefile
2006-10-15 09:48:05 +00:00
espie
dd168a8754
introspection mechanism: dump-vars
2006-07-09 11:10:16 +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
naddy
f3521c1b69
propagate name change of loop variable to shell fragment
2005-11-10 15:11:12 +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
espie
202146d6ab
add print-package-signature
...
suggested by bernd@
2005-09-23 08:26:21 +00:00
espie
26181a5f81
add REPORT_PROBLEM_LOGFILE, okay naddy@
2005-04-19 08:55:32 +00:00
espie
45ac58f0f3
newlib-depends-check recurses as well
2004-11-21 11:28:31 +00:00
espie
e39dc1ae33
mark update as .PHONY target, necessary with UPDATE_COOKIES_DIR ;-)
2004-11-15 13:53:43 +00:00
espie
f2ae2fd4b7
allows it to recurse.
2004-11-10 10:23:42 +00:00
sturm
82dfd19593
add 'patch' to handled targets
2004-09-26 09:59:14 +00:00
espie
c35cfd38ae
silence echo in recursive work, so that tsort no longer sees confusing
...
===> directory entries.
2004-04-07 13:06:33 +00:00
espie
39171fc37f
update .PHONY list to match reality.
2003-08-15 00:35:10 +00:00
espie
08fa6014ce
advisory license-check: warns if a package is apparently built from bad
...
sources. Will returns some false positives.
2003-08-11 20:10:41 +00:00
espie
c75167d854
Fix INDEX building. Trickery that allows ECHO_MSG='echo 1>&2' to work again.
2003-08-08 23:56:13 +00:00
espie
7e71f84147
kill .USE, use common shell code instead.
2003-08-04 15:05:24 +00:00
espie
c07bda5739
oops, make sure SKIPPED is set immediately, otherwise it won't show.
2003-08-04 14:54:29 +00:00
espie
4fb6f7fb2a
smart recursion over clean depends.
2003-08-04 14:45:31 +00:00