Discussion:
building kdebase-3.5.6-3.src.rpm - missing xorg-x11-devel ?
Chris Jones
2007-02-18 22:56:02 UTC
Permalink
Hi,

I'm trying to build myself kdebase-3.5.6-3.src.rpm . Originally U had a buch
of missing deps, which I was able to install, but now I am stuck on

***@localhost ~/rpmbuild > rpmbuild -bb --target=`uname -p`
SPECS/kdebase.spec
Building target platforms: i686
Building for target i686
error: Failed build dependencies:
xorg-x11-devel is needed by kdebase-3.5.6-3.i686

as far as I can tell package 'xorg-x11-devel' doesn't exist - what am I
missing (I'm sure its my fault...)

Chris


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
José Matos
2007-02-18 23:24:15 UTC
Permalink
Post by Chris Jones
Hi,
I'm trying to build myself kdebase-3.5.6-3.src.rpm . Originally U had a
buch of missing deps, which I was able to install, but now I am stuck on
SPECS/kdebase.spec
Building target platforms: i686
Building for target i686
xorg-x11-devel is needed by kdebase-3.5.6-3.i686
as far as I can tell package 'xorg-x11-devel' doesn't exist - what am I
missing (I'm sure its my fault...)
I tried to find what package provides xorg-x11-devel for FC6 and I failed.
Just for reference I have used repoquery and "yum provides".

A wild guess, could it be that the requirement is placed in a block
conditionally defined for older releases and for some reason it does not
resolve correctly in your setup?

Most of the packages that build in mock don't build correctly in rpmbuild
unless the same variables are defined: %{fedora}, %{disttag}, ...
Post by Chris Jones
Chris
--
José Abílio

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Chris Jones
2007-02-18 23:44:23 UTC
Permalink
Post by José Matos
Most of the packages that build in mock don't build correctly in rpmbuild
unless the same variables are defined: %{fedora}, %{disttag}, ...
yes, the fedora tag thing was failing. See my last post.

Forgive a newbie question, but what is mock ? I've built a few SRPMS under
rpmbuild but this is my first bash at a KDE one. I just tried the way that
has worked before for me. Is there some better way to do this for KDE ?

Chris


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
José Matos
2007-02-19 00:03:48 UTC
Permalink
Post by Chris Jones
Post by José Matos
Most of the packages that build in mock don't build correctly in
rpmbuild unless the same variables are defined: %{fedora}, %{disttag},
...
yes, the fedora tag thing was failing. See my last post.
Forgive a newbie question, but what is mock ? I've built a few SRPMS under
rpmbuild but this is my first bash at a KDE one. I just tried the way that
has worked before for me. Is there some better way to do this for KDE ?
$ yum info mock
...
Available Packages
Name : mock
Arch : i386
Version: 0.6.11
Release: 1.fc6
Size : 34 k
Repo : extras
Summary: Builds packages inside chroots
Description:
Mock takes a srpm and builds it in a chroot

The advantage of this approach is building the srpm inside a chroot you
avoid any spurious dependencies your package could have, and are not
declared.

Suppose that you have installed library foo, the package that you are
building tests for its presence and finds it when building the package.

Now you could have a problem, in order for your package to work correctly in
other computers it needs that either the other computers have that package
installed or that the dependence can be satisfied by the package manager. The
purpose of those clean rooms building environment is to allow predictable and
reproducible results when building packages.

Another system similar to mock is mach (actually the name mock is an attempt
to mock of mach ;-) ).

$ yum info mach
...
Available Packages
Name : mach
Arch : i386
Version: 0.9.1
Release: 1.fc6
Size : 78 k
Repo : extras
Summary: make a chroot
Description:
mach makes a chroot.
Using yum or apt-get and a suid binary, it manages to install clean chroot
environments based on the original packages for that distribution.

The clean root can be used to run jail roots, to create image files, or
to build clean packages.
Post by Chris Jones
Chris
I hope this helps,
--
José Abílio

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Chris Jones
2007-02-19 00:18:35 UTC
Permalink
Post by José Matos
I hope this helps,
Yes, thanks. I've installed mock and been investigating it. However, I cannot
figure out how I would do one thing. What I want to do is install an srpm,
modify the spec file (add a patch) and then carry on building the rpm.

With rpmbuild this is trivial - I'm doing it now with kdebase - but I cannot
figure out how to do I would do this with mock ? Is it also possible ?

(Apologies if I've just missed the option in man mock... its getting late
here)

cheers Chris

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Rex Dieter
2007-02-19 14:35:20 UTC
Permalink
Post by Chris Jones
Post by José Matos
I hope this helps,
Yes, thanks. I've installed mock and been investigating it. However, I
cannot figure out how I would do one thing. What I want to do is install
an srpm, modify the spec file (add a patch) and then carry on building the
rpm.
With rpmbuild this is trivial - I'm doing it now with kdebase - but I
cannot figure out how to do I would do this with mock ? Is it also
possible ?
mock takes srpm's as input, similar to how rpmbiuld --rebuild works.

-- Rex


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Loading...