4378 Commits

Author SHA1 Message Date
espie
ffbbe7d386 completely kill PLIST_DB here. After all, it's new stuff,
so people should be able to adapt quickly.
2016-05-23 13:36:25 +00:00
nigel
e7abffef2d DPB::FetchDummy needs forget_cache routine.
Ok espie@
2016-05-22 11:41:56 +00:00
espie
41cc111b6a grrrr cvs. thanks krw 2016-05-21 19:38:44 +00:00
espie
cc2f4890f5 keep a global cache of distfile checksum while scanning, allows us to avoid
rescanning the same distfile 50 times...

also display elapsed time at end of build (cosmetic) since that's now trivial
2016-05-21 12:20:10 +00:00
sthen
ebee45dcf4 reserve uid 775 for letskencrypt 2016-05-21 10:40:45 +00:00
espie
252e212c37 switch to PLIST_REPOSITORY, keep PLIST_DB glue for a few days 2016-05-20 09:55:25 +00:00
espie
955e97ab1b fix incorrect handling of config info,
repair full signatures (with X11R6 libs too)
2016-05-20 09:09:15 +00:00
espie
3973d1b6f1 make it possible to directly add lines at end of generated mk.conf.
make option handling more obvious, no actual change.
2016-05-19 13:40:27 +00:00
espie
22d5f84c7f reexplain the directories that need to be shared, use % constructs more
liberally, remove references to old log files. Talk further about rolling
logs, introduce proot, fix confusion with FULLDISTDIR.
2016-05-18 13:49:32 +00:00
espie
f7a06e7e44 ports like firefox-i18n have huge common distinfo located thru ../distinfo.
let read_checksums normalize the path so they get recognize as one file.
-> parse it once instead of 40 times.
also, remove the old `next if md5/sha1' test, it was always just an
optimization, and becomes a pessimization now that these are gone.
2016-05-18 06:35:38 +00:00
espie
31775ef126 typo in conversion 2016-05-17 16:23:02 +00:00
espie
1d55b5f977 PORT_USER is required for checkout_ports (cryptic error noticed by juanfra) 2016-05-17 16:16:17 +00:00
espie
b4e5bf6a64 tweaks to heuristics
1/ do subdirs on the command line first
2/ ignore errors from "preferred" dependencies (and don't register anything)
if there are actual errors beyond paths that no longer exist, we'll get them
during the next pass.
2016-05-17 14:50:36 +00:00
espie
ef0785fc1a propagate emptyness property from PLIST_DB into PACKAGE_REPOSITORY 2016-05-17 13:38:25 +00:00
espie
f03fa7d75c Introduce PLIST_REPOSITORY, to be more similar to PACKAGE_REPOSITORY
(makes sense in cluster bulk setup contexts)
okay sthen@, landry@ (after thinko fix)
2016-05-17 13:33:21 +00:00
espie
4c52369cd9 fix (for now) 2016-05-17 13:14:45 +00:00
espie
3388fc4cfd change drastically the way LISTING starts up: let dependencies be a permanent
log.

Now that we can SKIPDIR, doing a first LISTING for most important dependencies
is not a trade-off for the full listing.

It allows dpb to start building most important stuff right away, so that
your machines start earlier.

Caveat: if that list of dependencies changes (ports renames), then you will
see errors because ports no longer exist.

I figure I have time to make errors in the first listing "not relevant"
before that becomes an actual issue.
2016-05-16 13:47:18 +00:00
espie
2495ed5e36 use skipped dirs for initial build 2016-05-16 10:37:44 +00:00
espie
99f013d34f fix log (missing \n) 2016-05-16 10:37:22 +00:00
espie
84584cc7af add SKIPDIRS semantics: automatically add visited dirs to a passed skip
if it's not empty
2016-05-16 10:28:14 +00:00
espie
c5dddced40 better days display. somehow I thought perl would work like C and do
integer division.
2016-05-16 09:50:59 +00:00
landry
c747155a34 reserver an uid/gid for upcoming facette port 2016-05-16 09:42:17 +00:00
jca
2b6787982d Use cmp -s and grep -q, instead of redirecting to /dev/null
ok espie@
2016-05-15 22:43:18 +00:00
espie
68b9904f01 support SKIPDIR internally 2016-05-15 22:24:56 +00:00
rpe
fa8d7a6eb0 fix typo
OK espie
2016-05-15 20:31:05 +00:00
espie
b14035b2b1 kill unused code (different users for each build) 2016-05-15 20:08:30 +00:00
espie
6154b12d66 variables for simpler dpb builds 2016-05-15 14:14:45 +00:00
espie
56d223a5ab cosmetic shit for aja instead of writing useful code.
okay aja@
2016-05-15 14:02:01 +00:00
espie
b7438ad0d0 have check_mount be removable as well (bad idea) and add
actions=none
to reset to nothing
2016-05-15 13:25:25 +00:00
espie
ca06a5e0c1 add a full-fledged example 2016-05-15 13:09:58 +00:00
espie
bfad938c68 document tweaks 2016-05-15 11:09:47 +00:00
espie
6db7739891 tweak interface, add extra to copy extra files,
mkconf_tail to add a tail to generated mk.conf.
zap copying doas.conf, which is not really that useful especially
since chroot is nosuid often.
2016-05-15 11:06:57 +00:00
espie
e0fc66e45a get rid of the last chdir 2016-05-15 10:24:38 +00:00
espie
cda8f8d456 remove more chdirs from the main process 2016-05-15 10:00:16 +00:00
espie
38a933b11a zap yet another chdir 2016-05-14 22:49:23 +00:00
espie
7904d3cb9f give an actual example with several values in a row 2016-05-14 22:46:53 +00:00
espie
45ed265b16 nfs shits on its pants again.
not even having readdir and open work synchronously on one single machine,
that shit is so lame.

noticed by aja@, ahaha.
2016-05-14 20:26:42 +00:00
espie
d4f4359484 just check for xn capability presence, don't try to Tputs it,
that doesn't work.
should fix some display glitches under tmux
2016-05-14 18:14:27 +00:00
espie
b280a55f4f smarter copy of sys includes, no chdir
don't copy obj/ or CVS/
2016-05-14 15:19:48 +00:00
espie
487a90448c start removing uses of chdir() in main process 2016-05-14 15:00:07 +00:00
espie
549ccc20b7 kill unneeded special case from copy_sys 2016-05-14 13:55:42 +00:00
krw
e29858b07d No .Pp before .Sh.
ok espie@
2016-05-14 11:29:09 +00:00
espie
e60df16782 copy doas.conf if it exists (convenience request from landry)
use devno to filter out mount points (more sturdy when symlinks happen)

FIX the regexp used for mount points which did kill unpopulate too much
2016-05-14 11:16:29 +00:00
espie
79bdd956dd not yet 2016-05-14 10:05:55 +00:00
espie
afa0dc0dd5 if one of your dirs is a symlink that doesn't point anywhere, then
stat will fail, which is okay for LOGDIR which only exists locally.
2016-05-14 09:19:09 +00:00
espie
4f9e4555ae accidentally broke preserved mountpoints, fix that 2016-05-14 09:04:40 +00:00
espie
fb8f1bf77c always do mkpath, THEN check for nfs mounts, so that non-existing
dirs (at first) get classified correctly.

thx aja@ for testing on a virgin dir
2016-05-13 22:40:28 +00:00
espie
8e5738a05a document new stuff 2016-05-13 17:26:08 +00:00
espie
06e0c3279c tweak user message, requested by dcoppa@ 2016-05-13 14:30:06 +00:00
espie
36978edd58 check for absolute symlinks in the chroot.
report anything that we don't know about (from the base system)
2016-05-13 14:17:24 +00:00