logjam on Mandrake 9.2 |
[Dec. 20th, 2003|04:34 pm]
LogJam
|
I'm having troubling building an rpm for my system.
When I run: $ rpmbuild --rebuild logjam-4.2.3-1.src.rpm
RPM build errors: user spot does not exist - using root group spot does not exist - using root File not found: /home/kenny/rpm/tmp/logjam-4.2.3.root/usr/share/man/man1/logjam.1.gz
And when I try to build one from raw sources using the provided spec by running: $ rpmbuild -ba logjam.spec
RPM build errors: File not found: /home/kenny/rpm/tmp/logjam-4.2.4.root/usr/share/man/man1/logjam.1.gz
Thing is in both cases there is a file named logjam.1.bz2 at the location instead of logjam.1.gz. I tried converting logjam.1.bz2->logjam1.gz and retried the commands but the process seems to clean the directories and I get the same error. I'm guessing it's some env variable or something. Has anyone seen this? I'd appreciate any help. Thanks. |
|
|
Comments: |
Actually it has to do with the stuff in /usr/lib/rpm which handles manpages (on my SuSE 7.0 system it's /usr/lib/rpm/brp-compress, but this is an older version of rpm so YMMV). You need to update the spec file to install the .gz file instead of the .bz2 file, and while you're at it change the user/group name to something on your system so it will install without complaints.
Thanks. I think you meant to make the spec file install the .bz2 file instead of the .gz file.
I changed %{_mandir}/man1/logjam.1.gz to %{_mandir}/man1/logjam.1.bz2
It compiled but wouldn't install complaining about gtkspell. Then I realized that on Mandrake the package name is libgtkspell and so I fixed up the spec file and tried again.
It finally works. Except spell check doesn't work. Thing is I thought I saw it say "GTKSpell: yes" when it was compiling.
I got it to work with spell checking. The other adjustment I had to make to the spec file that comes in the raw source tar.gz was the addition of these lines: /usr/share/locale/* /usr/share/pixmaps/logjam*.png to the %files section.
![[User Picture]](https://l-userpic.livejournal.com/50213010/990679) | From: k001 2003-12-22 04:26 am (UTC)
| (Link)
|
Try my src.rpm - you can get it from here. Alternatively, find a line in %files section of logjam.spec file, which looks like this: %_mandir/man1/logjam.1.gzand change it to: %_mandir/man1/logjam.1.*
Thanks, it worked great! Though, I'm starting to hate how Mandrake names their packages so differently.
![[User Picture]](https://l-userpic.livejournal.com/50213010/990679) | From: k001 2003-12-27 01:13 pm (UTC)
| (Link)
|
Theoretically, this problem of different naming can be solved...say, you want to name your package 'MySQL', while others use 'mysql'. So, you just put in .spec file:
Name: MySQL Provides: mysql-%{version}
But this is only theory. In practice, vendors doesn't do it. Pity.
The file ownership thing is just a warning, it's not critical; it's just that Tom built the source rpm and it therefore recorded the files as being owned by "spot" :)
The man files thing is easiest dealt with by changing the spec file as someone suggested (it's just a policy difference; Red Hat / Fedora still uses gzip, Mandrake apparently uses bzip2, for manpages).
| |