LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RPM build fails (https://www.linuxquestions.org/questions/linux-software-2/rpm-build-fails-497455/)

Musikolo 11-01-2006 02:37 AM

RPM build fails
 
Hi folks, I'm trying to buld a RPM package for HPLIP, but I have an issue when the system is looking for the Requires dependencies. I've looked into it but I haven't found any help at all. Thus, I hope you can give a hand to fix this error:

Code:

...etc.

+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
+ /usr/lib/rpm/yoperfixes.sh
Using external helpers to list the dependencies ...
Stripping files ...
Removing Libtool Archives
warning: File listed twice: hplip-1.6.10.tar.gz
Processing files: hplip-1.6.10-1
Finding  Provides: /usr/lib/rpm/find-provides
Finding  Requires: /usr/lib/rpm/find-requires
error: line 76: Dependency "" must begin with alpha-numeric, '_' or '/': """
/bin/bash
/usr/bin/env
/usr/bin/perl
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libcups.so.2
libdl.so.2
libdl.so.2(GLIBC_2.0)
libdl.so.2(GLIBC_2.1)
libgcc_s.so.1
libgcc_s.so.1(GCC_3.0)
libhpip.so.0
libjpeg.so.62
libm.so.6
libm.so.6(GLIBC_2.0)
libpthread.so.0
libpthread.so.0(GLIBC_2.0)
libpthread.so.0(GLIBC_2.1)
libstdc++.so.6
libstdc++.so.6(GLIBCXX_3.4)
libusb-0.1.so.4
perl(Cwd)
perl(Data::Dumper)
perl(IO::Handle)
perl(POSIX)
perl(sigtrap)
perl(strict)

error: Failed to find Requires:
Provides: cupsext.so libhpip.so.0 libsane-hpaio.so.1 pcardext.so
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/sh /bin/sh rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/hplip-buildroot
Wrote: /usr/src/yoper/SRPMS/hplip-1.6.10-1.src.rpm
Wrote: /usr/src/yoper/RPMS/hplip-1.6.10-1.i686.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.53291
+ umask 022
+ cd /usr/src/yoper/BUILD
+ cd hplip-1.6.10
+ rm -rf /usr/src/yoper/BUILD/hplip-1.6.10
+ rm -rf /var/tmp/hplip-buildroot
+ exit 0

The configure, make and make install do their work fine, but it's at the end when I get the above error. Although the exit code is 0, you can see some lines above that a couple of errors are thrown.

I hope you can shed some light on this issue, because I really need after many days trying to sort it out on my own. Any help will be really appreciated!

Thanks in advance. :)

unSpawn 11-01-2006 06:18 AM

error: line 76: Dependency "" must begin with alpha-numeric, '_' or '/': """
What does "grep ^[B,R].*equires: /your/specfile.spec" return?

Musikolo 11-01-2006 06:25 AM

Quote:

Originally Posted by unSpawn
error: line 76: Dependency "" must begin with alpha-numeric, '_' or '/': """
What does "grep ^[B,R].*equires: /your/specfile.spec" return?

Code:

mach@Yoper ~/SPECS $ grep ^[B,R].*equires: hplip.spec
BuildRequires:  gcc libusb-devel cups-devel python-devel libjpeg-devel chkconfig ghostscript-cups qt-devel pyqt

I hope this helps to find out what's going on... :)

unSpawn 11-01-2006 06:56 AM

No, it doesn't. The BuildRequires line looks sane to me. Could be an error in one of the rpm scripts because it tells you about a dependency called "" (empty). Since you do have the RPM's you should decide if you want to pursue this or if you (if you didn't edit the spec file or .src.rpm or tarball) just want to add a bugtrack item for the packages maintainer. If you want to pursue this then I'd like a download location URI for the .src.rpm or tarball (and the specfile: if you edited it).

Musikolo 11-01-2006 10:04 AM

Well, here you have all you need, I hope: http://88.198.41.209/build/yoper-3.0...er_3.0_alpha_/

I don't think it's a bug in the source, although I don't discard it fully. I'll try to build an older version, just for the sake of trying something different.

Thanks again for you help! ;)

unSpawn 11-01-2006 11:46 AM

Hmm. I've looked around a bit and most of the error messages are about not filling variables of the "%{?term:} type" which you should handle doing "rpmbuild --define term x y". Now the .spec file you posted has several lines commented out so I'm wondering if it is exactly the one from the RPM or your own local modified copy. If it is you best post a diff between them.

lordtweety 11-27-2006 08:43 AM

Hi Musikolo,

I will try and build it using your spec file and see if I get the same problem.

lordtweety 11-27-2006 05:37 PM

Well, I definitely found the same issue

I've had a look over the rpmbuild scripts we use and can't see anything that could be causing it other than an issue with hplip itself.

I'll confirm that as I work it out more.

drkchaudhry 06-13-2007 11:55 AM

hplip dependencies
 
Going through the forums, I feel linux users should not use hp products or hp users should not use linux. Running linux puppy I have been denied printing for a week.
1. sh python
displays
Python 2.4(#1, Jun 13, 2007....)
hplip says DEPENDENCY PYTHON DEVEL MISSING
2. lsb-sdk 3.1.1-5 installed with rpm
hplip says DEPENDENCY LSB MISSING
Why do HP people not specify version and provide link to a source?
Dr K Chaudhry


All times are GMT -5. The time now is 11:45 AM.