Commit Graph

4184 Commits

Author SHA1 Message Date
espie
d89dbf2f77 interactive mode will have a different startup file, so that you can
configure it to not delete everything (particularly useful if you start
a dpb -i in another window while dpb is in session)
2015-08-16 08:39:23 +00:00
espie
33d8c81512 stub_out broken entries instead of deleting their info.
May help out with some warnings sebastia@ is seeing.
2015-08-16 08:36:53 +00:00
espie
4b4ca54be2 simplify/fix PrepareResults. Use setup to record the correct position in
the log file.

problem noticed and sleuthed by nigel@
2015-08-16 08:35:39 +00:00
espie
ae9c50e860 missing conversion. Problem noticed by sebastia@ on vax. 2015-08-11 22:39:57 +00:00
espie
8c58cabcdf open path files with logger user.
noticed by krw@
2015-07-28 09:20:54 +00:00
espie
587180b006 grab a few more things off our ports tree introspection. Locally PLIST_DB.
Distantly, WRKOBJDIR and LOCKDIR, so that we can pass these off to a startup
script to ensure correct user.

The distant stuff has to happen at the right moment, after whoami, so that
we don't try to use doas/sudo unnecessarily...
2015-07-27 17:19:46 +00:00
ajacoutot
96f90d4e76 Sync template with recent rc.subr(8) changes. 2015-07-24 07:29:12 +00:00
bentley
154fbf5d6f Typo fixes and lint cleanup in ports manpages, from Michael Reed. 2015-07-23 08:05:18 +00:00
naddy
e6e7ddd42a switch dpb from sudo to doas (and env as required); ok sthen@ 2015-07-21 05:10:12 +00:00
espie
e2c3b93cb4 dont error out if we can't write into permanent log.
found out by naddy@
2015-07-20 20:14:45 +00:00
jasper
efa72518dc accept '-D' 2015-07-19 21:44:16 +00:00
naddy
626cc84e5e pass PORTSDIR_PATH through to make-plist so it will be honored by
update-plist; ok espie@
2015-07-19 17:31:44 +00:00
espie
ad8c61476a document the existence of _dpb, _pfetch, _pbuild. 2015-07-18 12:57:24 +00:00
espie
be98f1e7a5 if _dpb exists, use it as a default unpriv_user 2015-07-18 08:35:37 +00:00
espie
f6c3f3f239 oopsie found by naddy. 2015-07-17 20:11:45 +00:00
ajacoutot
cab3bc80ff No more _apache2. 2015-07-17 19:52:14 +00:00
sthen
724a731ad7 reserve uid 755 for librenms, most of the files it needs to write are done
from cronjobs rather than web, so no need to share www for most of these.
2015-07-16 02:49:21 +00:00
sthen
0bb06dcfee Add some common PIE tests to config.site to our cache in config.site;
this prevents some ports from adding their own flags to force PIE.
On arch where PIE is known to work on OpenBSD we are setting the compiler
to produce PIE object code by default so in those cases this is a noop,
and should fix a few ports where arch don't work with PIE yet (e.g. arm).
Discussed with naddy@ jca@
2015-07-16 01:56:14 +00:00
espie
60d3f80425 tweaks 2015-07-15 15:41:41 +00:00
espie
256e2de28a rework documentation to show running dpb as root as the preferred mode of
operation.
2015-07-15 15:03:06 +00:00
espie
40ccf288f7 move the tracing code into its own file. save traces/warning message in
debug.log.
2015-07-15 14:30:26 +00:00
espie
3eec4383e0 make the default better. If dpb starts as root, use the owner of the ports
tree as a build_user.

Also shows all the users that dpb uses (locally).

(port_user is to be used by an interactive mode eventually).
2015-07-15 14:28:08 +00:00
espie
c02d57ff83 kill a bit of debug scaffolding, and log junk-proxy with 'J' as normal.
less complexity
2015-07-14 08:17:38 +00:00
zhuk
23940f0fa7 Catch usage of variables representing user settings. The list of settings
is taken from bsd.port.mk(5).

Idea inspired by recent commits on ports@ and supported by sthen@.
2015-07-05 12:26:26 +00:00
espie
eae55793ed document the junk-proxy addition 2015-07-05 10:53:00 +00:00
espie
7c34de513e clean-up "force junking": do not prepare a host to be untainted with the
"wrong" port, but instead, create a pseudo-path that is just there to run
junk (will be logged as junk-proxy)

fix a bug in the task handling host locking (no next task -> unlock, duh).

do not log multiple K for several ports on the same basepkgpath.
2015-07-02 08:04:22 +00:00
naddy
04ae06c254 Remove MASTER_SITE_MYSQL and replace its only use in the ports tree
with a few of the listed mirrors.  ok sthen@ giovanni@
2015-06-26 20:48:59 +00:00
naddy
0b35630c61 remove MASTER_SITE_BERLIOS, unused and the site is dead 2015-06-25 21:51:31 +00:00
bentley
6ec677c236 Update Packetstorm mirrors.
ok naddy@
2015-06-24 07:34:59 +00:00
espie
3b3b8b157b document there's probably still a problem, so I don't forget to fix it. 2015-06-23 14:22:50 +00:00
espie
26f5f459b3 repair forced junking
always go thru taint/untaint, so that source should always be correct
2015-06-23 09:01:56 +00:00
espie
c20f0c64fb remove debug scaffolding 2015-06-23 08:52:20 +00:00
espie
cff48ff52b tweak taintedness:
- fix actual bug in PortInfo
- restrict defined tags to !empty tags (shouldn't happen)
- track the source from locks as well.
2015-06-23 08:51:53 +00:00
naddy
a8ba7bd058 introduce MASTER_SITE_XORG and switch over all ports that reference
ftp.x.org; idea and ok matthieu@
2015-06-22 20:15:32 +00:00
jung
d3b86c54cc add user for upcoming net/geomyidae port 2015-06-22 15:48:20 +00:00
espie
fab15b9291 future interactive option that does nothing whatsoever so far... 2015-06-22 12:20:06 +00:00
espie
f45103cfeb move the taint mechanism outside of "main" code.
more stringent checks... there's still a bug somewhere, hope to catch it
2015-06-22 12:19:38 +00:00
espie
ee1f6ec3ce expand on comments 2015-06-22 12:18:50 +00:00
espie
bbaa1424c3 expand on comments 2015-06-22 12:18:19 +00:00
espie
e776b6f373 expand on comments, reorder code.
better diagnostic if one distfile checksum isn't consistent.
2015-06-22 12:18:00 +00:00
espie
dbbaf40347 do an extra mode that will first scan the ports tree, and then extract only
the plists that are current.
took longer than expected because I found a bug in my setup...
probably going to be more code to say "hey, these current packages depend
on not current".
2015-06-22 09:33:03 +00:00
naddy
c64ce4cbb5 drop ftp.sunet.se, which is shutting down; ok jca@ 2015-06-20 19:54:22 +00:00
espie
0b5b5a74d6 cosmetic 2015-06-17 07:31:44 +00:00
espie
40499f8bbe do detain distfiles as well as paths (need to track them over rescan)
also, since distfiles are "always fetchable", need to check for detained
files before checking for "already done", since already done will want to
check the size...
2015-06-17 07:31:25 +00:00
espie
853ce1b8f7 tweak logic a bit: recheck sz and sha each time we encounter the same
distfile (error out if things are not consistent)

Fix bug: properly forget sz, give rescan a chance
2015-06-17 07:30:17 +00:00
espie
3761b1390f document x/X for detained/released paths 2015-06-16 17:04:47 +00:00
espie
b30d135992 save PKGPATHS in stride with PKGNAMES, to be used for quick introspection
purposes.
2015-06-11 09:26:01 +00:00
espie
5e55c60de7 handle distfile failure better.
- we do rescan paths anyway, so make sure we queue only path.
- forgetting distfile details does not get around caching, so do creation
of distfiles in two times. cache is there to ensure unique distfiles, and
we can still forget details.
To do: remove distfiles from queue during forget, because there's no longer
any detail there.
2015-06-11 08:42:38 +00:00
espie
0f0fe4d98f bye bye, use check-problems now 2015-06-10 09:06:25 +00:00
espie
3aa7f6f85f documentation for check-problems, and description of sample output 2015-06-10 09:04:07 +00:00