Commit Graph

5785 Commits

Author SHA1 Message Date
sthen
8b02fd98b6 reserve 870 for nginx unit 2021-10-22 20:01:23 +00:00
espie
26a769f78e make the handling of default sets automatic: grab everything from locatedb
if around. If a snapshot, fully parse the SHA256* file, and derive the set
names and the signify version from it.
2021-10-06 13:56:50 +00:00
espie
c3271c33f7 fix the error control flow so that we don't quit dpb on wrong input on
the control socket.

noticed by solene@
2021-10-05 12:31:34 +00:00
espie
7f075145f5 quick fix to proot: after discussion, people seem to think that it's
better to install all sets by default, even though this makes the chroot
more costly (slightly).

So hard-code them for now, grabbing them off SHA256 is on the TODO list
2021-10-04 13:42:21 +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
abieber
4d4fe9fab4 use 869 for net/headscale 2021-08-27 16:30:16 +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
tb
2b93e99321 portcheck: add check for crates.inc
Extend the modules.inc check to handle crates.inc and stop
insisting on having a pointless "./" on the .include line.

ok danj semarie
2021-08-14 06:56:18 +00:00
jsing
7812eeac63 Add mips64 (aka octeon) to GO_ARCHS.
Discussed with visa@
2021-07-11 16:38:44 +00:00
bket
b78e0cae87 reserve uid 868 for _igmpproxy user 2021-07-11 09:20:54 +00:00
abieber
eb6ad31e92 Attempt to make the experience of updateing a Go port a bit easier.
- Add a version argument (second) to modgo-gen-modules-helper.
- Change modgo-gen-modules target to fetch module info for the
  current MODGO_VERSION of a port. Setting MODGO_VERSION=latest
  will fetch the latest version the Go ecosystem knows about.
  Similarly, if MODGO_VERSION is empty, fetch the latest
  verstion Go knows about.

While here:
- Add '-trimpath' to MODGO_FLAGS.

OK danj@
2021-07-03 02:37:46 +00:00
abieber
942c27c41f Make program name in usage match actual program name.
OK tb@
2021-06-25 15:35:30 +00:00
espie
f963059f7a scrape the old ldd code, which hasn't been used since we got rid of a.out 2021-06-21 15:16:52 +00:00
afresh1
d6b4517057 Have portgen(1) strip leading "v" on perl ports that need it
Noticed by Mischa <obsdml () high5 ! nl>
2021-06-13 19:00:06 +00:00
afresh1
ac796829f9 Have portgen(1) use newly set DEPENDS and CONFIGURE_STYLE
If we don't clean, then the upcoming make build won't notice any changes
that we actually added to the Makefile, such as setting the CONFIGURE_STYLE
to "modbuild tiny".

Noticed by Mischa <obsdml () high5 ! nl>
2021-06-13 18:30:50 +00:00
espie
e53fb59342 fix usage... 2021-06-05 16:20:08 +00:00
paco
22f57af81f fix fgrep command for modules.inc. Spotted by zhuk@ 2021-06-02 13:07:23 +00:00
paco
c8ae6eaf1b portcheck: do not complain about modules.inc being an extra file.
This is used by some Go ports, and maybe some Rust ports in the future
too.

"fine by me" zhuk@
ok danj@
2021-06-01 06:58:59 +00:00
landry
8e951acecb user.list: reserve uid 867 for _notify_push user 2021-05-27 14:51:12 +00:00
abieber
ebe897251a add _navidrome for audio/navidrome 2021-05-25 22:15:45 +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
sthen
9ed49b9296 If MS-DOS line endings are detected, direct the user at FIX_CRLF_FILES
rather than just point at Makefile.template.
2021-05-08 14:44:38 +00:00
espie
8357a73e76 remove local scaffolding I committed by mistake 2021-05-03 17:53:15 +00:00
espie
0039b6d7da add support for FETCH_CMD as a config file option/command line override
that will replace whatever comes from mk.conf
2021-05-03 07:16:46 +00:00
ajacoutot
9c1c161cc4 Cope with recent changes. 2021-05-02 09:06:44 +00:00
espie
133c3cebf5 grab FETCH_CMD value from bsd.port.mk, as discussed and tested with
Dimitri Karamazov

TODO: add Config.pm support for this as well
2021-05-02 06:08:53 +00:00
naddy
f11aa9cbdf fetch_cmd: switch argument parsing from the deprecated getopt to getopts
ok espie@
2021-04-30 20:20:02 +00:00
espie
b0b45b332a let's work in-tree on that one
skeleton script for people who want to override FETCH_CMD but don't
know exactly what ftp(1) options pkg_add/bsd.port.mk/dpb are going to
want.

A bit of feedback from sthen@, more to come most probably
2021-04-28 16:42:30 +00:00
espie
a6ebec8550 properly set up a watched in the Job::BasePort class instead of doing
it manually in each factory method in the builder.

gets rid of warnings under some install/wipe circumstances

okay naddy@
2021-04-16 20:14:47 +00:00
patrick
f828efc84f Add aarch64 to MONO_ARCHS.
ok robert@ naddy@
2021-04-10 15:36:13 +00:00
solene
cc6845fc1a add _vger for net/vger 2021-04-04 08:58:22 +00:00
espie
6768296769 allow trusted_snapshot, like pkg_add has TRUSTED_PKG_PATH
feedback and okay tb@
2021-03-31 07:56:43 +00:00
abieber
f10c854458 Allow an optional @version suffix (@v1.0.0 for example) to be specified when
generating a Go port with 'portgen go'. Patch from Josh Rickmar. Ty Josh!
2021-03-23 13:17:41 +00:00
espie
03db828d59 refactor: make the builder responsible for telling us whether we should
clean at the end of a build.

Add a new global config option: NEVER_CLEAN
so that no path ever gets cleaned (to be used ONLY if you have lots of disk
space).

I've actually done this manually in the past, to test various tools on
lots of objdirs...
2021-03-21 19:17:34 +00:00
sthen
44854f064a handle .tar.zstd / .tar.zst in EXTRACT_CASES; ok kn@ 2021-03-09 17:09:48 +00:00
gnezdo
c68d711c25 Remove GhcConf packing element as ghc-pkg-recache is no more
These were previously used to automatically add tags to PLIST for
Haskell library ports. Since library ports no longer exist, such
tagging only ever triggers for ghc package where it is now harmful.

ok kili
2021-03-07 19:30:16 +00:00
abieber
e27a7fd632 Fix a bug that was preventing version comparisons from working.
While here try using @v/list first, if that fails use @latest. This should
fix some of the "not being able to see the latest version" issues that
happen when upstreams re-tag.

Tweaks / OK from afresh1
2021-03-03 03:08:30 +00:00
espie
906e6d8cad debug tool for porters: this can fully parse pkgnames, show them in a
human-readable way, and compare them, so that people can figure out if
the version parsing did cope with whatever scheme upstream came with.

should alleviate the need for EPOCH in many cases
2021-03-01 10:35:14 +00:00
espie
81871ee2a5 - move FIX_CRLF_FILES to post-dispatch (suggested by naddy@, okay sthen@)
- fix an old optimisation that was lost, namely do not run distpatch
if it's not necessary

nothing broken after 3000 ports built, so it's unlikely to have any negative
side-effect
2021-02-28 14:01:11 +00:00
espie
6576f7d21a use the new cleaner interface of pkg_add's state that decouples
continue and window size change for readability
2021-02-26 07:54:11 +00:00
espie
13029014e3 FIX_CRLF_FILES obviously belongs in dump-vars 2021-02-25 23:19:51 +00:00
sthen
4fa7ad11f2 FIX_CRLF_FILES should root files in WRKDIST, not WRKSRC.
pointed out by espie@
2021-02-25 23:04:54 +00:00
sthen
44d7ce3bb9 add FIX_CRLF_FILES, from tb@ 2021-02-25 21:59:27 +00:00
sthen
942c7717b8 add FIX_CRLF_FILES. currently we use ad-hoc make targets to convert line
endings in extracted distfiles; it's common enough that it makes sense to
provide a nicer way of doing this. some changes suggested by espie@ tb@ kn@
2021-02-25 21:46:05 +00:00
sthen
3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00
sthen
6311f228e2 Record timings at the bottom of the individual build log (it's just the
same information as in summary.log but I find it useful to have here too0.
ok espie@
2021-02-21 10:48:04 +00:00
espie
ec88bfaedb finally add DEBUG_PACKAGES and DEBUG_CONFIGURE_ARGS to sqlports
not sure what I missed the last time as this is fundamentally trivial
2021-02-20 18:05:04 +00:00
abieber
0666597e06 Update Go to 1.16.
OK jsing@
2021-02-20 14:56:34 +00:00
sthen
4648b5acd5 oops, revert local diffs from my test build tree 2021-02-19 23:14:45 +00:00
sthen
248932be74 switch MODPY_BIN_SUFFIX to -2 for py2 and (blank) for py3
switch ports using command-line tools from py-sphinx that don't need a
py2 version of it to py3-sphinx
2021-02-19 23:13:00 +00:00
sthen
b2fe97ef21 add uid and rcscript for the daemon for icinga director; mention in pkg-readme 2021-02-10 15:35:38 +00:00
espie
c77c37126d readlink might give you a relative link, which you then have to finish
resolving yourself (fixes update-patches in japanese/onew)
2021-02-09 17:34:40 +00:00
kn
348ac5410b Remove ftp.cs.tu-berlin.de (NXDOMAIN) 2021-02-07 22:02:04 +00:00
sthen
a7e057a338 Change COMMENT for debug packages to just use PKGSTEM not FULLPKGNAME.
In some cases (mostly with insane distnames from local test builds, but
conceivably also possible with long combinations of flavours) they can
exceed the character limit. Discussed with espie@ who pointed out that
plist_db doesn't include entries for debug packages.

From Mikolaj Kucharski.
2021-02-06 15:24:48 +00:00
kn
05532e3bec Disable _hitch after security/hitch removal
Reminder from Matthias Schmidt, thanks.
2021-02-01 12:41:37 +00:00
sthen
39b4146d34 mention the port dir (devel/gettext,-tools) not just "gettext-tools" in
the poisoned scripts; easier to cut-and-paste
2021-01-31 21:18:23 +00:00
rsadowski
c4d5ada820 Remove Qt4 checks
We no longer want to import "new" Qt4 applicatios.
2021-01-30 08:01:10 +00:00
sthen
3613cd7af4 Change ccache handling from adding to BUILD_DEPENDS to doing an ".if exists"
check. Newer ccache uses cmake making it impractical to break the loop by
just disabling ccache for the individual ports on the way to building ccache.
2021-01-24 14:38:34 +00:00
kettenis
6716b674c9 Add powerpc64 to GCC49_ARCHS.
ok jasper@
2021-01-18 19:32:50 +00:00
sthen
c4cf25a65c add 863 for mail/dcc 2021-01-17 21:27:04 +00:00
abieber
1018dcc930 Teach go.port.mk and Go.pm how to escape modules that contain uppercase
letters.

OK kn, make magic from espie/naddy, feedback from afresh1 and sthen.
2021-01-16 23:38:13 +00:00
kn
9196604f15 Support .rpm in EXTRACT_CASES
Less special cases in (rare) ports, pluse one can use EXTRACT_FILES as usual now.

OK espie robert
2021-01-10 22:29:33 +00:00
sthen
0f8fca3a21 mips64el moved to clang, update ports arch-defines to match. from Brad. 2020-12-22 12:53:42 +00:00
sthen
ca096aa34b poison some py-related things which are easy to get wrong:
MODPY_ADJFILES (should be MODPY_ADJ_FILES)
MODPY_PYPI (should be MODPY_PI)
2020-12-15 14:52:27 +00:00
rsadowski
87a069bf2f Remove kde3/kde4 and phonon check(s)
OK sthen
2020-12-12 15:12:07 +00:00
rsadowski
5f64f2567d Disable _kdesud and _kdm from KDE3/4 2020-12-12 07:30:48 +00:00
paco
3bd9ffa229 prevent error on modgo-gen-modules when MODGO_MODULES or MODGO_MODFILES
are not defined

ok abieber@
2020-12-08 09:03:29 +00:00
sthen
681eeb9d7b Use strip -d, not just plain "strip", when removing debug symbols from
binaries for packages using DEBUG_PACKAGES. This avoids the current
situation where a backtrace is useless (function names all "??") if
a package was built with DEBUG_PACKAGES but the debug-foo package is
not installed.  ok espie@ pirofti@
2020-12-04 15:04:52 +00:00
sthen
c6ef3bc530 +blackbox_exporter 2020-11-21 12:26:50 +00:00
sthen
bf68142e73 switch py-tagpy to py3-only and remove its only py2-consumer audio/zeya
(a ten year old network daemon, no longer maintained in ports or upstream;
distfiles were fetched from debian who removed it from their packaging ~5
years ago). py-tagpy is one of the few consumers of boost's py2 library.
ok jca
2020-11-14 11:57:56 +00:00
ajacoutot
5d8191de37 Comment the _colord user/group. 2020-11-14 11:07:10 +00:00
danj
456f70f468 Comment _wiresep
net/wiresep has been removed in June after wg(4) arrival.
2020-11-13 23:31:37 +00:00
espie
79d673f522 by default, only run pkg-locatedb for "new" files, so that people will
actually run it by default

okay sthen@
2020-11-08 17:01:52 +00:00
espie
c52fecbcac left a bit of dead code while refactoring 2020-11-07 10:54:22 +00:00
solene
b89bf0335d + _i2p for net/i2p 2020-11-04 19:15:30 +00:00
abieber
0a093b7690 reserve 860 for net/dendrite 2020-10-22 13:52:57 +00:00
paco
fa9826f854 new target modgo-gen-modules for lang/go
It generates the lists for MODGO_MODULES and MODGO_MODFILES
Useful to update go ports.

ok abieber@
2020-10-09 13:23:51 +00:00
jasper
aeb6c4582b mop up after apache-activemq removal 2020-09-12 15:33:51 +00:00
abieber
9b54d33cad reserve 859 for net/miniflux 2020-09-08 22:35:04 +00:00
rsadowski
fb3931fb4c Rework multimedia/phonon multimedia/phonon-backend
- Remove infrastructure/bin/portcheck bits.
2020-08-20 17:58:57 +00:00
solene
6e9c7f648b Comment _ajaxterm user after www/ajaxterm removal
Pointed out by danj@
2020-08-20 13:31:17 +00:00
sthen
54a13723b7 bump SYSTEM_VERSION on clang archs, to trigger pkg_add to update
everything so that people updating from subsequent snapshots won't
have old clang 8-compiled packages lying around.

also will work around the problem where packages don't have WANTLIB
in sync, in some cases these have an unlisted dependency on libc++
which won't have been updated as needed (found by matthieu@).

ok ajacoutot@
2020-08-13 17:08:45 +00:00
bcallah
475f912824 Reserve 858 for _purritobin. Forgot to do this on import.
Spotted by naddy@, thanks.
2020-08-13 14:02:18 +00:00
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
abieber
096e6c6ae4 Teach 'portgen go' how to re-use existing ports. Also remove debug lines
that made it in.

OK afresh1@
2020-07-11 22:26:01 +00:00
espie
9a3fd2f8c5 do NOT check license issues for !current packages, because we don't care
that much, and more importantly, because there may be gaps in the database
for various reasons
2020-07-04 18:29:21 +00:00
espie
b1b8421b9e seems that other people do not use this...
get rid of cdrom_okay
2020-07-04 16:54:22 +00:00
espie
877acdbb0a thinko 2020-07-04 16:53:42 +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
sthen
75244c1bf6 portgen: unbreak PyPI 2020-07-02 21:07:51 +00:00
espie
24e163809a register-plist is a logical place to be able to save stuff elsewhere,
set up to be able to save manpages
2020-06-28 10:58:25 +00:00
abieber
273b7fe1fe Remove extra shell.
Fix from espie@
2020-06-26 23:26:04 +00:00
espie
ada8dbb7b9 explain why FAKE_TREE_OWNER is not a regular option 2020-06-26 14:47:05 +00:00
espie
2519958a27 add code to write conflict-related info in the cookie, so that if it changes
we rerun pkglocate
also check the pkglocate cookie vs the fake cookie, so that we rerun things
if somehow fake was rerun without cleaning things first (unlikely, but still)
2020-06-26 13:00:07 +00:00
espie
75f4ce503e manage a pkglocate_cookie, so that pkglocate is not run every time.
Note the TODOs, there's some code to be written to actuall re-run
pkglocate when the conflicts change.
2020-06-26 12:00:27 +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
espie
a0db38ea1e nit, help debug 2020-06-26 11:02:32 +00:00
abieber
970e853fd4 Add the ability to follow redirected dependencies.
- De-duplicate our .mod and .zip files.
- Move chdir to a child process.
- Break MODGO_MODULES and MODGO_MODFILES values into their own lines
  for easier reading.
2020-06-25 13:57:45 +00:00
espie
c5cb81bbcb remove the switch, use a map name -> class
this makes it easier to add languages, and also provides more decent
error reports in case of a bad language

okay afresh1@
2020-06-22 12:51:12 +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
81880cb49e refactor, no functional change. Start grouping and naming options 2020-06-13 09:14:14 +00:00
landry
43bd00b16b add uid/gid 857 for _web2ldap user 2020-06-12 11:27:08 +00:00
espie
111c80ba34 add a -s snap option that will always write plist into a separate
directory if no error
2020-06-10 07:42:39 +00:00
espie
9951bc2039 I forgot about the mogrified part, respect -n too
tweak the message to show that nothing got written
2020-06-10 06:54:29 +00:00
espie
41099bc700 add option -n, as it's the simplest one to do
(do all the checks, but don't write a thing. useful for bulks with test
changes that should be reverted later)
2020-06-09 21:00:33 +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
espie
4351660abb work a bit harder so that pkgpaths do not gain a bogus info by
autovivification

this allows to use is_stub once again
2020-05-31 19:24:26 +00:00
feinerer
b388e6927e Reserve uid/gid 855 for _repro and 856 for _return
OK sthen@
2020-05-29 20:52:28 +00:00
kn
487d2b660a Make make modifiers work in verbose-show
OK espie
2020-05-29 19:38:09 +00:00
espie
48ad98e6a8 revert temporarily
there's a bug elsewhere (autovivification of $w->{info}{BUILD_PACKAGES})
that I need to track down  that results in $w->{info} being defined but
NOT a proper object.

dpb errors out at end-of-LISTING in case of a parse error in any Makefile.

solene@ ran into this a few days ago, probably some other people, and
finally I met the bug today. Ouchie. sorry about that.
2020-05-28 20:53:40 +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
abieber
8921d9c50b Remove PKGNAME, setting DISTNAME is enough.
OK ajacoutot@
2020-05-17 14:33:04 +00:00
sthen
3e3ce667c1 portgen: where BDEP/RDEP are equal, write 'BUILD_DEPENDS=${RUN_DEPENDS}'
rather than 'RUN_DEPENDS=${BUILD_DEPENDS}' which is easily polluted by
compression utilities, ccache if used etc. Problem spotted by aja@ in a
port submission of mine where the skeleton was made by portgen.

While there, prefer setting 'TEST_DEPENDS=${RUN_DEPENDS}' rather than
to '${BUILD_DEPENDS}' if RDEP/BDEP are equal.

ok afresh1@
2020-05-16 21:44:23 +00:00
abieber
9e0580770b Teach portgen how to speak Go!
With this a port can be easily generated for Go applications that support Go
modules (there will be a go.mod file in the root of the project).

For example: https://github.com/jrick/domain/blob/master/go.mod

The mod file lists "github.com/jrick/domain" as the module name, so a portgen
command to build the above tool would be:

  portgen go github.com/jrick/domain

OK afresh1@ kmos@
2020-05-15 01:32:48 +00:00
kn
4f01408214 Default to python3 FLAVOR if possible
PyPI projects that already list multiple supported Python versions cause
portgen(1) to generate a flavoured port; of leaving FLAVOR emtpy, opt for
the highest available version.

This makes it use FLAVOR?=python3 insteaf of FLAVOR?= (empty) if any
sypport higher than Python 2 is listed.

Note that PyPI projects listing either only one sypported version or none
at all are not effected by this diff.

OK afresh1 kmos
2020-04-30 23:04:48 +00:00
schwarze
77ef99ead5 Delete mail/akpop3d.
Alexei dot Malinin at mail dot ru reported a compiler warning that,
in my opinion, probably indicates a security vulnerability, but due
to an incomplete description of the affected feature in the
documentation, it is unclear how it should be fixed.  The program
appears to be sloppily written, sloppily documented, and abandoned
upstream 15 years ago.

OK ajacoutot@ for deleting it.
2020-04-29 15:25:45 +00:00
danj
bcb2c51274 Comment ejabberd entry as it was removed on March 16th 2020-04-27 20:25:39 +00:00
danj
30a959d5e9 Remove jabberd removal leftovers 2020-04-27 20:23:00 +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
afresh1
aaf8c0f4be Support exact requirements in OpenBSD::PortGen::Ruby
Although I couldn't find a definitive guide to version specs,
I did find an example showing this seems to be how RubyGems work.

From Thomas L. <tom.longshine () web ! de>
2020-04-17 02:14:01 +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
espie
63023c8241 missing piece for setting LOGDIR 2020-04-15 16:18:48 +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
kn
0fd501de7b Build and package Mumble server component (murmur)
Simple MULTI_PACKAGES addition, no FLAVOR.

Diff from Thomas L. - thanks!
Tweaks and tests from me
"pkg_add murmur && rcctl start murmurd" just works on amd64 and sparc64
2020-04-13 13:18:36 +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
a8a6ebd059 forgotten in refactor: next -> return
run into by rsadowski@
2020-04-08 08:01:36 +00:00
sthen
6fc9527ff9 reserve 853 for sniproxy 2020-04-07 21:04:03 +00:00
espie
d1268b4574 produce a better error in case a distinfo file can't be read
wouldn't have stumped rsadowski@ for a few hours ;)
2020-04-07 16:02:04 +00:00
espie
abfd509eeb fix info queue... missed commit 2020-04-07 15:18:33 +00:00
ajacoutot
dda367647f Unbreak net/inetsim:
Error: newgroup _inetsim: not registered in ports/infrastructure/db/user.list
Error: newuser _inetsim: not registered in ports/infrastructure/db/user.list
2020-04-07 10:54:53 +00:00
espie
cb9902bbed use a temporary file name for Makefile so that if build-debug-info
fails, then bsd.port.mk doesn't have an existing target.
2020-04-07 10:45:20 +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
8b01b2d857 control socket: info queue
shows the 50 (tweakable?) first entries in the queue, with the weights
that resulted in that ordering
2020-04-04 16:45:33 +00:00
espie
ed91f81c7b use is_stub consistently
rename cores to info cores in preparation for other debug tidbits
fix help
add 'stub' to be tested
2020-04-04 08:40:36 +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
6fcfc4969e new command (to be specified more cleanly): rescan
for now it rescans "stubbed" ports in case you did change them (or if
they were stubbed because of missing dependencies, etc)

Could become something else/more powerful eventually
2020-03-31 19:06:44 +00:00
espie
c1787a7491 use abstraction 2020-03-31 19:05:45 +00:00
espie
29cc19fdac fix a typo on printing
add a debug command (cores) that shows explicitly each core known by
the core system, including idle cores (available) and "behind the scene"
stuff (ssh masters)
2020-03-31 11:13:14 +00:00
espie
a380cacf7b fix addhost... the init stuff was not magical enough, I need to explicitly
call init_core on the newly created core
2020-03-31 11:12:15 +00:00
espie
9c342b8b85 refactor so that I can run init_core independently on new cores 2020-03-31 11:11:36 +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
jca
010091bbff Refresh MASTER_SITE_SAVANNAH
- mirrors.zerg.biz is no more (points to 127.0.0.1), drop it.
- savannah.c3sl.ufpr.br stopped their FTP service, use
ftp://ftp.cc.uoc.gr
- ftp.twaren.net replies 403 errors when fetching with ftp(1).
Move to mirror.ossplanet.net which is also in .tw and supports https
- also move mirror.csclub.uwaterloo.ca and nongnu.askapache.com to https
2020-03-23 19:57:58 +00:00
espie
7b701aa967 prepare for supporting (very limited) lockname tweaks
specifically, make sure dpb can't get confused if the same fullpkgname
points to two different locks (by stubbing/erroring out)

Clean up the code a bit so it shows up in equiv.log and as broken (so in
engine.log)

bsd.port.mk bits to test later (and document because this has lots of
caveats and should only be used under specific circumstances)
2020-03-23 19:22:22 +00:00
cwen
591d098553 Makefile.template: add a hook to remove MS-DOS line endings in files
needing patches.

Proposed by and OK sthen@
2020-03-22 17:18:01 +00:00
cwen
3583d94ca3 portcheck: add a check for MS-DOS line endings in patches.
Proposed by and OK sthen@
2020-03-22 17:16:30 +00:00
abieber
15bdfcedb2 rereserve 505 for -wiresep 2020-03-15 22:05:08 +00:00
abieber
f63083ccce reserve 851 for _whatsapp 2020-03-14 16:18:59 +00:00
naddy
b184bbfa73 Update MASTER_SITE_OSDN_JP to a list of mirrors that support https, resolve
to different IP addresses, are geographically distributed, and support IPv6
(except for the primary one).  ok jca@
2020-03-12 20:46:54 +00:00
espie
5a484d1b13 let's use a proper mktemp idiom for makesum 2020-03-11 16:46:34 +00:00
sthen
038ef37cc9 reserve 850 for snare 2020-03-11 12:22:51 +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
landry
ab424ab79c reserve uid 849 for _synapse user, reminded by Renaud Allard 2020-03-09 08:17:31 +00:00
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