Commit Graph

72 Commits

Author SHA1 Message Date
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
espie
63adb1a923 let *-dir-depends recurse globally, with one single file. 2003-08-04 14:37:48 +00:00
espie
df3c9aa7ce zap old targets and add new ones. 2003-08-04 14:16:53 +00:00
espie
1ee70309ea oops 2003-08-04 13:31:26 +00:00
espie
0f9ceae51e kill old readme (useless distinction).
Let make clean=readmes work.
2003-08-04 13:25:36 +00:00
espie
89a58c808d Fix SKIPDIR handling.
Make various variables not public.
Remove PORTSDIR definition, it's alredy in /usr/share/mk.
2003-08-02 09:58:11 +00:00
espie
9a700ec7a5 put _flavor_fragment into a separate file, that's included from both
bsd.port.mk and bsd.port.subdir.mk. Make sure flavors are properly
separated.

Change the way bsd.port.subdir.mk works, slightly: always set full directories.
- SKIPDIR with full paths will work.
- all dirs are displayed as full package specs.

Generate complete html files.
2003-08-02 09:53:27 +00:00
espie
d426e175d7 restore install 2003-07-29 22:27:09 +00:00
espie
bb5f00f090 kill lots of if !target.
Kill targets that don't apply to ports.
2003-07-18 18:18:15 +00:00
espie
a63ca19a8c Display something useful when a package location has been specified wrong. 2003-02-16 15:16:17 +00:00
naddy
a152719172 Rename DUDS to SKIPDIR for consistency with the base system; ok espie@ 2002-10-24 23:14:40 +00:00
avsm
97d7fd758e remove an unnecessary check for NetBSD
ok espie@
2002-08-29 18:35:40 +00:00
espie
5c6c013651 kill bulk-packages. Use `make package BULK=Yes' instead.
The main advantage is that workdirs are cleaned up as soon
as package is built (or installed), not later.
2002-04-17 15:58:48 +00:00
espie
ddaac90cab Add a target to check that makewhatis will build correct index entries. 2002-04-02 15:55:55 +00:00
espie
9775511ef0 Add rules to create a list of homepage links for all ports. 2002-03-13 13:51:59 +00:00
espie
5906a566ef First cut at a lib-depends checker: this version does use WRKINST instead
of the actual package, so it WILL get things wrong in some multi-packages
case.
2001-10-24 11:57:34 +00:00
espie
975eb63fc2 bulk-do, a slightly more generic version of bulk-packages 2001-10-24 11:47:41 +00:00
todd
16bf411ce4 add regress, ok espie@ 2001-10-08 22:04:43 +00:00
espie
c191588f7f Change WRKDIR name, to flatten things somewhat.
work-* is too long, because we want to include the PKGNAME in the dir name
(so that PKGNAME changes are less likely to work with old work directories)

Change the way clean works, so that you can say
make clean='dist depends packages' and have it do what you think it should
do.

Common fragment to _create_wrkobjdir.

Put some info into PACKAGING (name of subpackage being built)
2001-08-16 14:49:31 +00:00
espie
19d7809002 Lots of internal changes.
- define _FULLPKGNAME* and _PKGFILE*. Use _PKGFILE* as package cookie
instead of package_done.
- use ${PKG_DBDIR}/${_FULLPKGNAME${SUBPACKAGE}/+CONTENTS as install cookie.

- BIN_PACKAGES variable. If set to yes, remove coupling between
PACKAGE_COOKIE and dependencies, so that binary packages exist
independently of working directories.

- mark packages as precious.

- change all refs to PKGFILE to _PKGFILE${SUBPACKAGE}.
- add bulk-packages target.

Note that BIN_PACKAGES and TRUST_PACKAGES are off by default.
This interface is likely to change. The name bulk-packages will probably
change as well.

We will probably get rid of the old PKGFILE/FULLPKGNAME (taking SUBPACKAGE
into account) and use the new PKGFILE/FULLPKGNAME
PKGFILE-foo/FULLPKGNAME-foo instead (with explicit subpackage information).
This is less confusing and simpler.
2001-07-30 14:13:16 +00:00
espie
27a4fede8b REPORT_PROBLEM for non-existent dirs. 2001-04-20 15:00:04 +00:00
espie
701a95b5b2 Misc. small tweaks.
- let USE_MOTIF be sensible: any, openmotif, lesstif.
any triggers a lesstif flavor.
- show=name as a shortcut.
- package-dir-depends to check that packages are okay.

- error message for non-existent dirs.
2001-04-18 14:43:55 +00:00
espie
f7db65c8f4 Use same code as bsd.port.mk 2001-04-17 16:48:07 +00:00
espie
3b0481a403 New Features for NEW_DEPENDS:
dir-depends: list of SUBDIRS this port depends on (with flavors, subpackages),
to use with tsort.
build-depends-list, run-depends-list: list of pkgspec:dir needed for this
port, no recursion. To use for INDEX.
2001-04-04 08:17:31 +00:00
espie
11ff28f808 Restore REPORT_PROBLEM functionality.
I don't see what the hell sh is doing erroring out in an eval in a test,
even under set -e.
2001-03-28 16:37:27 +00:00
espie
a6396841cb Handle parsing the flavor/multi-package part internally.
Use eval to simplify passing those to submakes.

Note that the preferred separator is ',', not ':'.
(Because ':' can't be used unambiguously in *_DEPENDS, whereas ',' can)
2001-03-28 11:19:33 +00:00
espie
cd2b7ae81b Move DUDS handling to makefile level 2001-03-28 10:55:52 +00:00
espie
78564b0e02 link-categories/unlink-categories target:
populate ports tree with symlinks.
2000-12-16 15:49:12 +00:00
espie
0757d4020d Base _SEP on PKGPATH being empty, more robust 2000-07-26 12:47:16 +00:00
espie
f02479f386 Buglet: ensure PKGPATH is without a /.
This complicates bsd.port.subdir.mk slightly (needs to set _SEP),
but at least it's consistent.
2000-07-17 07:11:50 +00:00
espie
837cf24d7c Change PORTSUBDIR/DIRPRFX to PKGPATH (avoid gratuitous naming
incompatibility with NetBSD).

This patch rearranges code so that PKGPATH is maintained
- when recursing into subdirs,
- when computing dependencies.

So that this reduces the number of `pwd` calls overall.
Should be especially noticeable for mirror-maker.
2000-07-14 23:01:11 +00:00
espie
e0673fa6b0 Pass FLAVOR in the environment, to allow for some manipulations... 2000-06-24 14:12:33 +00:00
turan
8d0dc5836d spelling errors in all-packages target. 2000-06-18 23:35:02 +00:00
espie
25cc866faf Don't add FLAVOR='' to ports without flavor, let default be picked up
instead.

Allow for ',' as a FLAVOR separator instead of ':'
2000-04-16 20:10:21 +00:00
espie
2cb07b50e6 Flexibility in recursively entering subdirs. 2000-04-10 17:51:26 +00:00
turan
2c979f178d ftp-packages, cdrom-packages targets. These are the targets I use
to build packages and log them.
2000-04-09 12:04:13 +00:00