On Mon, Feb 21, 2005, Ralf S. Engelschall wrote:
> On Mon, Feb 21, 2005, Matthias Kurz wrote:
>
> > Are there problems with '+' in package names ?
>
> Yes, RPM has problems with it (or at least does strange interpretations)
> so we avoided it at all in the past.
Yes, i saw some messages in the past that let me presume that this could
be the cause of my problem.
I tried to build the latest version of dvd+rw-tools. But then i needed to
look up an option, and when i tried to do "man growisofs", it told me that
there is no such man page. Bummer.
The manpage was in the package. "rpm --verify dvd+rw-tools" did not complain.
I could see it with "rpm -ql", i could see it with "rpm2cpio|cpio -it". It
was not in $prefix/man/man1. I could unpack the .rpm "rpm2cpio|cpio -ivdum".
It was there. I did a "man growisofs", again. Still no manpage (surprise,
surprise).
I renamed the package from dvd+rw-tools to dvd_rw-tools. No go. But it
worked, earlier (even with the '+'). What did i change ? Ah ! "%doc". I
had flagged the manpage as "%doc" this time. I removed the "%doc", re-
installed. Worked !
Then, i thought the %doc directive works like the %docdir one. I added the
doc files explictly to the %files section. No go. No manpage. (*1*)
Well, the manpage of rpm (openpkg man rpm|less -r) tells me, that
--includedocs is the default. I tried this option, nonetheless. No go.
I tried even --excludedocs, but the manpage still did not appear. Not that
i really expected it, but i got short of ideas.
Even "truss" did not help me, this time. I digged around in the rpm config
(rpm --showrc). Thought, it could have something to do with "docdir"'n stuff.
I did even a "find / -name growisofs.1" (took a looong time)(*2*). And then
i found it. When i looked up each and every place in "rpm --showrc" that had
the substring "doc", i found the cause of my problem.
There is an "%_excludedocs 1" in %prefix/lib/openpkg/macros". I won. Again !
Ate my whole evening, yesterday. When the Japanese invent roboters, that
drink my beer, i shoot myself.
(mk)
(*1*) Fooled me, first. (At least) Under Solaris, already formatted manpages
are stored in "cat" subdirectories. For every man/manx there is a
man/catx. When there is a version in man/catx, it is taken (when it
is newer than the one in man/manx or (!) when the version in man/manx
does not exist. Saves some time. And no need for the version in
man/manx.
(*2*) But did not enter /net - something i'll have to investigate.
--
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
>> Im pr�motorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [email protected]