Commit Graph

1975 Commits

Author SHA1 Message Date
sthen
65e3d0fdb9 bump ports-infrastructure's _SYSTEM_VERSION on the archs where the
linker now uses exec-only by default - amd64, aarch64, riscv64,
powerpc64 - so that when packages are next rebuilt, pkg_add -u will
replace all packages with the new ones.

(additionally, the generated Makefiles to create debug packages changed
from binutils strip+objcopy to the LLVM versions to avoid damage done to
GNU_RELRO, so all packages which have debug-package support in their
build need to be replaced for that reason also; only aarch64 and amd64
have debug-packages so they're covered by the above bump too).
2023-01-30 12:45:34 +00:00
naddy
9f911e70d0 bsd.port.mk: use xz for decompressing .xz and .lz
Make use of new features in xz 5.4.0:
* Use xz, which now has upstream support for pledge(), instead of xzdec.
* Enable threaded decompression for ports that use parallel make.
* Use xz instead of lunzip to decompress .lz files.

ok kn@ sthen@
2023-01-18 15:14:52 +00:00
sthen
fb8ff56467 With some ports it's difficult to add linker flags, so reuse the ld wrapper
script infrastructure previously used for USE_WXNEEDED to allow adding
--no-execute-only by setting USE_NOEXECONLY=Yes in the port.

This isn't ideal for compilers (in cases where those can't be made to work
with exec-only they need patching to add to the internally constructed linker
command line, though it does at least help with initial testing there),
and is useful for some other ports.

ok tb@
2023-01-09 17:08:50 +00:00
visa
9e274d62dd Bump _SYSTEM_VERSION for mips64 again
There has been another ABI break since last snapshot build.
2022-12-10 12:37:27 +00:00
espie
611e38e1cb switch to using "=" for debug pkgspecs
(shorthand for "same as default" in current pkg_add
2022-11-16 17:42:18 +00:00
visa
a38996aac5 Bump _SYSTEM_VERSION for mips64
The ongoing work on mimmutable(2) causes an ABI break on the platform
and old binaries will not work.

OK sthen@
2022-11-09 15:17:31 +00:00
espie
eab8549545 remove the badly named, undocumented alias for "print-update-signature" 2022-11-01 10:55:54 +00:00
espie
027fa5ac02 a bit more internals I need to write 2022-10-28 09:35:03 +00:00
naddy
83c889fbf6 bsd.port.mk: g/c the mips64 pkg_args handling
Historically, bsd.lib.mk used to build lib*_pic.a libraries, except
on mips64.  Ten years ago, bsd.lib.mk stopped creating lib*_pic.a
files and the corresponding PFRAG.no_mips64 bits were removed from
the ports tree.  Remove the _PKG_ARGS handling that was forgotten
at the time.

From Brad, ok sthen@
2022-10-25 15:10:34 +00:00
jca
d791fb7b9a Enable lang/go on riscv64
Let the fireworks begin!

ok jsing@ (lang/go maintainer)
2022-10-11 11:54:14 +00:00
jca
c349155641 Add riscv64 to GCC49_ARCHS 2022-09-13 20:33:09 +00:00
semarie
d93fe444ca lang/rust: add support for powerpc64 and riscv64
with help gkoehler@ (powerpc64) and jca@ (riscv64)
2022-08-25 12:22:26 +00:00
kn
72a07b6279 Move long regex/substitution into variable for readability
No functional change but less eyestrain inducing.

OK sthen
2022-07-13 12:54:26 +00:00
kn
889474746b Simplify DISTFILES pattern in GH_DISTFILE
If filename and url share a common suffix in `filename{url}sufx',
it might as well be merged into sufx.

OK sthen
2022-07-13 12:40:51 +00:00
espie
54a2d613dd use make's :H instead of convoluted substitution.
ok sthen@
2022-07-06 09:30:41 +00:00
espie
73399756de the check for forbidden chars in CATEGORIES is cool
it's even better when it doesn't give a weird error message
when you've forgotten CATEGORIES entirely
2022-07-06 08:54:59 +00:00
op
313e2b92e6 set CCACHE_DIR and CCACHE_ENV in the COMPILER_WRAPPER for ccache to work
around scons.

scons cleans the environment when calling the compiler so it can't see
MAKE_ENV...

improvements and ok sthen@
2022-06-29 08:46:28 +00:00
espie
a4b649eb73 remove old scaffolding that's no longer relevant 2022-05-19 13:12:40 +00:00
sthen
0a15c5bc11 split up the one big shell command produced for "make clean=dist" into
separate commands for files, files with .part suffix, and directories.
fixes "make clean=dist" in sysutils/telegraf and probably some other
ports using go.port.mk. (one big 622K command split into 228+246+147K).

use ${MAKESUMFILES:=.part} instead of regex for files with .part suffix,
it is reliably faste^H^H^H^H^Hnot quite as slow

discussed with landry, phessler
2022-03-29 10:00:40 +00:00
bluhm
27e838a54a The ppport.h file contained in p5-Data-Dump-Streamer is read-only.
Move instead of copy the file to orig.  Then MODPERL_REGEN_PPPORT
can write the regenerated ppport.h into its place.
OK sthen@
2022-03-16 10:11:14 +00:00
espie
8a5e9e6b60 use a different technique to clean up distfiles.
as sdk@ noticed, there are a lot of subdirectories in gorust land.
removing every subdirectory with rmdir -p  is easy to do (thx semarie@)
and since we start in a subdirectory, rmdir -p cannot recurse up to /,
so sthen@ gave his approval.
2022-03-15 13:57:35 +00:00
sthen
c9c73b5ead Change MODPERL_REGEN_PPPORT to accept a filename. Useful when the port
uses a different name or a subdirectory for the file.

Adjust some ports to use it: p5-DBI (different name), p5-Template (xs
subdirectory). There are others that could use this.

OK bluhm@
2022-03-14 08:23:29 +00:00
sthen
a295ee47c9 For MODPERL_REGEN_PPPORT, don't cd ${WRKDIST} unless ${WRKDIST}/ppport.h
exists. Fixes ports using perl.port.mk which copy a .pl directly from
the distfile like security/kpcli.
2022-03-12 19:41:34 +00:00
sthen
e48f6547a4 In Perl ports, regenerate ppport.h if present with Devel::PPPort::WriteFile
from base Perl. The newer version of the header fixes compiler warnings
(-Wcompound-token-split-by-macro) which are noisy in build logs.

Tweaked from diff from espie@ via bluhm@, earlier version ok afresh1@
2022-03-12 12:15:38 +00:00
sthen
562068e192 Similar to what's done for asciidoc, write a "poison" script in
${WRKDIR}/bin/asciidoctor unless textproc/asciidoctor is present as a
build dependency (hidden build dependencies are a pain for bulk builds).
OK aja@
2022-03-09 14:00:43 +00:00
sthen
25b9c85b40 after feedback from aja@ and discussion with espie@, change the filename
format to ${PKGDIR}/(class).login, this also allows getting rid of the
LOGIN_CONF variable so that no Makefile changes are needed, only adding
the @sample.
2022-02-11 17:17:27 +00:00
sthen
8d9906460b add a LOGIN_CONF variable to bsd.port.mk, used to copy template files
into the fake-install directory ready for @sample'ing into /etc/login.conf.d
discussed with robert and espie, ok espie
2022-02-11 12:42:10 +00:00
espie
47deda211a officially restrict characters in CATEGORIES and FULLPKGPATH* so that
ports-readmes-dancer and the likes can have predictable characters in urls

ok sthen@
2022-01-25 14:02:38 +00:00
espie
1ea09cc529 fully anchor distfiles regexp when we can, doesn't change much
performance-wise unfortunately
2022-01-20 09:35:50 +00:00
espie
4fbc190a12 fix a typo for empty _FULL_FETCH_LIST
add a debug introspection target: make show-list=... because
thanks to go, some lists can't be echo'd, as they're long than the exec
limit.
2022-01-10 17:51:55 +00:00
sthen
18764719fc set _SYSTEM_VERSION-clang to trigger package updates on clang archs
following the compiler version switch
2021-12-20 08:30:13 +00:00
espie
c8e5b21b8e forgot to add gen to the list of introspected TARGETS 2021-12-14 14:21:41 +00:00
afresh1
f9e4d21cc3 Correct variable name
Missed in my recent refactor.

Noticed by Chris Bennett <cpb_ports () bennettconstruction ! us>
2021-12-12 19:25:39 +00:00
espie
3cffbf0372 next time we need to bump all arches having a specific property, it can
be done in a simpler way
2021-12-06 12:47:51 +00:00
chrisz
d3766ad015 lang/ocaml supports native code on aarch64
ok daniel@
2021-12-04 21:17:10 +00:00
sthen
38f5eec9b5 bump _SYSTEM_VERSION to force package updates of base-clang archs,
the symbol changes in libcompiler-rt.a for emutls are causing problems
and at least 250 packages maybe affected so this is the most sensible
way (we were overdue a bump to this anyway after other toolchain
changes, it's better if people are running code built with current
toolchain rather than a mixture).

discussed with robert@ tb@ espie@ naddy@
2021-12-01 09:26:34 +00:00
semarie
260bfd0eab bsd.port.mk: use .elif instead of imbricated .if
While here, remove 2 empty tabs on line to appease emacs.

ok sthen@
2021-11-27 16:46:13 +00:00
afresh1
bd756bd601 Adjust perl.port.mk so options will be picked up in more places
Export some ExtUtils::MakeMaker and Module::Build recognized environment
variables so they are picked up even if we don't run the configure
script directly.

This is useful for things that are not perl modules themselves, but include
perl modules, some of which seem to configure them at build time instead
of configure.

This is the first step to moving perl to have a vendor lib that
ports install into that is separate from where CPAN will install things.

Thanks to kmos@ for a bulk build that didn't turn up anything untoward
2021-11-23 01:12:38 +00:00
espie
99c62371fc define a sensible default value for PKGNAME-sub
(as stem-sub-version), apart from PKGNAME-main which is the
"main" package.

no change in any pkgname in the tree
2021-11-22 11:01:47 +00:00
espie
446cb96a35 remove the default for FULLPKGNAME-sub (to replace with a better one,
as discussed with sthen@)

also: kill some special useless casing... the regexp for adding
REVISION/EPOCH at the right location works with and without flavors

(no difference shown on make show=PKGNAMES through a full tree)
2021-11-21 13:55:10 +00:00
espie
992783a559 actually error out in case misguided porters try to subpackage
BUILD/TEST_DEPENDS
2021-11-17 10:39:18 +00:00
sthen
8f3d5b871d provide GH_DISTFILE, which is set to the DISTFILES string generated by
a port using GH_ACCOUNT+GH_PROJECT+(GH_TAGNAME|GH_COMMIT), useful if you
need some additional files. ok kn gnezdo, additional feedback espie
2021-11-16 21:18:27 +00:00
espie
9b356bec72 actually comment on the ispell case 2021-11-08 13:36:25 +00:00
espie
bf929398c5 use (if present) the checking support in pkg_create: that the pkgname
comes from REVISION and EPOCH properly. The most crucial check is probably
checking the end "flavor_ext" indeed comes from flavors (with the notable
exception of MULTI_PACKAGES' default FULLPKGNAME, as per ispell)
2021-11-08 13:35:29 +00:00
sthen
23eb67b032 extend the existing bsd.port.mk "poisoning" to detect use of executables
from gettext, to add a few more gettext scripts that we see sometimes, and
to add asciidoc. (has been in i386 bulks for months and forgotten about!)

ok espie, "I'm fine with the gettext-tools part and have no opinion on asciidoc" naddy@
2021-09-13 15:40:02 +00:00
gkoehler
087bd55e9c Switch macppc to ld.lld
Add powerpc to LLD_ARCH, and bump _SYSTEM_VERSION-powerpc so people
will upgrade to lld-linked packages when they exist.  Remove
-Wl,--relax from several ports; ld.bfd needed this flag, but ld.lld
can't take it.

lang/gcc/8 needs USE_LLD = No, because LLD can't link C++ code from
gcc (error: relocation refers to a discarded section: ...), and also,
the adastrap is too old.

To avoid linker errors on macppc, you need a snapshot where
/usr/bin/ld is LLD.

ok sthen@
2021-08-21 03:25:05 +00:00
jsing
7812eeac63 Add mips64 (aka octeon) to GO_ARCHS.
Discussed with visa@
2021-07-11 16:38:44 +00:00
jca
e382f4a16c Enable devel/llvm on riscv64
From Brad
2021-05-22 20:29:47 +00:00
sthen
c52e15386b the main xxx_ARCHS variables in arch-defines.mk should list MACHINE_ARCH
not ARCH names; fix for GO_ARCHS (from Brad) and extend the comment about
APM_ARCHS (which is special)
2021-05-09 08:21:47 +00:00
sthen
08aeab4d28 add riscv64 to port archs lists, from Brad. 2021-05-09 08:17:47 +00:00