1908 Commits

Author SHA1 Message Date
jca
04197b1fe1 Add powerpc64 to LLVM_ARCHS
from Brad
2020-08-11 08:27:24 +00:00
kettenis
1e4c58a117 Add support for powerpc64.
ok naddy@, jsg@
2020-07-12 07:59:48 +00:00
sthen
6992f5117a update search.cpan.org -> metacpan.org, from cwen@ in 2018,
similar diff from Yozo TODA. bumps to follow.
2020-07-03 21:42:55 +00:00
espie
5918cd90f0 add a PKGLOCATE_COOKIE that will be filled in by update-plist
turns out update-plist already groks -D thanks to inheriting from
common code!
2020-06-26 11:51:16 +00:00
kn
26fdc586a0 Liste failed patches at the end of "make patch"
Updating bigger ports with lots of patches, combing the target's output
for failed hunks can be cumbersome;  print failed patch files one per line
iff there are any to provide immediate feedback on what wrong and where.

"definitely wanted" landry
Style nits, OK espie
2020-06-16 13:41:42 +00:00
espie
84a844882e add REGISTER_PLIST_OPTS
to be used to allow various things
2020-06-09 11:01:08 +00:00
paco
2c326f8b33 add FIX_CLEANUP_PERMISSIONS and enable it by default on go.port.mk when
using MODGO_MODNAME.

This is needed to work around this issue:
https://github.com/golang/go/issues/27455

which makes `make clean` because of the restrictive permissions.

input and corrections from sthen@ and jca@
ok sthen@ jca@ espie@
2020-06-08 13:16:26 +00:00
espie
5c9ecb1ee7 fix some PORTS_PRIVSEP tidbits:
UPDATE_COOKIES and BULK_COOKIES are not generated by dpb, but if you
build stuff manually and use dpb, they can happen, and you will see error
messages in dpb logs (trying to remove them as _pbuild), so give them
to _pbuild/tweak fix-extract-permissions accordingly.

Also fix an old feature where you can force UPDATE_COOKIES into WRKDIR
which got broken a long time ago.

Thanks to solene@ for tests
2020-06-01 08:41:36 +00:00
kn
487d2b660a Make make modifiers work in verbose-show
OK espie
2020-05-29 19:38:09 +00:00
espie
53c96ec8e1 neuter strip if DEBUG_PACKAGES is set
tweak the path for copy-debug-info  so we don't accidentally neuter
THAT strip as well.

this helps getting cmake/qmake do the right thing without needing to
alter strip behavior.
2020-05-20 12:57:10 +00:00
kn
c65b8a6855 Add EXTRACT_FILES
Allow extraction of specific files only rather than all from distfile.

OK sthen espie
2020-05-18 18:18:33 +00:00
espie
a259946345 dist cleaning should match make fetch, namely also remove any left-over
.part files

as noticed by f.holop...
2020-04-20 11:49:57 +00:00
espie
95e3a02abb separate the debuginfo property from its use to zap DEBUG_PACKAGES
out of existence: arch-defines.mk MUST be included very early on, so that
modules can use it to decide on behavior, BUT modules are allowed to set
DEBUG_PACKAGES without worrying about it, and so bsd.port.arch.mk must be
the place that zaps!

Discovered by sthen@, because xfce4.port.mk would start churning out
DEBUG_PACKAGES on every architecture.

tested by naddy@  because I wasn't sure I didn't miss something non obvious.
2020-04-16 19:33:29 +00:00
sthen
1b6958f340 enable debug packages on aarch64; ok kmos@ jca@, "go ahead" phessler@
They do result in a bulk package build taking about a third longer, but
the bulk build machines are significantly faster than the machines most
people are running the produced packages on, so it's a trade-off: a bit
of pain for builders vs a lot of pain for users wanting to debug things
on their normal hardware.
2020-04-15 14:25:57 +00:00
sthen
5030bccdd4 bump _SYSTEM_VERSION for arm and aarch64, the ABI was changed in February
to address a speculative execution issue and old binaries can no longer be used.
ok phessler@
2020-04-15 13:45:02 +00:00
espie
a6cd76d399 fix build-debug-info so that it works with MULTI_PACKAGES with distinct
PREFIX.

Specifically:
- stop tweaking PREFIX for build-debug-info
- have build-debug-info use -B instead
- generate Makefile with full paths
- tweak the sequence in bsd.port.mk to NOT pass FAKE_SETUP around

This fixes got
2020-04-08 09:15:39 +00:00
espie
4f6822b7ff constrain EXTRACT_ONLY to be an actual distfile, so that we can be sure
it was checksummed.
(noticed on a port where EXTRACT_ONLY was a full file name and no longer
in distinfo, but still in DISTDIR)

thx naddy@ for making sure it didn't break in a bulk
2020-04-08 09:10:00 +00:00
espie
6228c0a5a6 fix typo 2020-04-06 14:43:57 +00:00
espie
4f32234919 work-around current make limitation
fixes abieber's issue
2020-04-06 14:32:14 +00:00
sthen
3db8e8f070 Adjust arch-defines.mk for PowerPC switch to Clang/LLVM as default compiler.
From Brad, ok jca cwen.
2020-04-04 19:35:44 +00:00
espie
5ecfac8bcf don't use mktemp, we don't really need the random name, and it's harder
to get decent permissions
noticed by kili@
2020-03-31 21:18:33 +00:00
espie
2f332e01a7 oops, forgot CACHE_REPO in the committed version.
pointed out by our semi-anonymous friend (Lucas who ?)
2020-03-29 15:06:05 +00:00
espie
dfcb157ef7 /tmp/cvseSzodp 2020-03-29 12:11:45 +00:00
espie
5ae9691a7e use dwz to shrink debug packages by default
okay sthen, landry
2020-03-26 14:54:17 +00:00
espie
fb231dbdcd prepare for using dwz, but do not use it yet 2020-03-24 17:33:43 +00:00
espie
ddec8f851d activate DPB_LOCKNAME 2020-03-24 15:01:04 +00:00
espie
5a484d1b13 let's use a proper mktemp idiom for makesum 2020-03-11 16:46:34 +00:00
espie
ea2d970f94 generate distinfo.new then mv it to distinfo, instead of the other way
around, so that you can ^C an erroneous makesum that wouldn't change
anything before the end.
2020-03-10 17:15:19 +00:00
espie
c6d476f9b3 kill the other part of flavored SEPARATE_BUILDs that sthen missed 2020-03-06 15:21:25 +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
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
01ce559a97 don't rerun build-debug-info all the time, as discussed with sthen@ and
pirofti@
2020-02-20 16:48:03 +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
764605fcee pass WRKOBJDIR thru so that pkg_create can holler on some mistakes 2020-01-26 12:51:47 +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
espie
16c8437688 make DEBUG_PACKAGES slightly less confusing for modules 2019-12-16 09:18:27 +00:00
espie
df22749e9b This is non obvious enough, document 2019-12-14 10:58:54 +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
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
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
sthen
36eb147a1a oops, adjust previous to unbreak (needed _BUILDLIB_DEPENDS in addition
to BUILD_DEPENDS rather than replacing)
2019-12-02 12:02:05 +00:00
sthen
0660d1cde0 Change the gettext-tools poisoning to use _BUILDLIB_DEPENDS instead of
BUILD_DEPENDS and simplify (it's always defined, so no need for a "is defined"
check).

Although it's not used often there is now an external-facing library
that is part of gettext-tools so it's valid to have it listed as a LIB_DEPENDS
rather than a BUILD_DEPENDS.

_BUILDLIB_DEPENDS suggested by espie@ naddy@ as an improvement to my more
complex and less complete "check BUILD_DEPENDS and LIB_DEPENDS" which ignored
multi-packages.
2019-12-02 11:38:22 +00:00
espie
0ab1dbdef3 for the packaging step
- don't use $@D so that we can put two targets in there
- set a variable to add the debug package to the targets

This fixes behavior in the very specific case the normal package was already
built without DEBUG_PACKAGES and you're repackaging with DEBUG_PACKAGES set.

okay landry@
2019-12-02 10:36:51 +00:00
espie
c1024b8fcd update the internals with a few more details 2019-12-01 09:36:29 +00:00
espie
609569ab04 better if I build the correct package :/
sorry guys, broken debug packages
2019-11-26 11:49:02 +00:00
espie
efd273d5a8 rename p into pkgname, so I do not need an extra temp variable
move checksum_package to the final loop, so *only* final packages
will get checksummed
2019-11-24 12:54:12 +00:00
espie
703ae9ad93 restore logic to NOT register debug packages
noticed by aja@, thx
2019-11-24 12:23:22 +00:00