Rebuilding the SUSE src.rpm for KDE3.2
Hello all, I decided to d/l the .src.rpms instead and build it myself. Usually this works quite fine. This time I'm having a few small problems though. All (so far) are with the building of the resulting rpms - compiling goes fine. When doing rpmbuild --rebuild libxslt-1.0.33-0.src.rpm I see: /usr/bin/install -c -m 0644 ./html/index.sgml /var/tmp/libxslt-1.0.33-build/usr/share/doc/libxslt-1.0.33/html /usr/bin/install: cannot stat `./html/index.sgml': No such file or directory make[2]: [install-data-local] Error 1 (ignored) compiling goes on, but then ends with: Finding Provides: /usr/lib/rpm/find-provides Finding Requires: /usr/lib/rpm/find-requires Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: libxslt = 1.0.33 libxml2-devel >= 2.5.6 /bin/sh Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/libxslt-1.0.33-build error: Installed (but unpackaged) file(s) found: /usr/lib/python2.3/site-packages/libxslt.py /usr/lib/python2.3/site-packages/libxsltmod.a /usr/lib/python2.3/site-packages/libxsltmod.la /usr/lib/python2.3/site-packages/libxsltmod.so RPM build errors: Installed (but unpackaged) file(s) found: /usr/lib/python2.3/site-packages/libxslt.py /usr/lib/python2.3/site-packages/libxsltmod.a /usr/lib/python2.3/site-packages/libxsltmod.la /usr/lib/python2.3/site-packages/libxsltmod.so I've done it over and over to try to figure out exactly what goes wrong. The whole compile goes fine. It is only in the process of building the rpms that the problem occurs. The files it complains about are in fact there, and they are created by the build process. I tried various mods to the spec file too, with no luck. I also checked the spec file for the required packages to build, and made sure they are all installed as well as their -devel packages. Other packages: kde-base: + /usr/lib/rpm/suse_update_desktop_file.sh kate TextEditor ERROR: suse_update_desktop_file: unable to find kate + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.12911 (%install) Most of the errors are similar to this. Oh, and some of the specfiles mention kde3-devel-packages - there isn't such a package listed in Yast2? Any tips on how to get past this would be appreciated. Also, I thought of doing the compiling and then making the rpms with checkinstall, but as far as I can see checkinstall wouldn't split off the -devel package. Is there a way to use rpmbuild on an already compiled source directory? Thank you Kind regards Hans du Plooy hansdp at newingtoncs dot co dot za
Op maandag 9 februari 2004 11:53, schreef Hans du Plooy:
Hello all,
I decided to d/l the .src.rpms instead and build it myself. Usually this works quite fine. This time I'm having a few small problems though. All (so far) are with the building of the resulting rpms - compiling goes fine.
When doing rpmbuild --rebuild libxslt-1.0.33-0.src.rpm I see:
/usr/bin/install -c -m 0644 ./html/index.sgml /var/tmp/libxslt-1.0.33-build/usr/share/doc/libxslt-1.0.33/html /usr/bin/install: cannot stat `./html/index.sgml': No such file or directory make[2]: [install-data-local] Error 1 (ignored)
compiling goes on, but then ends with:
Finding Provides: /usr/lib/rpm/find-provides Finding Requires: /usr/lib/rpm/find-requires Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: libxslt = 1.0.33 libxml2-devel >= 2.5.6 /bin/sh Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/libxslt-1.0.33-build error: Installed (but unpackaged) file(s) found: /usr/lib/python2.3/site-packages/libxslt.py /usr/lib/python2.3/site-packages/libxsltmod.a /usr/lib/python2.3/site-packages/libxsltmod.la /usr/lib/python2.3/site-packages/libxsltmod.so
RPM build errors: Installed (but unpackaged) file(s) found: /usr/lib/python2.3/site-packages/libxslt.py /usr/lib/python2.3/site-packages/libxsltmod.a /usr/lib/python2.3/site-packages/libxsltmod.la /usr/lib/python2.3/site-packages/libxsltmod.so
I've done it over and over to try to figure out exactly what goes wrong. The whole compile goes fine. It is only in the process of building the rpms that the problem occurs. The files it complains about are in fact there, and they are created by the build process. I tried various mods to the spec file too, with no luck.
I also checked the spec file for the required packages to build, and made sure they are all installed as well as their -devel packages.
Other packages: kde-base:
+ /usr/lib/rpm/suse_update_desktop_file.sh kate TextEditor ERROR: suse_update_desktop_file: unable to find kate + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.12911 (%install)
Most of the errors are similar to this.
Oh, and some of the specfiles mention kde3-devel-packages - there isn't such a package listed in Yast2?
Any tips on how to get past this would be appreciated. Also, I thought of doing the compiling and then making the rpms with checkinstall, but as far as I can see checkinstall wouldn't split off the -devel package. Is there a way to use rpmbuild on an already compiled source directory?
Add the above mentioned files (or the dir /usr/lib/python2.3/site-packages/) in the file section of the spec file. -- Richard Bos Without a home the journey is endless
On Monday 09 February 2004 12:54, Richard Bos wrote:
Add the above mentioned files (or the dir /usr/lib/python2.3/site-packages/) in the file section of the spec file.
Thanks Richard, that was quick! I'm trying it out right now, will let you know what happens. Thanks! -- Kind regards Hans du Plooy hansdp at newingtoncs dot co dot za
On Monday 09 February 2004 12:54, Richard Bos wrote:
Add the above mentioned files (or the dir /usr/lib/python2.3/site-packages/) in the file section of the spec file.
Thanks Richard, that fixed it. However, when I try to install the rpms, I get file /usr/lib/python2.3/site-packages/libxsltmod.a from install of libxslt-1.0.33-6 conflicts with file from package libxslt-python-1.0.32-36 Is there a way to let rpmbuild ignore those files? Since they weren't in the specfile in the first place, I'm not sure why rpmbuild complains about them. Or shoud the package libxslt-python be build fro mthe libxslt source too? I checked its file list and it's just those four files and what looks like the usual docs - README, INSTALL, ect. Thanks -- Kind regards Hans du Plooy hansdp at newingtoncs dot co dot za
Op maandag 9 februari 2004 12:59, schreef Hans du Plooy:
On Monday 09 February 2004 12:54, Richard Bos wrote:
Add the above mentioned files (or the dir /usr/lib/python2.3/site-packages/) in the file section of the spec file.
Thanks Richard, that fixed it. However, when I try to install the rpms, I get
file /usr/lib/python2.3/site-packages/libxsltmod.a from install of libxslt-1.0.33-6 conflicts with file from package libxslt-python-1.0.32-36
Is there a way to let rpmbuild ignore those files? Since they weren't in the specfile in the first place, I'm not sure why rpmbuild complains about them. Or shoud the package libxslt-python be build fro mthe libxslt source too? I checked its file list and it's just those four files and what looks like the usual docs - README, INSTALL, ect.
I think that there exist an rpm tag like %{ignore}, just put this in the file section :) Or have that directory removed in the install section, something like rm -f %{build_root}/.../.../... Hope this helps. -- Richard Bos Without a home the journey is endless
On Monday 09 February 2004 21:03, Richard Bos wrote:
I think that there exist an rpm tag like %{ignore}, just put this in the file section :) Or have that directory removed in the install section, something like rm -f %{build_root}/.../.../...
Thanks Richard, I'll try that. I'm still getting errors on some of the other packages where the compile goes fine, but the building the rpm fails with something like "kate not found" when in fact kate was compiled and is there. I got this kdebase and kdeaddons, amongst other. Dankie -- Kind regards Hans du Plooy hansdp at newingtoncs dot co dot za
participants (2)
-
Hans du Plooy
-
Richard Bos