espie
bcd255ce0a
fix gid switch
2015-05-02 15:59:06 +00:00
espie
48cc88307a
future round-robin mode, one user per-build.
2015-05-02 13:12:39 +00:00
espie
909f468aca
use the per-user Core thingy: make sure fetch cores are built with the
...
default prop, and set them to run as fetch_user, so that I can remove
the explicit run_as in the ftp command.
2015-05-02 12:55:43 +00:00
espie
f9b1a4dee9
allow setting user thru the Core (for future round-robin builds)
2015-05-02 11:04:38 +00:00
espie
f9b218eeb3
document -m
2015-05-02 11:02:54 +00:00
espie
57cc189b56
give a -m option to dolock, since it can create directories.
2015-05-02 11:00:37 +00:00
espie
e2f35e7d02
move the user handling code to a separate file.
...
remove "run_as" for open, we can do things directly.
More explicit code on open.
2015-05-02 09:44:40 +00:00
espie
70de7e8c72
fix creation of path log files
2015-05-01 20:49:46 +00:00
espie
d40042f30e
lock_user is not needed, defaults to log_user for all practical cases
2015-05-01 19:42:54 +00:00
espie
b3c33570ab
document ownership of files if you want to separate build/fetch/log
...
zap lock_user, which isn't actually of any use.
2015-05-01 19:41:42 +00:00
espie
c019fe9a6b
explain the make_path mechanism
2015-05-01 18:29:02 +00:00
espie
2c469073c2
give size logs to log_user.
2015-05-01 18:27:43 +00:00
espie
7d48bbacf4
document the !sudo building model
2015-05-01 18:07:31 +00:00
espie
49981f277f
color display is there to stay as an option
2015-05-01 17:52:00 +00:00
espie
795a501ff4
remove debug scaffolding. Found the bug (elsewhere, not surprisingly)
2015-05-01 15:41:52 +00:00
espie
f8d8faa9ef
slight cleanup
2015-05-01 09:03:20 +00:00
espie
ad230f14e0
tweak the tweak
2015-04-30 21:43:28 +00:00
espie
5296a6691e
a few more "tweak the user" for fetch handling
2015-04-29 13:28:36 +00:00
espie
388883bea1
display more junk info for now, trying to track down things
2015-04-29 10:59:03 +00:00
espie
017830ee1c
blabla that doesn't matter
2015-04-29 08:18:42 +00:00
zhuk
12625bcdea
Handle lib/foo/bar and MOD* variable (un)expanding better.
2015-04-28 14:11:03 +00:00
zhuk
074d37fcb8
Another helper routine that I don't want to add back and forth each commit.
2015-04-28 14:10:18 +00:00
espie
1f51a7929e
in a bizarre twist, since we store umask an an octal string, we need
...
to convert it back to use the built-in properly.
2015-04-27 17:01:37 +00:00
espie
c148e02ce4
more or less "the final" dpb pieces for fetching as a separate user.
2015-04-27 13:32:57 +00:00
espie
c52298ee5b
move the check for sudo to "just-in-time" when actually used, so that
...
we can build WITHOUT sudo.
2015-04-27 12:52:01 +00:00
espie
0163547b4f
reexpand will work much better with the correct anchor
2015-04-27 08:14:20 +00:00
zhuk
8a02908944
Extract common code for taking "stem" of WANTLIB item, and add support
...
for lib/foo/bar syntax.
2015-04-26 19:17:37 +00:00
espie
e94eae598f
use UserProxy and make_path method.
...
Have the default host handle chroot correctly.
(still a bit of fetch to fix)
2015-04-26 18:00:19 +00:00
espie
107eee3773
Add a way to make_path with uig/gid.
...
Add a way to run local jobs as another user.
2015-04-26 17:36:20 +00:00
zhuk
9a3abc4aca
Add WANTLIB tweaking functionality (options -l, -W and -w).
...
Initially requested, tested and many input from sthen@, who also suggested
to continue this work in-tree.
2015-04-26 12:22:49 +00:00
espie
6968205389
do minimal discovery before reading config files, then do full discovery.
...
allow things like proper chroot in the config file only.
2015-04-25 14:24:03 +00:00
jasper
d42f9ea727
provide a dummy start_build() for DPB::SubEngine::NoBuild; this prevents a
...
crash when removing a lockfile in a fetch-only (nobuild) run.
ok espie@
2015-04-25 12:43:32 +00:00
espie
e06efd44da
make most of the creatio files code able to change identity so that logging,
...
locking don't happen as root.
Still need to do the fetchfiles/package linking part.
2015-04-25 11:40:58 +00:00
espie
f823ed0adf
don't forget to copy all the users for later
2015-04-25 11:40:06 +00:00
espie
1184eb9bae
more users, for later
2015-04-25 11:32:42 +00:00
espie
446fd12db9
don't bypass the logger method
2015-04-25 11:25:08 +00:00
espie
3286531cff
zap duplicate redirection, was harmless
2015-04-25 11:24:24 +00:00
espie
4444edc95e
a bit of cleanup: building the host properties is totally separate from
...
building the host (especially ensure overrides/finalize is run together).
Do default handling in a saner way, and use that to get a build_user
(and soon a log_user, a fetch_user).
Add run_as scaffolding to allow logging properly when dpb is run as root
(to be used soon)
2015-04-25 11:23:20 +00:00
espie
d14016b0b5
figure out whether we're running as root on localhost, and then do most
...
things internally (chroot, setuid, etc)
2015-04-25 10:07:19 +00:00
nicm
81baec9d23
Use objdump(1) rather than file(1) to detect binary and shared object
...
files.
ok espie
2015-04-22 14:03:43 +00:00
zhuk
af8de2124f
Mark PKG_ARCH as indexed (i.e., MULTI_PACKAGE-specific) as it should be.
...
Tested in a bulk build by landry@ - thanks!
okay espie@
2015-04-22 07:07:19 +00:00
espie
8c4240d8d0
make things cleaner and less magical
2015-04-21 13:00:00 +00:00
espie
a91c124bcc
setting the stage for further changes
2015-04-21 09:53:13 +00:00
espie
6444679ec9
start reorg the way we handle users.
2015-04-21 09:23:57 +00:00
espie
954aba1596
commonalize check for option values...
2015-04-21 08:19:52 +00:00
zhuk
fb64f1df0c
Switch from Getopt::Std to OpenBSD::Getopt. No functional change for now,
...
except error message text in case of unsupported option being used.
Will be needed soon by upcoming changes.
2015-04-18 18:59:48 +00:00
espie
ffd33fb22c
typo, make sure full diagnostic message goes out
2015-04-16 15:49:29 +00:00
zhuk
e14d0e9114
Add check for top-level categories being spelled properly.
...
Inspired by recent talk with jasper@, which in turn was a result of my
own mistake done under x11/kde4.
No objections received.
2015-04-15 08:15:42 +00:00
zhuk
4cd00e1953
Make sure that GH_COMMIT is 40 chararacters length.
...
This is a leftover from pre-lock times, added after a few problematic
GH_COMMIT got in (fixed a while ago).
2015-04-12 18:37:23 +00:00
jca
6f4a6d3c46
Book a seat for net/knot.
2015-04-12 14:57:52 +00:00