5469 Commits

Author SHA1 Message Date
sthen
8a28ff1600 reserve 848 for _loki 2020-03-07 10:01:32 +00:00
espie
c6d476f9b3 kill the other part of flavored SEPARATE_BUILDs that sthen missed 2020-03-06 15:21:25 +00:00
sthen
ece4503448 update MASTER_SITE_ISC, s/ftp/downloads/ 2020-03-06 12:00:17 +00:00
giovanni
040d338a3b reorganize MASTER_SITE_APACHE
ok sthen@
2020-03-06 11:03:57 +00:00
sthen
56727c35c7 bsd.port.mk: remove remnant of old SEPARATE_BUILD=flavored experiment.
Use FULLPKGNAME rather than just PKGNAME in the lockfile, allowing manual
builds to be run with multiple flavours in parallel.  ok espie@
2020-03-06 10:49:00 +00:00
espie
c2837d28c1 way better with correct precedences 2020-02-27 16:06:06 +00:00
espie
2d1ef323ad if a distfile is incomplete, some parts will be removed
I used to have "site" always set, but it takes space for broken files,
so I removed it, and it breaks in case distfiles are incomplete.

So, just make it possible for some things to go missing, and properly test
for them later.

Noticed by jca@
2020-02-27 15:53:35 +00:00
espie
e2a82816d0 much crisper signature messages.
- add a parameter "full" so that we don't show version mismatches twice
- remove host name from information, since the order is the same as the header
line.
- beautify by doing a line feed after banner and indent by two spaces so it
tends to fit on the line
2020-02-27 13:50:13 +00:00
espie
147744929a fix initialization order. Reporter MUST be setup before running Core::Init,
as the library checker in Signature uses myprint to show errors.
2020-02-27 11:48:17 +00:00
espie
52e4bd6f54 show control socket name (without path) on the main line, along with a shorter
"elapsed" message
2020-02-27 11:37:53 +00:00
espie
201e8ea072 I've had this in my tree for a while, let bsd.port.mk sanitize BUILD_DEPENDS
values for us, and use the cleaned up value for noconfigurejunk related
to automake (we can use internal variables in bsd.port.mk, obviously)
2020-02-26 15:34:48 +00:00
espie
5c6d5dbbc6 "poison" passing SUBDIR/SUBDIRLIST on the command line. It should be
in the environment like FLAVOR, SUBPACKAGE, as it needs to be unset in
recursion.

(fixed known users first. If I missed any, fix is easy)
2020-02-26 15:32:45 +00:00
espie
f06a675c92 fix SUBDIR handling in portcheck 2020-02-26 15:28:10 +00:00
espie
2497dfc0ac write a proper pipe handling for running make, with actual error handling
return the full output of make as an array each time.

mainly done because SUBDIR should be passed in the environment, otherwise
some really funky things happen (ask kn@)

naddy@ approves the direction
2020-02-26 15:25:47 +00:00
espie
01ce559a97 don't rerun build-debug-info all the time, as discussed with sthen@ and
pirofti@
2020-02-20 16:48:03 +00:00
espie
9706a26a55 allow nodebug to do its work 2020-02-20 16:41:16 +00:00
espie
424755b857 copy "no debug" over 2020-02-20 16:33:45 +00:00
sthen
99ebea5310 nicer "Package(s) would be named" text that covers both singular+plural
without sounding awkward, from espie@
2020-02-19 17:53:18 +00:00
sthen
c3d0163748 Show PKGNAMES before importing, this might prevent some imports done with
bogus names.  ok tb@
2020-02-18 21:55:49 +00:00
paco
7b27801ab3 fix cvs error on the last step of portimport(1).
Thanks tb@ and stsp@ for the help

ok tb@, kmos@
2020-02-18 15:26:48 +00:00
kmos
1dadf56584 Increase threshold for marking a job "frozen" from 10 seconds to 45 seconds
"I would be happy with that" sthen@
ok espie@
2020-02-14 18:51:46 +00:00
cwen
2f3c95f158 bsd.port.mk: remove COMPILER_VERSION from MAKE_ENV, it is not needed
anymore.

As a side effect, it unbreaks multimedia/mkvtoolnix on !clang archs.

Proposed by jca@, bulk tested by naddy@ on amd64 (thanks again!), and
me on macppc.

OK jca@
2020-02-14 13:06:29 +00:00
sthen
f69d1135ed be smarter about GH_TAGNAME; when generating the default DISTNAME, only
strip a leading "v" when it's followed by what looks like a version number,
also have it handle a few other common names seen in ports. likewise when
stripping 'v' from the default WRKDIST, also allow 'V', but only if
followed by digits (which seems a better match to what github are doing).

update the few ports which _require_ updates to match this change.

been through a bulk on i386 (plus I've diffed "make dump-vars" run in
in all ports having GH_TAGNAME before+after applying the patch), ok jca
2020-02-13 22:19:35 +00:00
espie
602b0245b9 XXX comment something that's not obvious at all in retrospect.
the chicken&egg issue was clear when I wrote the code, but it's easy
to lose track
2020-01-31 12:18:14 +00:00
espie
0c933445d6 be slightly more stringent in checks. In particular, don't allow
PORTSDIR to be the default if we're called from bsd.port.mk
2020-01-30 19:51:56 +00:00
ajacoutot
e463a0c2ae Prepend https://download.gnome.org/ to MASTER_SITE_GNOME. 2020-01-26 15:47:59 +00:00
sthen
4a3b12fca8 recognize .otb (OpenType bitmap) as a valid font suffix. ok espie 2020-01-26 13:07:07 +00:00
sthen
e170101a55 set BatchMode=yes on DPB ssh connections. ok espie 2020-01-26 13:02:32 +00:00
espie
764605fcee pass WRKOBJDIR thru so that pkg_create can holler on some mistakes 2020-01-26 12:51:47 +00:00
bluhm
fc99496661 Implement an rc script for iperf3 that starts the server as a daemon.
Add the _iperf3 user for this process.
input kn@ ajacoutot@; OK sthen@ jca@
2020-01-23 00:36:56 +00:00
espie
dde9bbcb7d repair call to unlock in the "dpb run as root" case.
just use make_args to run make transparently
2020-01-18 10:28:25 +00:00
espie
0099224d2e fix logic in the case where the proot is straight under /
problem noticed by Xiyue Deng
2019-12-29 10:35:23 +00:00
sthen
d57d24ed23 Catch up with the documentation that espie@ recently added to
bsd.port.mk(5) and actually make LLD_EMUL empty if the linker is not
ld.lld. Use a simpler variable-name-based lookup table rather than
string manipulation in a loop. Diff was worked out with espie a
couple of weeks ago.
2019-12-20 20:00:30 +00:00
sthen
6b8d182a2c add a reminder to commit db/user.list if pkg/P* contains tags to add users/groups 2019-12-20 19:52:26 +00:00
espie
16c8437688 make DEBUG_PACKAGES slightly less confusing for modules 2019-12-16 09:18:27 +00:00
espie
f56ed279b2 strip and objcopy do not like bad permissions. Moreover, they will silently
drop a setuid bit AND not error out when they can't do stuff.

Fix the perms pre-emptively, so that aja@ can DEBUG_PACKAGES login_krb5

There are bugs to fix in binutils...!!!
2019-12-15 15:28:44 +00:00
afresh1
e49022c4a4 Centralize multi-value variable formatting in portgen(1) 2019-12-15 00:57:49 +00:00
afresh1
7f6e61979c Look for existing ports by stem in portgen
Also caches the sqlports connection and query

OK abeiber@
2019-12-15 00:18:04 +00:00
afresh1
ed6197337f Have portgen(1) set FIX_EXTRACT_PERMISSIONS if necessary
Idea and initial patch from cwen@
OK abeiber@
2019-12-15 00:15:30 +00:00
espie
df22749e9b This is non obvious enough, document 2019-12-14 10:58:54 +00:00
espie
20e9bc753e much better with the actual test... I'm a moron 2019-12-14 09:56:04 +00:00
espie
d8154adcb8 fold some of the common logic in write_rule
- do the dir check late, so we don't create .debug dirs if not needed.
- add an emptyness check, so that we can warn if we produce an empty
debug package, and advise to tweak DEBUG_PACKAGES manually if there are
several subpackages involved
2019-12-13 10:17:44 +00:00
espie
353a9aa5c7 buglet: directory info should be per-subpackage
explain why link handling has to be global
2019-12-13 10:01:55 +00:00
espie
479214b7b0 add INSTALL_DEBUG_PACKAGES user knob now that this specific configuration
works

(to be documented once I finish pkg_delete -a)
2019-12-08 11:51:56 +00:00
espie
a91bd3601e shorten the default message for copying.
The only weird stuff is for links, so keep the full message there
2019-12-08 10:33:19 +00:00
espie
3368c98d52 have cryptic message be explicit about what locate db we're talking about 2019-12-06 13:40:46 +00:00
sthen
206b5fa7b1 -.if !defined(MAKE_JOBS) && ${DPB_PROPERTIES:Mparallel})
+.if !defined(MAKE_JOBS) && ${DPB_PROPERTIES:Mparallel}
2019-12-05 22:07:36 +00:00
sthen
e506a46e80 Treat DPB_PROPERTIES=parallel as a hint that a port is parallel-safe
for use in regular builds too; if that is present in a port, use
${PARALLEL_MAKE_JOBS} jobs in the build, defaulting to hw.ncpuonline.

Adjust PARALLEL_BUILD=No, this originally seemed intended to be a hint
that a port could NOT handle a parallel build, but current usage is
"don't pass make -jXX because this port has its own way to handle things",
instead change this to a slightly more understandable PARALLEL_MAKE_FLAGS
variable. This defaults to -j${PARALLEL_MAKE_JOBS} but can be reset for
build system requirements as needed (java/libreoffice have their own
mechanism) and is added automatically to MAKE_FLAGS where a build uses
>1 concurrent job.

Based on a diff from / ok espie@ - the default value may want revising
as hw.ncpuonline jobs will be too many in some cases (e.g. machines with
many cores or low RAM), but committing at this stage to avoid further
out-of-tree bikeshedding. If you need to restrict to a lower number of
jobs, set e.g. PARALLEL_MAKE_JOBS=2 in /etc/mk.conf, and please provide
feedback.
2019-12-05 21:18:08 +00:00
pirofti
eb7e1d06b3 Use strip(1) instead of objcopy(1) to remove debug information.
Few people complained that stripped binaries are slightly
larger now than they used to be when debug packages are enabled.

My investigations show that this is because objcopy --strip-debug is
less efficient than plain strip(1) which is what we use for non-debug
packages.

Reintroducing strip(1) does not affect current debug packages behaviour
in my experience. The link to the debug symbols is still there and
egdb(1) still loads it automatically and displays all the debug info.

OK espie@
2019-12-04 11:34:29 +00:00
espie
92dbe205b0 simpler check for gettext dependency anywhere in BUILD_DEPENDS.
We're in bsd.port.mk, so we're allowed to use internals, and _BUILD_DEP
contains exactly what we need.

okay naddy@
2019-12-02 18:59:03 +00:00