On Tue, Jun 04, 2013 at 06:55:12PM +0200, Olaf Hering wrote:
> I'm trying to create a list of dependencies for a given list of package
> names during package build. The steps are like this:
> - put "# needsbinariesforbuild" into libguestfs.spec
> - symlink /.build.binaries/* to a private $tmpdir
> - run "createrepo $tmpdir"
> - create a private repos.d with a single repo pointing to that $tmpdir
> - call 'zypper ... install --dry-run --download-only module-init-tools'
> This fails because module-init-tools.spec has "PreReq: /usr/bin/eu-nm",
> which comes from elfutils. Putting elfutils into BuildRequires puts this
> package also into /.build.binaries/. But createrepo still fails to
> create a dependency for /usr/bin/eu-nm.

It shouldn't create a dependency but it should create a
line in the elfutils section. Isn't that the case?

> After poking around in my 11.4 repo data I found /usr/bin/eu-nm in
> "suse/setup/descr/packages.gz", which is eventually the place where
> libzypp is looking for further dependencies. I see a "Req: /usr/bin/eu-nm"
> in module-init-tools and a "Prv: /usr/bin/eu-nm" in elfutils in that file.

Susetags repos don't have a "file" section, but add files directly
to the package provides list.


Michael Schroeder                                   m...@suse.de
SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org

Reply via email to