[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
Fri Sep 12 10:42:59 MDT 2014


Hi all
Tried to dig deeper into the stuff
I installed an apache webserver directly on the host I am building the packages, SLES12.
Then I built ma repository directly in this build server using createrepo
Then I attached the directory as rpm-md with zypper

Conclusion:
Installation  locally using rpm or zypper does work
But as soon as I try to create a repo with createrepo and install http the ruby(abi) stuff does not work.
All can be easily reproduced directly on SLES12 RC3
In the attachment you will find source and spec to reproduce for rubygem-stomp

h05cni:/appl/pstkits/pstaddon/SLES12_64/post # uname -a
Linux h05cni 3.12.28-2-default #1 SMP Mon Sep 8 11:15:37 UTC 2014 (aff039d) x86_64 x86_64 x86_64 GNU/Linux
h05cni:/appl/pstkits/pstaddon/SLES12_64/post # cat /etc/issue

Welcome to SUSE Linux Enterprise Server 12 RC3 (x86_64) - Kernel \r (\l).

h05cni:/appl/pstkits/pstaddon/SLES12_64/post #
h05cni:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 # zypper in pst-rubygem-stomp-1.3.2-1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  pst-rubygem-stomp

1 new package to install.
Overall download size: 138.4 KiB. Already cached: 0 B  After the operation, additional 399.2 KiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package pst-rubygem-stomp-1.3.2-1.x86_64                                                (1/1), 138.4 KiB (399.2 KiB unpacked)
Checking for file conflicts: .....................................................................................................[done]
(1/1) Installing: pst-rubygem-stomp-1.3.2-1 ......................................................................................[done]
h05cni:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 #

h05cni:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 # zypper repos -ud | grep -i post
2 | http-172.27.40.68-44fc3b8b | Post-Specific-Kits 12    | Yes     | Yes     |   99     | rpm-md | http://10.226.169.29/pstkits/pstaddon/SLES12_64 |
h05cni:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 # grep h05cni /etc/hosts
10.226.169.29   h05cni.pnet.ch h05cni
h05cni:/appl/pstkits/pstaddon/SLES12_64/post/x86_64 #

h05cni:/appl/pstkits/pstaddon/SLES12_64/post # createrepo .
Spawning worker 0 with 1 pkgs
Spawning worker 1 with 1 pkgs
Spawning worker 2 with 1 pkgs
Spawning worker 3 with 1 pkgs
Spawning worker 4 with 1 pkgs
Spawning worker 5 with 1 pkgs
Spawning worker 6 with 1 pkgs
Spawning worker 7 with 1 pkgs
Spawning worker 8 with 1 pkgs
Spawning worker 9 with 1 pkgs
Spawning worker 10 with 1 pkgs
Spawning worker 11 with 1 pkgs
Spawning worker 12 with 1 pkgs
Spawning worker 13 with 1 pkgs
Spawning worker 14 with 1 pkgs
Spawning worker 15 with 1 pkgs
Spawning worker 16 with 1 pkgs
Spawning worker 17 with 1 pkgs
Spawning worker 18 with 1 pkgs
Spawning worker 19 with 1 pkgs
Spawning worker 20 with 1 pkgs
Spawning worker 21 with 1 pkgs
Spawning worker 22 with 1 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
h05cni:/appl/pstkits/pstaddon/SLES12_64/post #

h05cni:/appl/pstkits/pstaddon/SLES12_64/post # grep pstkits /etc/apache2/default-server.conf
Alias /pstkits "/appl/pstkits/"
<Directory "/appl/pstkits/">
h05cni:/appl/pstkits/pstaddon/SLES12_64/post # systemctl restart apache2.service
h05cni:/appl/pstkits/pstaddon/SLES12_64/post # systemctl status apache2.service
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: active (running) since Fri 2014-09-12 18:29:23 CEST; 9s ago
  Process: 11041 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
 Main PID: 11062 (httpd2-prefork)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/apache2.service
           ├─11062 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─11079 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─11080 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─11081 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           ├─11082 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
           └─11083 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start

Sep 12 18:29:23 h05cni systemd[1]: Started The Apache Webserver.
h05cni:/appl/pstkits/pstaddon/SLES12_64/post #

h05cni:/appl/pstkits/pstaddon/SLES12_64/post # zypper refresh
Repository 'SLES12-12-0' is up to date.
Repository 'Post-Specific-Kits 12' is up to date.
Repository 'SDK12 12-0' is up to date.
Repository 'Adv-Sys-Mgmt-module 12-0' is up to date.
All repositories have been refreshed.
h05cni:/appl/pstkits/pstaddon/SLES12_64/post # zypper in pst-rubygem-stomp
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides ruby(abi) = 2.1.0 needed by pst-rubygem-stomp-1.3.2-1.x86_64
 Solution 1: do not install pst-rubygem-stomp-1.3.2-1.x86_64
 Solution 2: break pst-rubygem-stomp-1.3.2-1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c):
h05cni:/appl/pstkits/pstaddon/SLES12_64/post #

So I state that this rubygem change with SLES12 RC3 is incompatible with createrepo
It is even incompatible with createrepo on SLES12 RC3


h05cni:/appl/pstkits/pstaddon/SLES12_64/post # uname -a
Linux h05cni 3.12.28-2-default #1 SMP Mon Sep 8 11:15:37 UTC 2014 (aff039d) x86_64 x86_64 x86_64 GNU/Linux
h05cni:/appl/pstkits/pstaddon/SLES12_64/post # cat /etc/issue

Welcome to SUSE Linux Enterprise Server 12 RC3 (x86_64) - Kernel \r (\l).


h05cni:/appl/pstkits/pstaddon/SLES12_64/post #


So there is a real problem now which has to be fixed please



Best 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: Friday, September 12, 2014 4:36 PM
An: Frederic Crozat
Cc: Frey Urs, IT222; 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:57:41 +0200
Frederic Crozat <fcrozat at suse.com> wrote:

> Le vendredi 12 septembre 2014 à 13:47 +0000, urs.frey at post.ch a
> écrit :
> > Hello Frederic
> > 
> > Thank you very much for your answer
> > 
> > See the problem is, that I am really rebuilding on RC3 and still
> > encountering problems
> 
> Let me forward those information to our ruby specialist.
> 
> 
> > 
> > freyu at h05cni:~/rpmbuild/SPECS> uname -a
> > Linux h05cni 3.12.28-2-default #1 SMP Mon Sep 8 11:15:37 UTC 2014
> > (aff039d) x86_64 x86_64 x86_64 GNU/Linux
> > freyu at h05cni:~/rpmbuild/SPECS> rpmbuild -ba --clean
> > rubygem-stomp.spec . . . freyu at h05cni:~/rpmbuild/SPECS> rpm -qp
> > --requires ../RPMS/x86_64/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
> > freyu at h05cni:~/rpmbuild/SPECS>
> > 
> > h05cni:/home/freyu/rpmbuild/RPMS/x86_64 # uname -a
> > Linux h05cni 3.12.28-2-default #1 SMP Mon Sep 8 11:15:37 UTC 2014
> > (aff039d) x86_64 x86_64 x86_64 GNU/Linux
> > h05cni:/home/freyu/rpmbuild/RPMS/x86_64 # rpm -ivh
> > pst-rubygem-stomp-1.3.2-1.x86_64.rpm
> > Preparing...
> > ################################# [100%] Updating / installing...
> > 1:pst-rubygem-stomp-1.3.2-1
> > ################################# [100%]
> > h05cni:/home/freyu/rpmbuild/RPMS/x86_64 # rpm -e pst-rubygem-stomp
> > h05cni:/home/freyu/rpmbuild/RPMS/x86_64 # uname -a Linux h05cni
> > 3.12.28-2-default #1 SMP Mon Sep 8 11:15:37 UTC 2014 (aff039d)
> > x86_64 x86_64 x86_64 GNU/Linux
> > h05cni:/home/freyu/rpmbuild/RPMS/x86_64 #
> > 
> > 
> > On my network install server, the package uploaded, made ready for
> > use with zypper ===========================================
> > 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

as you see here it generated the correct ruby(abi) requires.

> > h05cni:~ # zypper in pst-rubygem-stomp

could you copy over the file you just built above and try

zypper in pst-rubygem-stomp-1.3.2-1.x86_64.rpm

It looks like the package it tries to install from the repository has
not been rebuilt yet.

   darix

-- 
          openSUSE - SUSE Linux is my linux
              openSUSE is good for you
                  www.opensuse.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubygem_stomp.tgz
Type: application/x-compressed
Size: 74050 bytes
Desc: rubygem_stomp.tgz
URL: <http://lists.suse.com/mailman/private/sles-beta/attachments/20140912/022ef171/attachment.bin>


More information about the sles-beta mailing list