yum-builddep not seeing localinstall of rpm

Issues related to software problems.
Post Reply
sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

yum-builddep not seeing localinstall of rpm

Post by sturdyworks » 2012/01/23 20:27:35

Is there such thing as a localhost yum repo? After I create and sign a new RPM yum sees it but yum-builddep does not...

Here's what I have been up to...

I download the src.rpm for emacs (http://vault.centos.org/6.2/os/Source/SPackages/emacs-23.1-21.el6.centos.src.rpm) and ran yum-builddep on it to install libraries needed to compile the src.rpm

I got the error below because 5.x repo does not have libotf

$ sudo yum-builddep emacs-23.1-21.el6.centos.src.rpm
...
Error: No Package found for libotf-devel


So I downloaded src.rpm for libotf (http://vault.centos.org/6.2/os/Source/SPackages/libotf-0.9.9-3.1.el6.src.rpm) and build and installed that. No problemo using guide lines from CentOS docs.

$ rpm --nomd5 -iv libotf-0.9.9-3.1.el6.src.rpm
...
$ cd ~/rpmbuild/SPECS
...
$ rpmbuild -ba --sign libotf.spec
...
$ cd ~/rpmbuild/RPMS/i386
...
$ rpm -K libotf-0.9.9-3.1.i386.rpm
libotf-0.9.9-3.1.i386.rpm: (sha1) dsa sha1 md5 gpg OK
...
$ rpm -K libotf-debuginfo-0.9.9-3.1.i386.rpm
libotf-debuginfo-0.9.9-3.1.i386.rpm: (sha1) dsa sha1 md5 gpg OK
...
$ sudo yum install libotf-0.9.9-3.1.i386.rpm
...
$ sudo yum install libotf-devel-0.9.9-3.1.i386.rpm
...
$ yum list "libotf*"
Installed Packages
libotf.i386 0.9.9-3.1 installed
libotf-devel.i386 0.9.9-3.1 installed

My problem is that yum sees new libotf but yum-builddep does not. If I run yum-builddep again I get same error:

$ sudo yum-builddep emacs-23.1-21.el6.centos.src.rpm
...
Error: No Package found for libotf-devel

I think I must new enable some sort of localhost repo or something

What's up!

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

yum-builddep not seeing localinstall of rpm

Post by pschaff » 2012/01/24 19:47:59

Run "yum clean all" and try again. If that fails to help, please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh package" and showing us the output file.

sturdyworks
Posts: 22
Joined: 2011/06/12 23:35:19
Location: Orange County, CA area
Contact:

Re: yum-builddep not seeing localinstall of rpm

Post by sturdyworks » 2012/01/29 01:43:26

I have attached output of 'getinfo.sh package > ./getinfo-package.log'

yum-builddep is (still) not seeing libotf, lib-devel after a cleanup. So, still not sure what to think.
Error: No Package found for libotf-devel
You can see the CLEANUP EXERSIZE I did below.

I have noticed that all the SRPM files I build end up as orphans

$ package-cleanup --orphans | sort
atk-1.28.0-2.i386
atk-devel-1.28.0-2.i386
cairo-1.8.8-3.1.i386
cairo-devel-1.8.8-3.1.i386
fontconfig-2.8.0-3.i386
fontconfig-devel-2.8.0-3.i386
glib2-2.22.5-6.i386
glib2-devel-2.22.5-6.i386
libotf-0.9.9-3.1.i386
libotf-devel-0.9.9-3.1.i386
libthai-0.1.12-3.i386
libthai-devel-0.1.12-3.i386
m4-1.4.13-5.i386
pixman-0.18.4-1.1.i386
pixman-devel-0.18.4-1.1.i386
...
Setting up yum
xorg-x11-util-macros-1.14.0-2.noarch

Also have some noach orphans...

autoconf-2.63-5.1.noarch
epel-release-5-4.noarch
perl-Error-0.17010-1.el5.noarch
remi-release-5-8.el5.remi.noarch
xorg-x11-util-macros-1.14.0-2.noarch

And, also have some mysterious (at least for me) orphans...

cabextract-1.4-1.el5.rf.i386
emacs-git-1.7.4.1-1.el5.i386
epel-release-5-4.noarch
git-1.7.4.1-1.el5.i386
git-daemon-1.7.4.1-1.el5.i386
jre-1.6.0_24-fcs.i586
kernel-2.6.18-238.el5.i686
perl-Git-1.7.4.1-1.el5.i386
rpmforge-release-0.5.2-2.el5.rf.i386
Setting up yum
xorg-x11-util-macros-1.14.0-2.noarch

I am still thinking that setting up a local repository may help in some way...

sturdyworks


POORMANS yum-builddep
---------------------------------------------

sed helps me a bit by installing simple stuff stuff from the the BuildRequires sections:

$ sed -n -e 's/,/ /g' -e 's/^BuildRequires: //p' emacs.spec | xargs sudo yum -y install

That leaves the more complicated stuff to figure out, which can be viewed with

rpm -Vp emacs-23.1-21.el6.centos.src.rpm | grep Unsatisfied


CLEANUP EXCERSIZE
--------------------------------------

$ package-cleanup --dupes
Setting up yum

$ package-cleanup --problems
Setting up yum
Reading local RPM database
Processing all local requires
No problems found

$ sudo yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors

$ sudo yum-builddep emacs-23.1-21.el6.centos.src.rpm
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.bluehost.com
* centosplus: mirrors.versaweb.com
* extras: mirror.singleedge.com
* updates: mirror.hmc.edu
adobe-linux-i386 | 951 B 00:00
adobe-linux-i386/primary | 11 kB 00:00
adobe-linux-i386 17/17
base | 1.1 kB 00:00
base/primary | 961 kB 00:34
base 2705/2705
centosplus | 951 B 00:00
centosplus/primary | 82 kB 00:00
centosplus 74/74
contrib | 951 B 00:00
contrib/primary | 202 B 00:00
extras | 2.1 kB 00:00
extras/primary_db | 171 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 488 kB 00:00
Checking for new repos for mirrors
atk-devel-1.12.2-1.fc6.i386
cairo-devel-1.2.4-5.el5.i386
desktop-file-utils-0.10-7.i386
freetype-devel-2.2.1-28.el5_7.2.i386
fontconfig-devel-2.4.1-7.el5.i386
dbus-devel-1.1.2-16.el5_7.i386
giflib-devel-4.1.3-7.3.3.el5.i386
glibc-devel-2.5-65.el5_7.1.i386
gtk2-devel-2.10.4-21.el5_7.7.i386
2:libpng-devel-1.2.10-7.1.el5_7.5.i386
libjpeg-devel-6b-37.i386
libtiff-devel-3.8.2-7.el5_6.7.i386
libX11-devel-1.0.3-11.el5_7.1.i386
libXau-devel-1.0.1-3.1.i386
libXdmcp-devel-1.0.1-2.1.i386
libXrender-devel-0.9.1-3.1.i386
libXt-devel-1.0.2-3.2.el5.i386
libXpm-devel-3.5.5-3.i386
ncurses-devel-5.5-24.20060715.i386
xorg-x11-proto-devel-7.1-13.el5.i386
zlib-devel-1.2.3-4.el5.i386
autoconf-2.59-12.noarch
automake-1.9.6-2.3.el5.noarch
bzip2-1.0.3-6.el5_5.i386
cairo-1.2.4-5.el5.i386
texinfo-4.8-14.el5.i386
librsvg2-devel-2.16.1-1.el5.i386
m17n-lib-devel-1.3.3-1.1.fc6.i386
Error: No Package found for libotf-devel

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: yum-builddep not seeing localinstall of rpm

Post by pschaff » 2012/01/29 02:13:41

[quote]
sturdyworks wrote:
I have attached output of 'getinfo.sh package > ./getinfo-package.log'[/quote]
Multiple problems there.

1. Per [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28726&forum=54]Readme First[/url] - [b]The forum attachment function is permanently broken, so please do not try to "Attach file" to the post. [/b]
2. You redirected the screen output from the script to a file, so you missed the instructions about where to file the [b][i]real[/i][/b] output in /tmp/ and what to do with it.
3. You neglected to notice that the information is still missing.

[quote]
yum-builddep is (still) not seeing libotf, lib-devel after a cleanup. So, still not sure what to think.
Error: No Package found for libotf-devel[/quote]
Perhaps because it is not in any of the well-known repos, and/or the version is not as required by the package you are building.

[quote]
I have noticed that all the SRPM files I build end up as orphans[/quote]
Because they are not in a repository. You can [url=http://wiki.centos.org/HowTos/CreateLocalRepos]create one[/url] to take care of that.

[quote]
...
And, also have some mysterious (at least for me) orphans...[/quote]
Apparently the repos for those are not enabled by default.

[quote]
I am still thinking that setting up a local repository may help in some way...[/quote]
Yes. See above.

[quote]
...
Error: No Package found for libotf-devel[/quote]
No. See above.

Edit: Just checked the spec file for emacs and there is no version requirement. Can't say why yum-builddep doesn't see the locally-built package. Perhaps a bug. Seems that should not stop you from proceeding as long as rpmbuild sees it.

Edit2: I see that your libotf-devel is i386 and the one on CentOS-6 is i686. There are also a lot of things in the spec file related to [b]setarch[/b] and various issues with it. Perhaps "setarch i386" is required, or maybe libotf and libotf-devel need to be built for i686. Just guessing...

Post Reply