Commit Graph

912 Commits

Author SHA1 Message Date
op
6b162f520e print the subpackage (if any) in check-lib-depends output
turns the diagnostic messages like
	WANTLIB += foo bar
to
	WANTLIB-subp += foo bar

when checking the libraries in a subpackage.

OK and lots of help and improvements from espie@
2022-07-07 07:20:28 +00:00
espie
5f4d472f4e tweak special behavior for quirks: instead of putting it aside on normal
build, use a new DPB_PROPERTIES "later" that informs the Grabber to build
it during a second stage (with the exact same rules as before).

And thus, reconnect quirks into the "normal" build.

Main difference: other databases like sqlports or pkglocatedb will index
quirks again
2022-06-07 16:13:16 +00:00
espie
46a4f9f2dc forgot one constant
also, forget a possible hash value after @option always-update
since that will change most times the package is regenerated
2022-05-26 06:55:06 +00:00
espie
a4b649eb73 remove old scaffolding that's no longer relevant 2022-05-19 13:12:40 +00:00
espie
fc88d2f458 buglet: copy @option is-branch
they're named exactly like their regular counterpart, so they need the
same disambiguation for pkg_info -z to function properly
2022-04-22 15:51:48 +00:00
espie
484e1a7b00 as noticed by sthen: pkg version ordering is a partial ordering relation.
do a second pass on the "sorted" list to catch non-comparable version.
document what's going on because that's actually tricky, mathematically.
2022-04-19 14:10:31 +00:00
espie
4c9bfe12fb tweak the logic of building quirks last slightly: if we built any package
during the current run, we rm any quirks packages that could be left over
from a previous build first.

This ensures quirks gets rebuilt if some packages did change, so that
the updateinfo cache is as fresh as possible.
2022-04-14 19:39:37 +00:00
espie
9b2a2be4f9 let recheck_errors return the value it's supposed to. This was broken
5 years ago, also: add a sleep to avoid dpb busy-polling on locks in
case there is nothing else to do.
2022-03-15 14:33:29 +00:00
espie
d721505f9f change the timing for building quirks, so that it can include update
information from built packages
(not used yet)
thanks for naddy@ and sthen@ for test-driving this
2022-03-14 07:55:35 +00:00
espie
ee08de4c0c this actually broke only @option no-default-conflict
somewhat obviously.

sorry, didn't test on a port with this active.
2022-03-09 23:17:31 +00:00
naddy
3afb6890bb build-debug-info: revert "no need to special-case copy CVSTags"
This broke building debug packages, which in effect breaks the whole
ports tree.
2022-03-09 20:19:23 +00:00
espie
7e5527440b no need to special-case copy CVSTags, since they're no longer here 2022-03-09 12:52:38 +00:00
espie
45f0a735ce slightly cleaner: attach stuff to the CVSTag, BUT don't copy it since we
won't do anything with it.
2022-03-07 16:34:26 +00:00
espie
e4b3169766 Final fix (hopefully) for newuser and newgroup not copying over as reported
by aja@ and landry@

My error was that I did think I needed a placeholder in the new list to
tack new stuff to, whereas I actually need the placeholder in the old list,
so that it gets copied along with the stuff that's attached to it...
2022-03-07 08:57:10 +00:00
naddy
114bc7dece portcheck: make shell syntax more consistent
Move remaining uses of [ ... ] to  [[ ... ]].
Do not quote the word after "case".
2022-03-04 20:27:05 +00:00
naddy
04e3b9f1fa portcheck: warn about $OpenBSD$ keywords
* Complain where $OpenBSD$ was previously mandatory.
* Still complain where it continues to be forbidden.
* Also check the content of the "files" directory.

ok sthen@
2022-03-04 18:29:31 +00:00
espie
2648e62bfe fully revert with explanation why 2022-03-01 13:52:03 +00:00
espie
ec54852943 explicitly zap the part that adds missing cvs tags 2022-03-01 13:14:27 +00:00
espie
5845f6e5c1 revert happy go lucky clean-up as noticed by sthen@ 2022-03-01 13:12:31 +00:00
espie
fff2181b00 zap $OpenBSD$ from generated patches
okay sthen@
2022-03-01 11:15:31 +00:00
espie
45e5be99fd kill the remaining scaffolding wrt cvstags 2022-03-01 11:01:17 +00:00
espie
1e35cb7fb2 allow @comment $OpenBSD$ lines to vanish without a trace.
okay sthen@
2022-02-28 14:07:45 +00:00
espie
d7d3228526 automatically add @sample for login class files. 2022-02-13 12:42:46 +00:00
espie
30fe5eaa7f glue for recognizing ocaml files...
(misses the fragment dispatch)

generalize "tweak_other_paths"  to run *after* the normal recognition, since
ocaml paths are linked in more generic ways that just "parent directory for
fonts", so they don't necessarily occur in the right order, and we shouldn't
care.
2022-01-21 10:55:18 +00:00
espie
7dfad28b86 move all the logic that handles file dispatch, actual backsubstitution and
state handling into a separate file
2022-01-21 09:36:00 +00:00
espie
c6ad86d5f5 explain slightly better how the tracker/backsubst writer works.
add a (future) option for ocaml handling
2022-01-21 09:25:09 +00:00
espie
2e57c02cb5 add a wee bit of documentation for the TrackFile logic 2022-01-19 15:06:08 +00:00
espie
58397b2538 slighty more specific method name + style 2022-01-19 14:54:54 +00:00
espie
f897e884e8 rename file to a more intuitive name 2022-01-19 14:46:00 +00:00
espie
cf1897620d move a bit of the main code into a different file, because this is starting
to grow a bit too much.
2022-01-19 14:38:48 +00:00
espie
0e522668c5 add -m VAR=value option to pass stuff directly to make.
okay afresh1@
2022-01-05 09:12:50 +00:00
ajacoutot
9b0787094c update-plist: add support for '@tag ibus-write-cache'
ok espie@
2021-11-26 16:47:30 +00:00
rsadowski
ceae85fd77 Add new category "wayland" 2021-11-06 19:10:18 +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
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
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
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
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
6768296769 allow trusted_snapshot, like pkg_add has TRUSTED_PKG_PATH
feedback and okay tb@
2021-03-31 07:56:43 +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
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
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
rsadowski
c4d5ada820 Remove Qt4 checks
We no longer want to import "new" Qt4 applicatios.
2021-01-30 08:01:10 +00:00
rsadowski
87a069bf2f Remove kde3/kde4 and phonon check(s)
OK sthen
2020-12-12 15:12:07 +00:00