5242 Commits

Author SHA1 Message Date
espie
4130dac3d2 be more specific in the transient KILLED (stuck) messages. 2019-06-21 23:14:05 +00:00
espie
dc0666d520 changing ids and chrooting only happens during exec.
turns out my setup has links so that dpb -R is happy in chroot's...
and no ownership issue either.

Fix it so it works.

Also put the uptodate check earlier since that's internal.
2019-06-17 10:55:37 +00:00
sthen
99f375612e reserve 838 for i2pd 2019-06-16 21:48:30 +00:00
espie
61aec1363b PERMIT_DB has been obsolete for 3 years, use PLIST_REPOSITORY 2019-06-16 14:27:42 +00:00
ajacoutot
b0ab384fa0 Unbreak:
Error: newgroup _thingsd: not registered in ports/infrastructure/db/user.list
Error: newuser _thingsd: not registered in ports/infrastructure/db/user.list
Fix UID/GID.
2019-06-16 13:17:45 +00:00
robert
0a0cd75912 add _odoo for the incoming www/odoo port 2019-06-15 12:11:14 +00:00
espie
f46a8e84a8 oops thx pavel 2019-06-15 12:05:37 +00:00
espie
f1b1bfacc6 missed localhost normalization as noticed by naddy@
should fix wipe on localhost
2019-06-15 07:41:46 +00:00
kmos
96a882e309 Update Portgen to use the new-style PERMIT_PACKAGE and PERMIT_DISTFILES
instead of the older PERMIT_CDROM and company.

OK sthen@ kn@
2019-06-12 19:25:53 +00:00
sthen
2e3564786f fix typo, found by a rather lightweight ports-INDEX, due to
DBD::SQLite::st execute failed: NOT NULL constraint failed:
_Ports.PERMIT_DISTFILES at /usr/ports/databases/sqlports/files/Inserter.pm
line 196.

s/PERMIT_DISTILES/PERMIT_DISTFILES/
2019-06-04 13:34:10 +00:00
espie
19e74411fd fix stupid 2019-06-03 23:10:57 +00:00
espie
a1a1007a0b move to new PERMIT 2019-05-31 21:29:52 +00:00
espie
7271781869 phase out old PERMIT_* variables.
We won't be distributing CDROM anymore, so simplify to
just PERMIT_PACKAGE / PERMIT_DISTFILES

In particular, the new variables are shorter, so this makes
for better cosmetic sense in ports.

The "current" version allows for the old variables to die out
peacefully, at our leasure, and then I'll remove the old stubs.

As discussed with sthen@, various people agree, and deraadt@
is okay with the strategic change.

This does survive a bulk.

PLEASE NOTE: built packages require current pkg* tools.
In particular, the current version deals with
@comment pkgpath=* ftp=*
just fine, but the old one WILL COMPLAIN about missing cdrom info.

register-plist also doesn't care, adding/removing cdrom info
is a no-op for it. There is NO BUMP needed for the conversion.

For now, sqlports STILL carries the old variables. I'll deal
with their removal later.
2019-05-31 21:27:03 +00:00
espie
403a94589f PORTS_PRIVSEP requires setting up SUDO anyway, so provide a default
okay kn@, solene@
2019-05-30 17:23:46 +00:00
jca
2909f6b660 Add aarch64 to GCC49_ARCHS, missed in the update to gcc-8.3.0
Unlocks ports who require ports-gcc (eg gfortran) on aarch64.  Spotted
by and diff by Martin Reindl (martin@), input from sthen@
ok sthen@ phessler@
2019-05-30 15:02:05 +00:00
naddy
2104208938 When switching to a non-default linker with USE_LLD, check whether
that linker (ld.bfd, ld.lld) actually exists, otherwise skip the
port.  ok jca@ sthen@
2019-05-28 20:08:17 +00:00
espie
6340a7e9de have register-plist remove cdrom info seamlessly 2019-05-28 19:41:48 +00:00
espie
a2006cf82c fix badly out-of-date stuff, should probably just finish manpages
and GC this
2019-05-25 21:50:38 +00:00
tj
d57aa484f3 out-of-date was renamed to pkg_outdated 2019-05-25 21:25:31 +00:00
naddy
ebf751b927 Update gettext to 0.20.1.
Follow the upstream recommendations for packagers and switch to
multi-packages:
devel/gettext       -> devel/gettext,-runtime
devel/gettext-tools -> devel/gettext,-tools
(new)                  devel/gettext,-textstyle
2019-05-20 22:15:00 +00:00
espie
c8fc6304c3 TaskFactory works better with a hint
noticed by kili@
2019-05-19 21:26:03 +00:00
espie
be6ed619a9 kill the whole pg each time.
figuring things better doesn't work, and it seems to do exactly
what's required in each case.

do that for stuck jobs as well

fix a long standing oddity where stuck jobs wouldn't log but spew
error messages instead.
2019-05-19 17:34:18 +00:00
espie
a24793e9ad style tweaks, no functional change 2019-05-19 12:41:42 +00:00
espie
61320b2481 cosmetic tweak 2019-05-19 08:48:58 +00:00
espie
f498788223 I'm such a doofus, explicitly pass 0 parameters to cleanup,
explicitly 0 parameters to cleanup, otherwise we inherit those from parent.
2019-05-19 08:27:30 +00:00
espie
85ce11ef7a the jobs we start usually live in their own process groups.
So check that, and killpg when applicable
2019-05-18 22:24:50 +00:00
espie
6388e49043 implement two new related options, -c and -I (documentation to follow)
tweak the actual plist writer to do two passes:

first pass actually determines object names, and second pass
does the writing.

That way, the first pass can create "canonical" names where
${MODPY_PYCACHE} vanishes, and the second pass can sprinkle
@comment in front of the duplicate dirs.

okay afresh1@
2019-05-18 18:53:48 +00:00
espie
fe4efec349 make code clearer, do not declare a 2nd local i. 2019-05-17 10:24:18 +00:00
espie
000fc58334 put empty_backsubst into its own function.
fix buglet: call adjust anyhow (from afresh1@)
2019-05-17 10:04:13 +00:00
afresh1
1a49c3e766 Clean up PyPI get_deps method in portgen
Should be no functional change
2019-05-16 16:01:10 +00:00
afresh1
af13d26f36 Have portgen attach MODPY_FLAVOR only if dependency has python3 flavor
go with it, cwen@
2019-05-16 16:00:08 +00:00
afresh1
15cd7b9a1d Reset python3 FLAVOR in portgen
When python ports move from python 2 + 3 to only a single version
or the other way we need to reset some values for that to take
effect.

go with it, cwen@
2019-05-16 15:55:47 +00:00
espie
64ea107e2b more user input validation: dead hosts can't wipe 2019-05-15 13:55:46 +00:00
espie
7443990ca9 stop lying, we are not creating a new host.
incidentally: wipe can't wipe locks from a different
configuration with a host that's not actually running.
2019-05-15 13:53:17 +00:00
espie
b774514f73 get trace to cleanup its children as well (pass them an INT signal) 2019-05-15 13:51:07 +00:00
afresh1
ba382dbfba Improve EXTRACT_SUFX detection in portgen
OK cwen@ kmos@
2019-05-14 15:00:01 +00:00
naddy
1622b80ebb Introduce CONFIGURE_STYLE=autoreconf.
This runs autoreconf (or a command of your choice, like autogen.sh)
at the gen stage.  It implies "gnu".
ok espie@
2019-05-14 14:59:56 +00:00
espie
93d690cffa prevent update-patches from mangling files in case of permission errors 2019-05-13 20:39:07 +00:00
sthen
752c890209 Whine if somebody sets PKG_ARCH=* and there are files in the plist matching
*.so.*, *.so, or *.a. Probably most likely to do this by mistake with p5-*
things if copying too much from an existing port, or some multipackages
cases. ok afresh1@ kn@
2019-05-13 20:07:15 +00:00
cwen
0866aba594 portgen: bring back camel-cased port names for Perl
OK afresh1@
2019-05-13 01:30:05 +00:00
kmos
0238a02a64 Adding ISC license to the list of "good" licenses.
OK afresh1@
2019-05-13 00:21:29 +00:00
espie
d009a872de I wouldn't put PORTSDIR_PATH in my environment instead of
/etc/mk.conf, but... why not ?

allow passing it thru, solving naddy@'s problem
2019-05-12 20:40:20 +00:00
afresh1
0e6031f4ee Improve complex dependency version understaning in portgen
While here, improve python test dependency detection.

OK cwen@
2019-05-12 20:23:33 +00:00
afresh1
d1db37cb98 Avoid configuring ports without trying to find depends in portgen
Especially python setup.py ports that try to download depends themselves.

OK cwen@
2019-05-12 16:38:15 +00:00
espie
b7bbcb0cdf lock parsing errors should not happen, put them in debug.log along with other
generic debug info.
2019-05-12 16:37:52 +00:00
espie
dc7cd9f744 rename "finished" to "errored" so it has clearer semantics
modify the PortBuilder -> Job::Port interface so that differences
are obvious.

tweak wipe to avoid wiping what we're currently actually running,
and also clean the "right" flavor in case we gave a wrong pkgpath name.
2019-05-12 14:09:11 +00:00
espie
1d99433f5a try to avoid thinko, give me a fullpkgpath getter
mark that "cleaned" is (more or less) finished
2019-05-12 13:39:46 +00:00
espie
d7cfce1dc5 new socket command: wipe fullpkgpath
locate lock, run clean on the appropriate host,
THEN remove lock and affinity information.
(this creates a temporary core that is not tracked)
2019-05-12 12:12:53 +00:00
espie
53bfbe08f9 wakemeup can contain the lock_order 2019-05-12 11:20:57 +00:00
espie
73534e9b6e on premature exit, try to kill our existing children by sending them
the proper signal and waiting for a bit.

Some scaffolding left (verbose) to allow more precise debugging
2019-05-12 10:37:04 +00:00