5100 Commits

Author SHA1 Message Date
ajacoutot
5baa45a507 pkglocate -> pkglocatedb since that's the package name.
ok espie@
2018-05-23 07:26:53 +00:00
kn
fe6cdaae80 Fix rebuild and peek-ftp targets for PORTS_PRIVSEP=Yes
OK sthen, espie
2018-05-21 21:26:39 +00:00
espie
f49ee2b53c prepare for matching directories for new entries.
- add an assertion for unsubst for debugging (commented out)
- chomp the unsubst string so that the assertion works for full matches
- document where to add the new stuff
2018-05-21 06:16:23 +00:00
espie
0a183ab8db manpages version substitution is slightly funnier: we want to allow
for a VERSION followed by a manpage suffix, actually.

(this fixes nethack)
2018-05-20 15:58:32 +00:00
espie
916572cb3a document -e/-E 2018-05-20 10:36:35 +00:00
espie
25f87acd27 make .orig and .new tweakable options 2018-05-20 10:34:11 +00:00
espie
46b7170e60 document later possibility 2018-05-20 10:22:04 +00:00
espie
63b3eecfe8 match pkg_create behavior 2018-05-20 08:42:31 +00:00
espie
bd30d33a5d be even more specific: only prevent backsubst on dewey if we are a dewey
number ourselves
2018-05-20 07:57:16 +00:00
espie
9d0f07ab47 less aggressive 2018-05-20 07:50:08 +00:00
espie
1e874352a7 small improvements:
- if both PREFIX and LOCALBASE have the same value, prefer PREFIX
- for "version-like" substitution, also handle 5.${VERSION}  to not happen
2018-05-20 07:41:11 +00:00
espie
5fececdfa3 another extra suffix that's hardcoded in pkg_subst 2018-05-17 09:59:36 +00:00
espie
612505c6bb warn for orig comments that no longer match any file, so that we remember
to remove them eventually
2018-05-17 09:36:12 +00:00
espie
8529b997f9 remove the charset.alias special case, because the more generic conflicts
with pkglocatedb will also catch it.
2018-05-15 16:32:10 +00:00
espie
4b85c796a1 have infodir recognize xemacs dir, which is one line longer than usual
also don't display undefined messages if this is just a random short file
2018-05-15 10:34:16 +00:00
espie
d72879bce8 document new idea 2018-05-15 08:32:23 +00:00
espie
3f6da12d3e unbreak prefix substitution. Checking whether our class has a keyword
is actually invalid (@file does), so do something reliable instead
2018-05-15 08:30:55 +00:00
espie
7e8a7bdfae shush down pkg_create too 2018-05-12 11:57:43 +00:00
espie
8b8b0f2167 document -q, even the confusing part 2018-05-12 11:40:43 +00:00
sthen
d18b3615a7 Restrict @fontdir additions to /usr/local/share/fonts for now,
it might make sense to have this a bit wider, but currently the
marker is added in quite a few places where it doesn't help.
Expand the match to include truetype/opentype collections and
pfa files.  ok espie
2018-05-12 11:21:27 +00:00
espie
af189cbf16 - add a quiet option (not opposite of verbose) that makes progress
messages vanish
- try to copy @extra stuff as annotations, and resort to explicit
copying if that fails (they shouldn't move around so much)
2018-05-12 11:13:52 +00:00
espie
4eff1c5c0e some not so small changes
- use context in prefix/suffix substitution
specifically, if we have keywords, explicitly allow for them in prefix
Allow for substitution "anywhere" in actions
And allow for manpage extension for suffixes

- never propose a substitution for TRUEPREFIX, it shouldn't even be there
(still need PREFIX vs LOCALBASE desambiguation)
- create the sorted variables list in finalize, so we can add more meat
- allow for MACHINE_ARCH-openbsd (perl)
- be more specific for new substs, we allow substs if the value just appeared
- do not count variables we don't backsubst as duplicate value, this should
solve DISTNAME vs FULLPKGNAME
2018-05-12 10:46:39 +00:00
espie
a6e29f2ee4 small tweaks:
- always display the full plist filename, as it is more useful for scripts
who do not need to known the cwd
- do backsubst inside LIBxxx_VERSION variable names
- pass context to backsubst
2018-05-12 10:41:40 +00:00
espie
0868f762d8 add support for version-like variables 2018-05-12 07:59:00 +00:00
espie
067d19a39c in switching to substitutions on fullstring, I lost the automatic copy
of no checksum, so do it manually
2018-05-12 07:48:38 +00:00
espie
4cace14bf9 document the crazy 2018-05-11 15:07:23 +00:00
espie
ee4a13b581 add /var/tmp to the list of "known" dirs 2018-05-11 10:25:05 +00:00
espie
16dc192b6d copy extra dirs found in the fake directory correctly 2018-05-11 10:03:45 +00:00
espie
4d5e71c19e yet another way to account for files (games/atomix): sample files in the
plist for scores and similar stuff
2018-05-11 09:45:34 +00:00
espie
16c4522016 prevent the conflict handler from burping out if pkglocate returns
out-of-whack pkgpaths
2018-05-11 03:58:11 +00:00
espie
79272b1e52 do not try to move directories around, even with unexec 2018-05-11 02:59:40 +00:00
espie
84b75a8f5b document new stuff 2018-05-11 02:43:24 +00:00
espie
86379a3f45 run several locates at once to speed things up 2018-05-11 02:38:30 +00:00
espie
7868e1d026 locate does unanchored patterns by default 2018-05-09 17:26:31 +00:00
espie
4cd8fac197 take it one step further: I have all info to check for asymetric conflicts
so why do it manually ? retrieve the plist from the ports tree and don't
report if the conflict is properly registered there
2018-05-09 15:06:25 +00:00
espie
b686855a89 new feature: report unregistered conflicts if we have pkglocatedb available 2018-05-09 14:06:19 +00:00
espie
bc3522614b if pkg_locate is installed, look for unregistered conflicts, because we can 2018-05-09 13:58:06 +00:00
espie
ca39c2249e document dependencies cache 2018-05-09 10:27:58 +00:00
espie
2767c77bba caching options for dependencies, so that trying a bulk update-plist is
less painful
2018-05-09 10:06:23 +00:00
espie
fcfeae472f comment adjustements 2018-05-08 16:00:19 +00:00
espie
61d3f3ee86 suffixes-only substitutions 2018-05-08 13:23:51 +00:00
espie
10377b63ca add missing glue for start_only, and document those two options 2018-05-08 13:13:20 +00:00
espie
b322376e33 start adding options for specific variable behavior, so that things
feel like less of a hack
2018-05-08 13:09:32 +00:00
espie
b0f3e53880 reorg and document, no actual code change 2018-05-08 12:47:46 +00:00
espie
3b07a36cd3 reorg code a bit, document slightly more 2018-05-08 12:19:40 +00:00
espie
7dc83ab97e pass state around, because we may want to add special variable handling as
options
2018-05-08 11:56:25 +00:00
espie
b29c164fd9 comment a bit more 2018-05-08 11:53:58 +00:00
espie
292de10927 move reversesubst into its own package
this part is bound to grow
2018-05-08 11:48:01 +00:00
espie
57026e9885 document -n 2018-05-08 11:36:43 +00:00
espie
a7fdc3fb65 Option -n: stop right after writing the new plists. 2018-05-08 11:34:44 +00:00