194 Commits

Author SHA1 Message Date
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
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
424755b857 copy "no debug" over 2020-02-20 16:33:45 +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
espie
1136f61008 have comment reflect reality 2019-11-25 13:57:11 +00:00
espie
2a18d1de91 ... and the argument parsing proper is now identical as well! 2019-11-19 14:54:01 +00:00
espie
a5d9dff07c inherit from PlistReader so that differences are located in a better location 2019-11-19 14:51:32 +00:00
espie
f1c3d659c4 move the common state things as well 2019-11-19 14:45:28 +00:00
espie
978d83893b make the state code identical in preparation for lifting. 2019-11-19 14:41:29 +00:00
espie
cea793235b start moving common code into its own file 2019-11-19 14:38:56 +00:00
espie
5c2dd6bbc8 move process_subpackage logic into the PlistReader class in order to
share the code
2019-11-18 16:07:17 +00:00
espie
9ffc3dddaf tweak code order slightly to make things identical to build-debug-info 2019-11-18 15:54:48 +00:00
espie
0b1efbd66c the warning about changed debug info is no longer relevant
keep the notice_new_file hook though, it might come in handy
2019-11-11 19:00:27 +00:00
espie
8f163ed309 warn when update-plist changed files with debug info, so that ppl know
they need to re-do fake to get proper debug packages
2019-11-10 18:26:39 +00:00
espie
b76784517b let update-plist deal with debug stuff
- ignore debug files in the fake directory
- recognize and annotate shared objects and static libraries correctly

*THIS REQUIRES CURRENT PKG_* CODE TO WORK!*
if your package contains static libraries/shared objects, update-plist
WILL error out saying it can't create the new classes
2019-11-10 16:46:44 +00:00
espie
5276430d98 add tag support for ghc 2019-09-11 09:05:53 +00:00
espie
5be48fec82 check pkgconfig files for correctness
and warn if they're not.

Okay robert@
2019-06-29 14:50:52 +00:00
espie
6388e49043 implement two new related options, -c and -I (documentation to follow)
tweak the actual plist writer to do two passes:

first pass actually determines object names, and second pass
does the writing.

That way, the first pass can create "canonical" names where
${MODPY_PYCACHE} vanishes, and the second pass can sprinkle
@comment in front of the duplicate dirs.

okay afresh1@
2019-05-18 18:53:48 +00:00
espie
fe4efec349 make code clearer, do not declare a 2nd local i. 2019-05-17 10:24:18 +00:00
espie
8782750738 normal caching is not enough, in landry's mix of wip and ports, there are
strange loops that no mere human can fathom.

okay sthen@
2019-02-25 20:48:09 +00:00
espie
7281f8f0d4 just saw a nit while update mlpack. Document that I need to fix code
at some point.
2018-11-19 13:52:09 +00:00
sthen
3eb429508f use hw.ncpuonline rather than hw.ncpu for default #/cores in DPB and the
number of parallel "conflict finder" runs of pkglocatedb in update-plist.

ok espie@
2018-09-05 10:31:55 +00:00
espie
8a6057ff62 XXX 2018-07-11 11:37:03 +00:00
espie
7a542a32d6 figure out tags for icon theme directories 2018-07-11 11:34:29 +00:00
espie
3e45c20244 discover update-mime-database tag 2018-07-11 10:43:03 +00:00
espie
92c26eef1a okay, so we are able to add tag @glib-compile-schemas and
@tag update-desktop-database
automatically, for starters
2018-07-08 19:57:43 +00:00
espie
02d5e60dcb scaffold for glib-compile-schemas 2018-07-08 19:39:33 +00:00
espie
767d61b960 scaffolding for desktop files 2018-06-28 17:56:53 +00:00
espie
963f63843e start moving code that does not belong in PkgCreate.
remove warnings temporarily since we redefine junk for now.
2018-06-18 15:51:24 +00:00
espie
582585c5be refactor error display
replace tab with a space so it doesn't flow off the screen that often
2018-06-09 10:51:39 +00:00
espie
4c06ae0313 do NOT add .orig and similar stuff to plists automatically
list things that pause problems in a more ordered way.
2018-06-06 11:22:57 +00:00
espie
7f33b62020 add scaffolding to a -L log option, to parse install/chown/chgrp annotations 2018-06-03 10:06:39 +00:00
espie
d1bac8f5bb fix timing: first do approximate, THEN exact for all lists, so that
preference for exact directory actually works
2018-06-01 12:29:32 +00:00
espie
6964fe7fb6 make warning message for objects with a bad path less verbose.
add the possibility of tagging
@comment intentional <reason>
for objects that would warn (orig suffixes, manpages, etc)
2018-06-01 10:25:09 +00:00
espie
b12f4f67f2 refine the .orig warning, make it always warn, but say whether it's new or not 2018-06-01 10:17:36 +00:00
espie
e900e5d9fa - fix an "invisible bug": checking for suffixes shouldn't try for !fileobjects
(noticed while adding strip_redundant_absolute, as ::Cwd does not have cwd)
- generalize removal of redundant prefixes to all objects with a path
that can be absolute.
2018-05-31 09:33:38 +00:00
espie
c78dbdc8ba I stumbled upon a @extra ${PREFIX}/some/dir
the PREFIX is implicit, so don't do it.
2018-05-31 09:14:12 +00:00
espie
497aad557f take out -u, it will be taken over by pkg_create 2018-05-31 09:00:45 +00:00
espie
2b55487621 make it work while PkgCreate.pm is in a state of flux 2018-05-30 14:13:34 +00:00
espie
0443fc1a6c I plain forgot about !number to insist on a given uid/gid 2018-05-28 09:03:38 +00:00
espie
8b6114ba43 ouch: first stage of recursion should NOT mark objects as tagged_along
(that would report all @comment orig files  as unneeded even when they make
full sense)
2018-05-28 05:39:57 +00:00
espie
0c65eb2e51 zap debut string 2018-05-27 12:15:57 +00:00
espie
8605e5eba3 now that rcscript is no longer special, don't stage it.
Side-effect: this will reorder rscripts, mostly at the start of
packing-lists.

THIS REQUIRES CURRENT pkg_add!
Otherwise you'll get lots of funny @cwd
2018-05-27 09:38:21 +00:00
espie
ac69bb4b7d remove debugging message
add code to check more stuff:
- newuser/newgroup: look at user.list if provided and check the existence
of said users/groups.  Also check user.list for duplicates
- manpages: warn about .0 suffixes (should be handled thru USE_GROFF usually)
and .Z/.gz/.tbl
accordingly, rename bad_suffixes to last_check
2018-05-27 07:13:49 +00:00
espie
c684568061 so $d2 is not necessarily absolute, d2=dirname(d2) may loop on d2 = '.'
infinite loop on a few ports (very few)

also, be more specific on the exact prefix, depending whether the prefix
string  includes the trailing /  in its expansion (MODPY_PYCACHE) or not.
2018-05-24 14:35:20 +00:00
espie
33718e7146 implement partial unsubst strings: steal the most we can from the directory
that matched.

make that lazy, because lots of dirs are guessed to get stripped by
dependencies
2018-05-23 13:57:59 +00:00
espie
e9a49730c9 don't try to chomp/assign undefined values 2018-05-23 12:41:03 +00:00