Commit Graph

106 Commits

Author SHA1 Message Date
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
espie
0b2cdd25b2 next -> return 2004-08-09 12:41:03 +00:00
espie
2cce78f090 next->return 2004-08-09 12:35:45 +00:00
espie
2d2f5986a9 convenience functions so that main isn't that big.
Mark comments that have been accounted for, and show the remaining ones.
2004-08-09 10:24:26 +00:00
espie
bf445f78df do local uid/gid changes so that tempfiles will get removed correctly. 2004-08-08 18:09:04 +00:00
espie
10083d7dfb run update-plist as root, to catch all files.
pass OWNER/GROUP around and setuid/gid to them before writing
files to keep ownership.
2004-08-08 16:43:15 +00:00
espie
505d40ba33 reset lastfile before register, so that exec/unexec at start of PLIST
don't get register with the last file.
Add tag_marker `lastfile' placeholder to catch exec/unexec at start
and reproduce them faithfully.
2004-08-08 14:13:41 +00:00
espie
685bd09404 use File::Spec to resolve link. Add missing '/' when needed. 2004-08-07 07:47:38 +00:00
espie
bc4dd33fdd shared lib markers, ditch DYNLIBDIR. 2004-08-06 10:24:19 +00:00
espie
b138d92476 more stringent checks on dynamic library name.
Distinguish between library and plugin.
Saner check for DYNLIBDIR.
2004-08-06 09:37:15 +00:00
espie
e60d9a7833 use clone() to copy objects when either we can, avoiding truncation problems
if inheritance is used.
Fixes @extra dir/  copying.
2004-08-05 23:51:44 +00:00
espie
0e976d1198 almost completely new make-plist.
The new version uses the pkg_* infrastructure to read existing plists
and produced new plists.
Lots and lots of improvements:
- copy most stuff over from original lists correctly. For instance,
attach @exec/@unexec/@sample to other files and copy them in the right
location.
- generic post-treatment of @commnent, using stringize(), so that most
things can be commented out and will stay commented out.
- parse all packing-lists using relevant PREFIXes. Grab PFRAG.xx if %xx%
is seen.
- walk through all of fake, and distpatch files according to PREFIXes
if nothing else works.
- identifies man, libraries, info, handling symlink correctly.
2004-08-05 23:43:45 +00:00