[sles-beta] SLES12 x86_64 RC3 zypper problem: requires ruby(abi) = 2.1.0, but this requirement cannot be provided

urs.frey at post.ch urs.frey at post.ch
Mon Sep 15 04:27:29 MDT 2014


Hello Marcus

Quite cryptographic your informatin

>> <rpm:entry name="rubygem(ruby:2.1.0:stomp:1.3.2)" flags="EQ"
>> epoch="0" ver="1.3.2"/>

>so you have a relatively recent ruby-common package. it generates the
>right provides.

>> <rpm:entry name="ruby(abi)" flags="EQ" epoch="0" ver="2.1.0"/>

Guess you are talking about repodata/primary.xml.gz entry above, created using "createrepo ."

</package>
<package type="rpm">
  <name>pst-rubygem-stomp-doc</name>
  <arch>x86_64</arch>
  <version epoch="0" ver="1.3.2" rel="1"/>
  <checksum type="sha" pkgid="YES">5bdafd1e190887c96ee893d57dfb0edf65a017cc</checksum>
  <summary>RDoc documentation for stomp</summary>
  <description>Documentation generated at gem installation time.
Usually in RDoc and RI formats.</description>
  <packager></packager>
  <url>https://github.com/stompgem/stomp</url>
  <time file="1410534064" build="1410533812"/>
  <size package="114374" installed="279474" archive="398896"/>
<location href="x86_64/pst-rubygem-stomp-doc-1.3.2-1.x86_64.rpm"/>
  <format>
    <rpm:license>Apache License Version 2.0</rpm:license>
    <rpm:vendor>Die Schweizerische Post</rpm:vendor>
    <rpm:group>Development/Languages/Ruby</rpm:group>
    <rpm:buildhost>h05cni.pnet.ch</rpm:buildhost>
    <rpm:sourcerpm>pst-rubygem-stomp-1.3.2-1.src.rpm</rpm:sourcerpm>
    <rpm:header-range start="280" end="71844"/>
    <rpm:provides>
      <rpm:entry name="pst-rubygem-stomp-doc" flags="EQ" epoch="0" ver="1.3.2" rel="1"/>
      <rpm:entry name="pst-rubygem-stomp-doc(x86-64)" flags="EQ" epoch="0" ver="1.3.2" rel="1"/>
    </rpm:provides>
    <rpm:requires>
      <rpm:entry name="pst-rubygem-stomp" flags="EQ" epoch="0" ver="1.3.2"/>
    </rpm:requires>
  </format>
</package>



>but the wrong requires here

>1. rpm -qp --requires x86_64/pst-rubygem-stomp-1.3.2-1.x86_64.rpm
>   rpm -qp --provides x86_64/pst-rubygem-stomp-1.3.2-1.x86_64.rpm
What exactly do you mean?
v03g27:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 # rpm -qp --requires pst-rubygem-stomp-1.3.2-1.x86_64.rpm
/usr/bin/ruby
/usr/bin/ruby.ruby2.1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
ruby(abi) = ruby:2.1.0
rpmlib(PayloadIsLzma) <= 4.4.6-1
v03g27:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 #
v03g27:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 # rpm -qp --provides pst-rubygem-stomp-1.3.2-1.x86_64.rpm
pst-rubygem-stomp = 1.3.2-1
pst-rubygem-stomp(x86-64) = 1.3.2-1
rubygem(ruby:2.1.0:stomp) = 1.3.2
rubygem(ruby:2.1.0:stomp:1) = 1.3.2
rubygem(ruby:2.1.0:stomp:1.3) = 1.3.2
rubygem(ruby:2.1.0:stomp:1.3.2) = 1.3.2
rubygem(stomp) = 1.3.2
v03g27:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 #


>2. please make sure this is not some caching you enabled in createrepo.
Sorry, but what do you exactly mean? 
I am using createrepo like this
# cd /appl/pstkits/pstaddon/SLES12_64/post
# createrepo .
No -c (--cachedir) or similar

>3. did you bump release numbers when rebuilding. if not, this might be
>   the cause for the broken requires.
What do you exactly mean?

I am having a fresh installation on the client, so there is no cache
On the repository before rebuilding I remove all packages and the path repodata
Then I rsync the RPMs from the build server to the repo server and as last step I do a createrepo to build the entries under repodata.
So I might exclude what you might have suspected.

By the way I rebuilt the package on my freshly installed SLES12 RC3 server, then I installed apache2, configured it and copied the freshly built rpm to a new path, did a createrepo and then published this path in apache2.
The I removed my previously not working zypper repo with the OEM packages
Finally I added this apache2 published path from the local server with zypper as a new repository.

So I have SLES12 RC3 on Testserver A
Built custom RPM on SLES12 RC3 Testserver A
Installed apache2 on Testserver A
Created repo on Testserver A
Added zypper repo http on Testserver A

=> zypper had still the same error

Conclusion
Whatever you mean: I claim createrepo on SLES12 RC3 is not working anymore

regards



Urs Frey                                              
Post CH AG
Informationstechnologie
IT Betrieb 
Webergutstrasse 12 
3030 Bern (Zollikofen) 
Telefon : ++41 (0)58 338 58 70 
FAX     : ++41 (0)58 667 30 07 
E-Mail:   urs.frey at post.ch


-----Ursprüngliche Nachricht-----
Von: Marcus Rückert [mailto:mrueckert at suse.de] 
Gesendet: Monday, September 15, 2014 12:05 PM
An: Frey Urs, IT222
Cc: fcrozat at suse.com; sles-beta at lists.suse.com
Betreff: Re: [sles-beta] SLES12 x86_64 RC3 zypper problem: requires ruby(abi) = 2.1.0, but this requirement cannot be provided

On Fri, 12 Sep 2014 15:25:32 +0000
<urs.frey at post.ch> wrote:

> <rpm:entry name="rubygem(ruby:2.1.0:stomp:1.3.2)" flags="EQ"
> epoch="0" ver="1.3.2"/>

so you have a relatively recent ruby-common package. it generates the
right provides.

> <rpm:entry name="ruby(abi)" flags="EQ" epoch="0" ver="2.1.0"/>

but the wrong requires here

1. rpm -qp --requires x86_64/pst-rubygem-stomp-1.3.2-1.x86_64.rpm
   rpm -qp --provides x86_64/pst-rubygem-stomp-1.3.2-1.x86_64.rpm
2. please make sure this is not some caching you enabled in createrepo.
3. did you bump release numbers when rebuilding. if not, this might be
   the cause for the broken requires.

-- 
          openSUSE - SUSE Linux is my linux
              openSUSE is good for you
                  www.opensuse.org


More information about the sles-beta mailing list