Commit Graph

117 Commits

Author SHA1 Message Date
espie
c8985ffe5e strip quotes 2007-05-12 14:02:08 +00:00
espie
e9ebd9d4e4 avoid recursing ad nauseam on symlinks. 2007-04-08 15:22:49 +00:00
bernd
41bd832cdc Add missing parameter for a parse_original_plist() call in grab_all_lists(). 2007-02-07 11:24:23 +00:00
espie
f7229e2ff8 make expr less greedy 2007-01-12 21:53:31 +00:00
espie
6c505bfc6f cache mtrees read from dependencies so that we don't parse the same
dependency twice across MULTI_PACKAGES.
2007-01-10 01:41:29 +00:00
espie
98c444198b yet more special-casing: do backsubst for libnames correctly, so that
update plist correctly registers existing ones, otherwise shared libraries
with some weird names will always pop back to the main PLIST.
2007-01-09 19:40:49 +00:00
espie
084dbff69a for shared libraries, only apply var_backsubst on the library name, leave
the version alone.
2007-01-08 18:33:37 +00:00
espie
6a1241ecdc don't insist on matching subpackage names, anything goes... 2006-12-19 10:03:22 +00:00
espie
86a95eb2d8 filter prefix early, in preparation of more changes to come. 2006-12-11 17:17:25 +00:00
espie
468c67ec44 zap extra parse_args. 2006-12-11 13:51:14 +00:00
espie
c89eab44fc pass all subpackage information to make-plist.
Adapt make-plist to use the same code as pkg_create to deduce fragment
names, remove some old special cases that should no longer matter.

Zap directories from dependencies in a way depending on the dependency.
Far from perfect yet, as directories should be registered multiple times
in packages that do not depend on each other, and could also be used to
figure out where to put new files...
2006-12-11 13:36:06 +00:00
espie
9d9d40e8e6 kludge make-plist to work with new multi packages 2006-11-20 13:56:37 +00:00
espie
6b60ddeb78 remove the dependency of make-plist on dependent packages: instead, go
directly use `make print-plist' to find these lists in the ports tree.
2006-11-09 08:16:22 +00:00
espie
a000f1d8ec Stripping dir: shorter diagnostic when package is not found. 2006-11-06 16:35:20 +00:00
espie
07c292fb8d minor cosmetic changes: do not strip packages twice.
check for empty .info files.
2006-10-07 10:04:09 +00:00
espie
279c5d5732 detect more stuff that probably does not belong in PLISTs, based on the
filenames (vim .swp and emacs ~ files)

Found out by Andreas Kahari
2006-04-03 13:53:43 +00:00
bernd
abab1f6055 Display lib version in "unregistered shared lib" warning.
okay espie
2005-12-26 19:29:34 +00:00
bernd
d73c3d3e79 Display warnings for unregistered shared libs only once per lib.
Less chatty now.

ok espie@
2005-12-23 13:30:05 +00:00
espie
9416bb604f get make-plist aware of the version number variables. 2005-12-23 12:48:59 +00:00
espie
4135e14535 error out in case we can't write files.
found out by bernd@
2005-11-02 21:39:43 +00:00
espie
7cd73e7f11 complain when dependent packages are not found, and stripping won't happen
correctly...
2005-11-02 18:58:44 +00:00
espie
6ca140f35b copy @shell over, since there's no way to figure it out automatically. 2005-10-23 10:48:39 +00:00
aanriot
f98128e3e2 tweak to match makeinfo's signature even with a long source filename.
better pattern and ok espie@
2005-10-18 21:05:53 +00:00
espie
00ba79a06d copy new annotations over. 2005-09-07 10:40:00 +00:00
espie
9daab219eb some perl stuff installs manpages as ../man3p/manpage.3 2005-09-05 13:06:01 +00:00
espie
3146ff3563 libraries live in the first pass. 2005-08-10 13:09:17 +00:00
espie
bbac9516f9 show a full list of existing files before exiting. 2005-07-04 10:46:05 +00:00
espie
0c80ed6d5d take @endfake into account: mark when items are before/after @endfake,
and run two passes if necessary to put stuff before/after @endfake.

For now, extra stuff always gets moved after @endfake...

This will change when I find `useful' examples.
2005-04-11 11:39:12 +00:00
espie
00f97d0a5e emit PLIST when a shared fragment is seen.
Fix long-standing buglet reported by various people, I just needed to
sit down long enough to reproduce the issue...
2005-02-05 11:40:31 +00:00
espie
3393c1c5be let @sysctl tag long.
problem noticed by sturm@
2004-12-27 00:00:27 +00:00
espie
2113d6fce1 strip /usr/local/lib path 2004-11-23 11:54:55 +00:00
espie
8710bf432e report on libraries that don't get used as well. 2004-11-23 11:17:59 +00:00
espie
a56c20faa7 use SharedLibs look-up to find libraries we don't know about. 2004-11-23 11:13:20 +00:00
espie
15f18a36d5 typo 2004-11-21 11:18:37 +00:00
espie
646a985497 allow for LIB_DEPENDS or WANTLIB to not be defined 2004-11-21 11:17:47 +00:00
espie
dd6c1654d5 fix stupid typo.
introduce WANTLIB.
2004-11-21 11:06:38 +00:00
espie
b8dfc30a1a don't report false positives for libraries with similar names 2004-11-21 10:39:24 +00:00
espie
b6797baf63 don't try to register anything that isn't at least a FileObject...
Found out by alek@
2004-11-14 19:42:04 +00:00
espie
e7dd701872 synch with packing-list changes 2004-11-13 11:49:03 +00:00
espie
8af46cc105 fix cwd issues.
try harder to resolve links
2004-11-13 11:25:31 +00:00
espie
0d09be0752 shared fragment in need of recording.
found by wilfried@
2004-10-23 06:51:54 +00:00
espie
b5445b3596 forgot to copy @newgroup and @newuser items over.
noticed by nikolay.
2004-10-17 09:20:06 +00:00
espie
784afb2649 kill old check-libs script, after checking the new one handles a.out
just fine.

Kill old subst that's not used anymore as well.
2004-09-18 13:48:43 +00:00
espie
292285c3fe clone new-style conflicts too 2004-09-18 11:03:45 +00:00
espie
fb42eebbe1 new check libs that should work with a.out, and uses the current framework
for accessing plists.
okay naddy@
2004-09-18 08:12:11 +00:00
espie
91d926e81f - lots of comments
- Mtree module, shared with check-common-dirs
- update list of `known' directories to match actual OpenBSD, so
that stuff outside of /usr/local will work.
- drop dead if destdir does not exist (e.g., fake got a problem)
- if a file is found in a fragment, and as a comment in the original
file, then that was a limitation of the old make-plist: don't look at
the comment.
- copy modes for @sample
- do fragments for multi-packages too.
- pass existing files around for more accurate @exec tests.
- don't copy install-info/mkdir if files/dir have been found.
- register dirrm dir as dir/, but using original object, so that it will
need to be found once to be accounted for.
- don't register extra as `files', otherwise we end up with bogus
${SYSCONFDIR}/file entries.
- classify directories and files in a unified way.
- more thorough tests for info files, more names, look at two lines context.
- ibid dir file.
- ibid subinfo.
- provide a way to erase a directory that only holds one file.
- use for .packlist, perllocal.pod.
- use perl Config to look for those in the right location.
- don't look at file dates, we always use fake.
- special case /etc/X11/app-defaults becomes /usr/local/lib/X11/app-defaults
- use plist state info to avoid extraneous mode/owner/group entries.
- sort comments that are not accounted for.
- warn about .orig files.
- man pages for linux.
- don't backsubst SYSCONFDIR except at start of line.
- handle @comment @dir like @comment @dirrm.
- respect fragment locations
- put %%SHARED%% at top by default.
- handle recursive fragments correctly (simpler code, needs pkg_add support)
- mark genuine fragments, and don't try to write empty ones, assuming
the chosen flavor doesn't hold the required information.
2004-09-14 22:24:39 +00:00
espie
e99d16b029 Use original item to build new one: so we can clone things we do not yet
detect, like @mandir and @fontdir.

more precise logic for changes: do not check for orig files and die if
nothing changed.
2004-08-11 09:40:17 +00:00
espie
7413f2d2da better diagnostic logic:
first output all PLISTs in a tmp dir, then compare with
original set, and report all differences.
Then check that original can be moved to orig, and do the move.
That way, make plist on a set of unchanged lists will be silent,
and can be used irregardless of the presence of P*.orig files.
2004-08-10 21:01:01 +00:00
espie
a6ddcef28f register sample dirs. 2004-08-10 08:45:21 +00:00
espie
9503cf0454 more accurate info test. 2004-08-09 12:48:56 +00:00