Commit Graph

968 Commits

Author SHA1 Message Date
espie
3ea520053a when using peek-ftp, I often start with make show=DISTFILES, so save myself
the trouble.
2009-07-13 12:21:44 +00:00
landry
27251dbdc9 systrace isn't too happy when WRKOBJDIR contains a symlink, which can
happen often (/usr/ports NFS mounted & /usr/ports/obj a symlink to a
local dir, /usr/ports as a symlink to /home/wherever..)
Use readlink -fn only if USE_SYSTRACE is set so less things are run when
bsd.port.mk is included. Should make everyone happy.

Issue reported by and original fix ajacoutot@, sounds reasonable to espie@
2009-06-17 13:42:49 +00:00
sthen
df3fbaad7d set RECURSIVE_FETCH_LIST to No by default. ok sturm, ajacoutot, espie. 2009-06-12 17:26:51 +00:00
landry
861925b221 Provide saner defaults for WRKOBJDIR, using ${PORTSDIR}/obj. No more w-*
dirs forgotten all around. One can still unset it in /etc/mk.conf to get
back to the older behaviour, or still override it with /usr/obj/ports or
/usr/wobj or whatever. At least, now it can be a separate partition.
Most of us were already overriding this value, OpenBSD is all about sane
& simple default settings.
${PORTSDIR}/obj suggestion from jakemsr@.
Discussed at length with several, 'Works for me' krw@ ok todd@ wcmaier@.
2009-06-12 13:39:30 +00:00
espie
3cb8b96f11 don't export brutally everything from bsd.own.mk into each port's Makefile,
but select some variables instead.

checked by naddy@ on a bulk-build.

(apart from making stuff less easy to break, it also means Makefiles stop
inheriting a WIDE set of .PHONY targets, which is a good thing)
2009-06-09 17:46:58 +00:00
simon
f9808159d2 allow ports to set REGRESS_IS_INTERACTIVE=X11 in order to get rid of
redundant makefile parts found at many places in the tree

DISPLAY and XAUTHORITY variables/checks to be nuked soon from many ports

ok ajacoutot@, sthen@, jasper@
2009-05-16 22:18:50 +00:00
martynas
fb518f37e5 make "doesn't seem to exist on this system" and "Size matches for"
implicit;  since they filled the whole screen making important stuff
unnoticable.  ok espie@, sthen@
2009-05-05 20:58:38 +00:00
espie
3286c9fba0 remove trailing dot 2009-04-24 08:53:33 +00:00
espie
b466c39b7a minor tweaks:
- totally forbid overriding do-fetch
- slightly better diagnostics in a few cases
2009-04-11 14:55:31 +00:00
ajacoutot
126913162c - fix some unquoted shell expansions
this fixes an old bug where package creation would fail if one has some
particular file under PKGPATH because it would give pkg_create the wrong
args

from Wim Lewis on ports@, thank you!
"looks right" sthen@, "sounds reasonable" landry@, ok jasper@ espie@
2009-01-05 12:43:49 +00:00
espie
65e7dd9971 somewhat better error indications after some user feedback ;) 2008-11-18 11:45:41 +00:00
bernd
5f93c223a6 Add SUBPACKAGE to _ALL_VARIABLES. ok espie@ 2008-10-25 15:06:26 +00:00
espie
79bdb256c9 add a possible convenience link to the WRKDIR
*solely* as a facility for people working on the ports tree.
not to be used for anything at all in the ports tree itself !!!
since it's not protected against any kind of race.
2008-09-19 13:00:30 +00:00
ajacoutot
13ef0005f6 - add ^TRUEPREFIX to the generic SUBST_VARS
"go ahead" espie@
2008-09-17 13:42:10 +00:00
simon
bd1e06cf76 Redirect regression output so we get the actual exit code instead of the
last one in the pipe to make sure failed regression tests don't bake a
cookie when REGRESS_LOG is set (default).
Also redirect stderr to regress log and introduce REGRESS_STATUS_IGNORE
variable so post-regress targets like found in cpan.port.mk can do the
actual failure detection.

Problem noticed by bluhm@, latching of exit code suggested by steven@

Testing, feedback and ok on earlier version by bluhm@, 'go for it' espie@
2008-08-20 10:33:50 +00:00
espie
9442611200 add clean=build: incentive to use SEPARATE_BUILD, as this allows you to not clean up the source, but only phases from configure up... 2008-08-20 08:56:53 +00:00
espie
409b0bc6fb NOT_FOR_ARCHS as dump-vars, to allow sqlports to perform better 2008-08-19 23:49:32 +00:00
espie
7d70a8b03f typo 2008-07-29 17:54:52 +00:00
espie
7c4a60e481 we have too many old distfiles -> too many links.
instead of storing links directly as
sha1/digest
allow them to be in
by_digest/sha1/di/digest

so the number of links will not grow that fast
2008-07-29 11:25:44 +00:00
espie
4649ae2bfa new update-or-install target needs to have dependent subpackages built as
well.

Incidentally, this is also an issue with update: in some cases, the update
target wouldn't work (specifically, when dependencies had changed).
Fix it as well.

There might be a need to revisit the DEPENDS_TARGET stuff later, this is
a bit of a kludge...
2008-07-26 12:23:43 +00:00
espie
6a61504833 INSTALL/DEINSTALL obsolete for multi-packages as well 2008-07-26 11:22:59 +00:00
espie
a44d1d9c1e _FMN is a terrible acronym 2008-07-26 11:16:04 +00:00
espie
e38014bf41 INSTALL/DEINSTALL are completely obsolete now (been deprecated for over
a year)
2008-07-26 11:14:07 +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
sturm
28942b6f0b honour ftp_ and http_proxy for FETCH_PACKAGES
ok espie
2008-07-03 17:36:47 +00:00
espie
8e680d768f make full-*-depends targets invocable at the subdir level, as requested
by ajacoutot@
2008-07-03 15:43:22 +00:00
fgsch
13bf7688dd fix fetching files from MASTER_SITE[0-9]. found earlier by me during
a full port-lib-depends-check and later reported on ports
by Tim Donahue (tdonahue at vonsystems dot com). espie@ ok.
2008-06-06 01:17:13 +00:00
fgsch
0ae2ac563d ignore ports marked as such on port-lib-depends-check. rearrange targets
while im here. espie@ ok.
2008-06-05 08:14:00 +00:00
espie
95097113a0 add a bit of glue so that mirror-maker will be able to use the same locks
as the rest of the tree
2008-05-18 11:22:14 +00:00
espie
64d146b5bf remove intermediate targets we're no longer needing 2008-05-18 10:05:21 +00:00
espie
b6f6bdaee7 compute a set of missing files to show a better message for FETCH_MANUALLY
(got annoyed at java each time I had to figure out WHICH file got updated
and I had to fetch out of... the ten of them)
2008-05-18 09:58:09 +00:00
espie
eac6cf7b3c simplify computation of MAKESUMFILES: start with what's already been done,
and just append to it.
2008-05-15 10:09:29 +00:00
espie
456b53e76f hide ALLFILES and REALLY_ALLFILES, they have confusing names anyways 2008-05-15 09:57:03 +00:00
espie
377f320ea8 clean-up fetch/fetch-all framework 2008-05-15 09:51:17 +00:00
deanna
2b77239a61 Add X11BASE to SUBST_VARS
ok espie@
2008-05-12 14:45:48 +00:00
espie
5e19e9e080 slightly simpler hook loops: use :U just once, since it applies to
every word. Also use :T to select the final word of the PKGPATH, so
that hooks work seamlessly for `non-core' modules, thus removing the
need for most modules to be core.
2008-05-11 19:36:12 +00:00
espie
5caea536bd put back a default definition of FAKE_FLAGS, for style, since this did not
break anything.
2008-05-11 11:19:19 +00:00
espie
321669c708 conform to other hook naming. 2008-05-11 11:12:09 +00:00
espie
b9752adc83 sanity check: one CATEGORY should match the PKGPATH.
Surprisingly, this catches about 20 ports with their pants down.
2008-05-08 22:35:51 +00:00
ajacoutot
690b31ffc5 - add ^LOCALBASE to SUBST_VARS; now that SUBST_CMD is here, this will
become handy

ok espie@
2008-05-06 19:20:16 +00:00
espie
7ede32a06c use a trap to remove the tmp file, thus helping making sure it does not
stay around
2008-05-04 12:58:03 +00:00
espie
58b1418be0 make the lock on distfile more useful. In case we got stuck in the
SIMPLE_LOCK for a while, this means something else is fetching
the same distfile, so first check whether our target actually exists
before we try to fetch it all over again.
2008-05-04 12:53:14 +00:00
espie
2c22929416 extend VAR_SUBST syntax slightly: a supplementary ^ at the beginning of
the variable subst means the subst shouldn't occur anywhere, but only at
beginning of name... useful for backsubst of SYSCONFDIR, since etc is so
frequent. Extended to other variables such as PREFIX.

tweak make-plist to use OpenBSD::Subst.

*this means this only works with current, but you've had a week to update...*
2008-04-12 13:04:21 +00:00
espie
3a17c26da8 add support for SUBST_CMD 2008-04-07 11:12:42 +00:00
pvalchev
ce69f8a036 'sh' now has shared libs; from brad 2008-03-29 01:58:33 +00:00
espie
bf85c6df5a make it possible to lock/unlock manually a given directory.
This can be used to work on a port update while building other stuff
without risking the global build from interfering until the update is
finished.
2008-01-12 14:12:43 +00:00
espie
9ca2e064cf do the same thing with REGRESS_FLAGS as FAKE_FLAGS 2008-01-04 18:38:51 +00:00
espie
17d70806a3 tweak FAKE_FLAGS semantics to saner defaults. 2008-01-04 17:48:33 +00:00
espie
e0c15c5448 scaffold for running make in parallel, to be documented soon. 2007-12-28 12:49:12 +00:00
espie
4cdccf971e add a PKGDB_LOCK that can be used by pkg_add to -F nolock in src/ build
mode.
2007-12-28 12:46:03 +00:00