Mailinglist Archive: opensuse-buildservice (184 mails)

< Previous Next >
Re: [opensuse-buildservice] Making the build script solve package dependencies
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Wed, 15 Oct 2008 09:26:45 +0200
  • Message-id: <200810150926.46128.adrian@xxxxxxx>
On Wednesday 15 October 2008 00:17:35 wrote David Bolt:
On Thu, 9 Oct 2008, David Bolt wrote:-

On Thu, 9 Oct 2008, Marcus Meissner wrote:-

<snip>

sitescooper should just not provide the stuff. There lies the fix :)

I solved the sitescooper problem by just renaming it and specifying the
specific RPM directories. However, that didn't solve the underlying
issue where if there are two packages that would satisfy a dependency,
the latest version isn't chosen. An example is like this run:

lion:~ # build --ccache --clean --rpms
/mounts/dav2/backups/backups/RPMS-10.3/ppc:/m
ounts/dav2/backups/backups/RPMS-10.3/noarch:/mounts/dav2/backups/RPMS/DISTR
O/10.3/pp
c:/mounts/dav2/backups/RPMS/DISTRO/10.3/noarch:/mounts/dav2/backups/RPMS/OT
HERS/10.3
/ppc:/mounts/dav2/backups/RPMS/OTHERS/10.3/noarch:/mounts/cobra-mk3/local/o
penSUSE-
10.3-GM/suse/ppc:/mounts/cobra-mk3/local/openSUSE-10.3-GM/suse/noarch:/moun
ts/playin g/share/suse/i386/update/10.3 --root /local/build-root-10.3 --arch
ppc /usr/src/pack ages/SOURCES/kslide-1.0-2.1.suse103.src.rpm
logging output to /local/build-root-10.3/.build.log...
Memory limit set to 255828KB
Using BUILD_ROOT=/local/build-root-10.3
Using
BUILD_RPMS=/mounts/dav2/backups/backups/RPMS-10.3/ppc:/mounts/dav2/backups/
bac
kups/RPMS-10.3/noarch:/mounts/dav2/backups/RPMS/DISTRO/10.3/ppc:/mounts/dav
2/backups
/RPMS/DISTRO/10.3/noarch:/mounts/dav2/backups/RPMS/OTHERS/10.3/ppc:/mounts/
dav2/back
ups/RPMS/OTHERS/10.3/noarch:/mounts/cobra-mk3/local/openSUSE-10.3-GM/suse/p
pc:/mount
s/cobra-mk3/local/openSUSE-10.3-GM/suse/noarch:/mounts/playing/share/suse/i
386/updat e/10.3
Using BUILD_ARCH=ppc


lion started "build kslide-1.0-2.1.suse103.src.rpm" at Tue Oct 14 23:02:44
BST 2008.


processing src rpm
/usr/src/packages/SOURCES/kslide-1.0-2.1.suse103.src.rpm...
init_buildsystem --clean /local/build-root-10.3/.build-srcdir/kslide.spec
ccache ... expanding package dependencies...
expansion error
have choice for jack-devel needed by arts-devel: jack-devel libjack-devel
have choice for libjack.so.0 needed by arts: libjack libjack0
lion:~ #

In this case, libjack0 and libjack-devel provide newer versions but the
build script won't continue because it can't choose my package.

What I need help with is a way to force build to use the latest version.
Is there any way of making build prefer RPMs I've built and stored in
one path, to the distro supplied versions stored in another path?

If this is an upstream change, this might have defined already in 10.3 project
config, so just using "osc build ..." would help.

If not, you can set a "Prefer: libjack0" or "Prefer: -libjack" in the project
config of your project. You can do so by

osc meta prjconf -e $your_project

and add the mentioned Prefer lines there. Note, you need to use "osc build"
afterwards.

bye
adrian


--

Adrian Schroeter
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
email: adrian@xxxxxxx

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >