obs-build icon indicating copy to clipboard operation
obs-build copied to clipboard

build fails of repo aliases have spaces in them from opensuse/leap:42.3 container.

Open JohnMalmberg opened this issue 6 years ago • 0 comments

Using a the official Suse opensuse/leap:42.3 container from DockerHub, build using --repo:// is failing because the repo aliases have spaces in them.

Using zypper to rename the repos in the container works around the issue.

The repos with spaces in their names are built into the Suse provided container and are listed here.

00:05:38.793  Step 16/16 : RUN zypper lr --details
00:05:39.052   ---> Running in 199bf90d8c23
00:05:39.052  
00:05:39.620  [91m[0mRepository priorities are without effect. All enabled repositories share the same priority.
00:05:39.620  
00:05:39.620  # | Alias          | Name                               | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
00:05:39.620  --+----------------+------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
00:05:39.620  1 | NON OSS        | NON OSS                            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/42.3/repo/non-oss/suse/   |        
00:05:39.620  2 | NON OSS Update | NON OSS Update                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/non-oss/                   |        
00:05:39.620  3 | OSS            | OSS                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/       |        
00:05:39.620  4 | OSS Update     | OSS Update                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/oss/                       |        
00:05:39.620  5 | openSUSE_Tools | openSUSE.org tools (openSUSE_42.3) | Yes     | (r ) Yes  | No      |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_42.3/ |        

This is the log of the failed build.

00:00:11.472  + rm -rf artifacts/leap42.3/
00:00:11.472  + mkdir -p artifacts/leap42.3/
00:00:11.472  + make mockbuild
00:00:11.472  sudo build --repo zypp:// --dist sl42.3 
00:00:11.728  logging output to /var/tmp/build-root/.build.log...
00:00:11.728  [    0s] Memory limit set to 65534572KB
00:00:11.728  [    0s] Using BUILD_ROOT=/var/tmp/build-root
00:00:11.728  [    0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386
00:00:11.728  [    0s] 
00:00:11.984  [    0s] 
00:00:11.984  [    0s] f4b1aa80b275 started "build munge.spec" at Wed Jul 31 21:10:10 UTC 2019.
00:00:11.984  [    0s] 
00:00:11.984  [    0s] 
00:00:11.984  [    0s] processing recipe /var/lib/jenkins/jenkins-1/docker_1/workspace/daos-stack_munge_PR-4/munge.spec ...
00:00:11.984  [    0s] init_buildsystem --configdir /usr/lib/build/configs --cachedir /var/cache/build --repository zypp:// /var/lib/jenkins/jenkins-1/docker_1/workspace/daos-stack_munge_PR-4/munge.spec ...
00:00:11.984  [    0s] initializing /var/tmp/build-root/.srcfiles.cache ...
00:00:12.243  [    0s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://NON
00:00:12.243  [    0s] could not find repo 'NON'
00:00:12.243  [    0s] 
00:00:12.243  [    0s] f4b1aa80b275 failed "build munge.spec" at Wed Jul 31 21:10:10 UTC 2019.
00:00:12.243  [    0s] 
00:00:12.243  Makefile_packaging.mk:217: recipe for target 'mockbuild' failed
00:00:12.243  make: *** [mockbuild] Error 1

JohnMalmberg avatar Aug 01 '19 14:08 JohnMalmberg