rsyslog / rsyslog-pkg-rhel-centos

Package build sources for building RHEL/CentOS packages
17 stars 27 forks source link

rpmmaker fails on CentOS 7 #47

Open alecswan opened 6 years ago

alecswan commented 6 years ago

I am trying to create CentOS 7 RPMs of rsyslog packages following the discussion in http://lists.adiscon.net/pipermail/rsyslog/2018-April/045352.html. However, at first the build fails with bash: mock-chroot: No such file or directory and after I create mock-chroot folder it fails with execv() failed: No such file or directory with the detailed trace shown below.

Am I missing some bootstrap steps required before running rpmmaker.sh?

[root@rsyslog-pkg-rhel-centos]# ./rpmmaker.sh
-------------------------------------
--- RPMMaker                      ---
-------------------------------------
SPEC Filebasename?
 1) v5-stable        13) libee        25) zeromq3
 2) v6-stable        14) libgt        26) czmq
 3) v7-stable        15) librelp      27) libmongo-client
 4) v7-devel-cust    16) json-c       28) python-docutils
 5) v8-stable        17) liblognorm   29) python-sphinx
 6) v8-stable-el7    18) liblognorm1      30) jemalloc
 7) v8-devel2        19) liblognorm2      31) gnutls
 8) v8-q-debug       20) liblognorm5      32) libtasn1
 9) v8-stable-gt     21) liblogging   33) nettle
10) v8-stable-sb     22) libksi       34) librdkafka
11) v8-stable-cs     23) libksi1      35) libfastjson
12) libestr      24) openpgm      36) libfastjson4
#? 36
Making RPM for 'libfastjson4.spec'

Which Linux Plattform?:
1) epel-6
2) epel-7
3) All
#? 2
Making RPM for EPEL 'epel-7'

Which Architecture?:
1) i386
2) x86_64
3) All
#? 2
Making RPM for Plattforms 'x86_64'

Which YUM repository?:
1) v5-stable       4) v8-devel2      7) v8-stable-cs  10) donotuse
2) v7-stable       5) v8-q-debug     8) v8-stable-sb  11) All
3) v8-stable       6) v8-stable-gt   9) testing
#? 3
Making Source RPM for libfastjson4.spec in epel-7-x86_64
INFO: mock.py version 1.4.2 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./rpmbuild/SPECS/libfastjson4.spec)  Config(epel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.2
INFO: Mock Version: 1.4.2
Start: yum update
Failed to set locale, defaulting to C
base                                                                                                                                                                               | 3.6 kB  00:00:00
epel                                                                                                                                                                               | 4.7 kB  00:00:00
extras                                                                                                                                                                             | 3.4 kB  00:00:00
updates                                                                                                                                                                            | 3.4 kB  00:00:00
No packages marked for update
Finish: yum update
Finish: chroot init
Start: buildsrpm
Start: rpmbuild -bs
error: File /builddir/build/SOURCES/libfastjson-0.99.8.tar.gz: No such file or directory
Building target platforms: x86_64
Building for target x86_64
Finish: rpmbuild -bs
Finish: buildsrpm
ERROR: Exception(./rpmbuild/SPECS/libfastjson4.spec) Config(epel-7-x86_64) 0 minutes 8 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
ERROR: Command failed:
 # /usr/bin/systemd-nspawn -q -M 7c49fa3e90254624822e4a8799343353 -D /var/lib/mock/epel-7-x86_64/root --setenv=LANG=en_US.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1=<mock-chroot> \s-\v\$  -u mockbuild bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libfastjson4.spec

ls: cannot access /var/lib/mock/epel-7-x86_64/result/*src.rpm: No such file or directory
basename: missing operand
Try 'basename --help' for more information.
Makeing RPMs from sourcefile ''
mv: missing destination file operand after ‘./rpmbuild/SRPMS/’
Try 'mv --help' for more information.
INFO: mock.py version 1.4.2 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
ERROR: Cannot find/open srpm: ./rpmbuild/SRPMS/. Error: error reading package header
chown: cannot access ‘/var/lib/mock/epel-7-x86_64/result/*.rpm’: No such file or directory
rpm: /usr/bin/rpmsign: No such file or directory
cp: cannot stat ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory
Copying RPMs to ./yumrepo/v8-stable/epel-7/x86_64
sudo: createrepo: command not found
rm: cannot remove ‘./yumrepo/v8-stable/epel-7/x86_64/repodata/repomd.xml.asc’: No such file or directory
gpg: can't open `passfile.txt': No such file or directory
Cleaning up RPMs
rm: cannot remove ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory

[root@rsyslog-pkg-rhel-centos]# /usr/bin/systemd-nspawn -q -M 7c49fa3e90254624822e4a8799343353 -D /var/lib/mock/epel-7-x86_64/root --setenv=LANG=en_US.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1=<mock-chroot> \s-\v\$  -u mockbuild bash --login -c /usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libfastjson4.spec
execv() failed: No such file or directory
alecswan commented 6 years ago

It was a problem on my part because I forgot to download source tarballs to rpmbuild/SOURCES/ folder, e.g. curl -o rpmbuild/SOURCES/libfastjson-0.99.8.tar.gz http://download.rsyslog.com/libfastjson/libfastjson-0.99.8.tar.gz

alecswan commented 6 years ago

Even though I got past the issue with building libfastjson4 I am running into a different issue with building rsyslog v8-stable-el7 epel-7 x86_64 v8-stable. The error written to /var/lib/mock/epel-7-x86_64/result/build.log. Where should I get rsyslog.log and rsyslog.conf?

Mock Version: 1.4.2
ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/v8-stable-el7.spec'], nspawn_args=[]shell=Falseuid=0env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': '<mock-chroot> \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-7-x86_64/root'gid=135user='mockbuild'timeout=0logger=<mockbuild.trace_decorator.getLog object at 0x149a090>printOutput=True)
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ba48f5c612834c3d96bb28210271adfe', '-D', '/var/lib/mock/epel-7-x86_64/root', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/v8-stable-el7.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': '<mock-chroot> \\s-\\v\\$ '} and shell False
error: Bad file: /builddir/build/SOURCES/rsyslog.log: No such file or directory
error: Bad file: /builddir/build/SOURCES/rsyslog.conf: No such file or directory
friedl commented 6 years ago

@alecswan did you put the source tarball into the SOURCES folder?

alecswan commented 6 years ago

Yes, the following shows what I have in SOURCES folder:

[root@rsyslog-pkg-rhel-centos]# ls rpmbuild/SOURCES/*.tar.gz
rpmbuild/SOURCES/libfastjson-0.99.8.tar.gz  rpmbuild/SOURCES/rsyslog-8.34.0.tar.gz  rpmbuild/SOURCES/rsyslog-doc-8.34.0.tar.gz

However, after looking at https://github.com/rsyslog/rsyslog-pkg-rhel-centos/blob/master/rpmbuild/SPECS/v8-stable.spec#L24 I don't understand why I needed to download the sources manually if the spec already specifies the location of the tarball as follows:

Source0: http://www.rsyslog.com/files/download/rsyslog/%{name}-%{version}.tar.gz

I am not sure where I should get SOURCES/rsyslog.log and SOURCES/rsyslog.conf that the latest rpmmaker run complains about. Thoughts?

friedl commented 6 years ago

Ah, now I see.

Yes, you need both files present in the SOURCES folder. You can use one of the existing version named ones and rename them for now. The .log file provides the logrotate script and the .conf file is the configuration that will be shipped with the RPM.

alecswan commented 6 years ago

Thanks, the following helped me get past the issue with missing files:

> cp rpmbuild/SOURCES/rsyslog.log.epel6 rpmbuild/SOURCES/rsyslog.log
> cp rpmbuild/SOURCES/rsyslog_v7.conf rpmbuild/SOURCES/rsyslog.conf

Does this mean that https://github.com/rsyslog/rsyslog-pkg-rhel-centos/blob/master/rpmbuild/SPECS/v8-stable.spec#L10 directive is not working? Shouldn't there be a similar directive for .conf file?

Now I am getting the errors show below. Does this mean that I might need to add -develop repos in /etc/yum.repos.d? If so, do you have a list of such repos handy?

Also, why does building rsyslog require mariadb and postgres dependencies? Shouldn't those be only required when building the corresponding rsyslog modules?

ERROR: Exception(./rpmbuild/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm) Config(epel-7-x86_64) 0 minutes 8 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
ERROR: Command failed:
 # /usr/bin/yum-builddep --installroot /var/lib/mock/epel-7-x86_64/root/ --releasever 7 /var/lib/mock/epel-7-x86_64/root//builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
Failed to set locale, defaulting to C
Getting requirements for rsyslog-8.34.0-2.el7.centos.src
 --> automake-1.13.4-3.el7.noarch
 --> autoconf-2.69-11.el7.noarch
 --> libtool-2.4.2-22.el7_3.x86_64
 --> bison-3.0.4-1.el7.x86_64
 --> flex-2.5.37-3.el7.x86_64
 --> libestr-devel-0.1.9-2.el7.x86_64
 --> libuuid-devel-2.23.2-43.el7_4.2.x86_64
 --> Already installed : 1:pkgconfig-0.27.1-4.el7.x86_64
 --> python-docutils-0.11-0.2.20130715svn7687.el7.noarch
 --> systemd-devel-219-42.el7_4.10.x86_64
 --> zlib-devel-1.2.7-17.el7.x86_64
 --> libgcrypt-devel-1.5.3-14.el7.x86_64
 --> libcurl-devel-7.29.0-42.el7_4.1.x86_64
 --> libee-devel-0.4.1-6.el7.x86_64
 --> libdbi-devel-0.8.4-6.el7.x86_64
 --> 1:mariadb-5.5.56-2.el7.x86_64
 --> 1:mariadb-devel-5.5.56-2.el7.x86_64
 --> postgresql-devel-9.2.23-3.el7_4.x86_64
 --> krb5-devel-1.15.1-8.el7.x86_64
 --> gnutls-devel-3.3.26-9.el7.x86_64
 --> 1:net-snmp-devel-5.7.2-28.el7_4.1.x86_64
 --> libnet-devel-1.1.6-7.el7.x86_64
 --> lz4-devel-1.7.3-1.el7.x86_64
 --> cyrus-sasl-devel-2.1.26-21.el7.x86_64
Error: No Package found for adisconbuild-librdkafka-devel >= 0.11.4
Error: No Package found for libfastjson4-devel >= 0.99.8
Error: No Package found for libksi-devel
Error: No Package found for liblognorm5-devel >= 2.0.4
Error: No Package found for librelp-devel >= 1.2.15
friedl commented 6 years ago

The v8-stable.spec is for EL6 only.

For EL7 you need to use the v8-stable-el7.spec. This one you don't need to rename. In the rpmmaker script choose # 6 for specname.

alecswan commented 6 years ago

6 is the option I have been choosing in the first selection. BTW, I like that multiple-choice selection approach.

In summary, the options I've been selecting are: 6) v8-stable-el7 2) epel-7 2) x86_64 3) v8-stable (also tried 6) v8-stable-gt but the problem persisted)

Here is a sample output

-------------------------------------
--- RPMMaker                      ---
-------------------------------------
SPEC Filebasename?
 1) v5-stable        13) libee        25) zeromq3
 2) v6-stable        14) libgt        26) czmq
 3) v7-stable        15) librelp      27) libmongo-client
 4) v7-devel-cust    16) json-c       28) python-docutils
 5) v8-stable        17) liblognorm   29) python-sphinx
 6) v8-stable-el7    18) liblognorm1      30) jemalloc
 7) v8-devel2        19) liblognorm2      31) gnutls
 8) v8-q-debug       20) liblognorm5      32) libtasn1
 9) v8-stable-gt     21) liblogging   33) nettle
10) v8-stable-sb     22) libksi       34) librdkafka
11) v8-stable-cs     23) libksi1      35) libfastjson
12) libestr      24) openpgm      36) libfastjson4
#? 6
Making RPM for 'v8-stable-el7.spec'

Which Linux Plattform?:
1) epel-6
2) epel-7
3) All
#? 2
Making RPM for EPEL 'epel-7'

Which Architecture?:
1) i386
2) x86_64
3) All
#? 2
Making RPM for Plattforms 'x86_64'

Which YUM repository?:
1) v5-stable       4) v8-devel2      7) v8-stable-cs  10) donotuse
2) v7-stable       5) v8-q-debug     8) v8-stable-sb  11) All
3) v8-stable       6) v8-stable-gt   9) testing
#? 3
Making Source RPM for v8-stable-el7.spec in epel-7-x86_64
INFO: mock.py version 1.4.2 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./rpmbuild/SPECS/v8-stable-el7.spec)  Config(epel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.2
INFO: Mock Version: 1.4.2
Start: yum update
Failed to set locale, defaulting to C
base                                                                                                                                                                               | 3.6 kB  00:00:00
epel                                                                                                                                                                               | 4.7 kB  00:00:00
extras                                                                                                                                                                             | 3.4 kB  00:00:00
updates                                                                                                                                                                            | 3.4 kB  00:00:00
No packages marked for update
Finish: yum update
Finish: chroot init
Start: buildsrpm
Start: rpmbuild -bs
warning: Could not canonicalize hostname: ae23c544ffd549aa8a1c1dee6d9d3b20
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
Finish: rpmbuild -bs
Finish: buildsrpm
INFO: Done(./rpmbuild/SPECS/v8-stable-el7.spec) Config(epel-7-x86_64) 0 minutes 9 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
Finish: run
Makeing RPMs from sourcefile '/var/lib/mock/epel-7-x86_64/result/rsyslog-8.34.0-2.el7.centos.src.rpm'
INFO: mock.py version 1.4.2 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./rpmbuild/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm)  Config(epel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.2
INFO: Mock Version: 1.4.2
Start: yum update
Failed to set locale, defaulting to C
base                                                                                                                                                                               | 3.6 kB  00:00:00
epel                                                                                                                                                                               | 4.7 kB  00:00:00
extras                                                                                                                                                                             | 3.4 kB  00:00:00
updates                                                                                                                                                                            | 3.4 kB  00:00:00
No packages marked for update
Finish: yum update
Finish: chroot init
Start: build phase for rsyslog-8.34.0-2.el7.centos.src.rpm
Start: build setup for rsyslog-8.34.0-2.el7.centos.src.rpm
warning: Could not canonicalize hostname: 9b7bc7b073ad4886a87816d90b434462
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
Failed to set locale, defaulting to C
Getting requirements for rsyslog-8.34.0-2.el7.centos.src
 --> automake-1.13.4-3.el7.noarch
 --> autoconf-2.69-11.el7.noarch
 --> libtool-2.4.2-22.el7_3.x86_64
 --> bison-3.0.4-1.el7.x86_64
 --> flex-2.5.37-3.el7.x86_64
 --> libestr-devel-0.1.9-2.el7.x86_64
 --> libuuid-devel-2.23.2-43.el7_4.2.x86_64
 --> Already installed : 1:pkgconfig-0.27.1-4.el7.x86_64
 --> python-docutils-0.11-0.2.20130715svn7687.el7.noarch
 --> systemd-devel-219-42.el7_4.10.x86_64
 --> zlib-devel-1.2.7-17.el7.x86_64
 --> libgcrypt-devel-1.5.3-14.el7.x86_64
 --> libcurl-devel-7.29.0-42.el7_4.1.x86_64
 --> libee-devel-0.4.1-6.el7.x86_64
 --> libdbi-devel-0.8.4-6.el7.x86_64
 --> 1:mariadb-5.5.56-2.el7.x86_64
 --> 1:mariadb-devel-5.5.56-2.el7.x86_64
 --> postgresql-devel-9.2.23-3.el7_4.x86_64
 --> krb5-devel-1.15.1-8.el7.x86_64
 --> gnutls-devel-3.3.26-9.el7.x86_64
 --> 1:net-snmp-devel-5.7.2-28.el7_4.1.x86_64
 --> libnet-devel-1.1.6-7.el7.x86_64
 --> lz4-devel-1.7.3-1.el7.x86_64
 --> cyrus-sasl-devel-2.1.26-21.el7.x86_64
Error: No Package found for adisconbuild-librdkafka-devel >= 0.11.4
Error: No Package found for libfastjson4-devel >= 0.99.8
Error: No Package found for libksi-devel
Error: No Package found for liblognorm5-devel >= 2.0.4
Error: No Package found for librelp-devel >= 1.2.15
ERROR: Exception(./rpmbuild/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm) Config(epel-7-x86_64) 0 minutes 8 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
ERROR: Command failed:
 # /usr/bin/yum-builddep --installroot /var/lib/mock/epel-7-x86_64/root/ --releasever 7 /var/lib/mock/epel-7-x86_64/root//builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
Failed to set locale, defaulting to C
Getting requirements for rsyslog-8.34.0-2.el7.centos.src
 --> automake-1.13.4-3.el7.noarch
 --> autoconf-2.69-11.el7.noarch
 --> libtool-2.4.2-22.el7_3.x86_64
 --> bison-3.0.4-1.el7.x86_64
 --> flex-2.5.37-3.el7.x86_64
 --> libestr-devel-0.1.9-2.el7.x86_64
 --> libuuid-devel-2.23.2-43.el7_4.2.x86_64
 --> Already installed : 1:pkgconfig-0.27.1-4.el7.x86_64
 --> python-docutils-0.11-0.2.20130715svn7687.el7.noarch
 --> systemd-devel-219-42.el7_4.10.x86_64
 --> zlib-devel-1.2.7-17.el7.x86_64
 --> libgcrypt-devel-1.5.3-14.el7.x86_64
 --> libcurl-devel-7.29.0-42.el7_4.1.x86_64
 --> libee-devel-0.4.1-6.el7.x86_64
 --> libdbi-devel-0.8.4-6.el7.x86_64
 --> 1:mariadb-5.5.56-2.el7.x86_64
 --> 1:mariadb-devel-5.5.56-2.el7.x86_64
 --> postgresql-devel-9.2.23-3.el7_4.x86_64
 --> krb5-devel-1.15.1-8.el7.x86_64
 --> gnutls-devel-3.3.26-9.el7.x86_64
 --> 1:net-snmp-devel-5.7.2-28.el7_4.1.x86_64
 --> libnet-devel-1.1.6-7.el7.x86_64
 --> lz4-devel-1.7.3-1.el7.x86_64
 --> cyrus-sasl-devel-2.1.26-21.el7.x86_64
Error: No Package found for adisconbuild-librdkafka-devel >= 0.11.4
Error: No Package found for libfastjson4-devel >= 0.99.8
Error: No Package found for libksi-devel
Error: No Package found for liblognorm5-devel >= 2.0.4
Error: No Package found for librelp-devel >= 1.2.15

chown: cannot access ‘/var/lib/mock/epel-7-x86_64/result/*.rpm’: No such file or directory
You must set "%_gpg_name" in your macro file
cp: cannot stat ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory
Copying RPMs to ./yumrepo/v8-stable/epel-7/x86_64
sudo: createrepo: command not found
rm: cannot remove ‘./yumrepo/v8-stable/epel-7/x86_64/repodata/repomd.xml.asc’: No such file or directory
gpg: can't open `passfile.txt': No such file or directory
Cleaning up RPMs
rm: cannot remove ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory
friedl commented 6 years ago

You are now missing the obtainable dependencies. I think it should be sufficient to add the rsyslog repository to your other yum repos. Or have your own repo where the dependencies are present. The dependencies will then be obtained on an as-needed basis from the online repo.

alecswan commented 6 years ago

I added /etc/yum.repos.d per instructions in https://www.rsyslog.com/rhelcentos-rpms/ and yum can successfully find all the missing dependencies from my previous post as shown below.

# yum info adisconbuild-librdkafka-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.cogentco.com
Available Packages
Name        : adisconbuild-librdkafka-devel
Arch        : x86_64
Version     : 0.11.4
Release     : 1
Size        : 400 k
Repo        : rsyslog_v8/x86_64

However, rpmmaker is still unable to find those packages producing exactly the same output as in my previous message. I tried copying /etc/yum.repos.d/rsyslog.repo to /var/lib/mock/epel-7-x86_64/root/etc/yum.repos.d/ which is used by /usr/bin/yum-builddep to install rsyslog dependencies. That didn't fix the problem and I am still seeing the following errors:

# ls /var/lib/mock/epel-7-x86_64/root/etc/yum.repos.d/
CentOS-Base.repo  CentOS-CR.repo  CentOS-Debuginfo.repo  CentOS-fasttrack.repo  CentOS-Media.repo  CentOS-Sources.repo  CentOS-Vault.repo  epel.repo  epel-testing.repo  rsyslog.repo
# /usr/bin/yum-builddep --installroot /var/lib/mock/epel-7-x86_64/root/ --releasever 7 /var/lib/mock/epel-7-x86_64/root//builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
base                                                                                                                                                                               | 3.6 kB  00:00:00
epel                                                                                                                                                                               | 4.7 kB  00:00:00
extras                                                                                                                                                                             | 3.4 kB  00:00:00
updates                                                                                                                                                                            | 3.4 kB  00:00:00
(1/4): base/primary_db                                                                                                                                                             | 5.7 MB  00:00:00
(2/4): epel/primary_db                                                                                                                                                             | 6.3 MB  00:00:00
(3/4): updates/primary_db                                                                                                                                                          | 6.9 MB  00:00:00
(4/4): extras/primary_db                                                                                                                                                           | 185 kB  00:00:00
Getting requirements for rsyslog-8.34.0-2.el7.centos.src
 --> automake-1.13.4-3.el7.noarch
 --> autoconf-2.69-11.el7.noarch
 --> libtool-2.4.2-22.el7_3.x86_64
 --> bison-3.0.4-1.el7.x86_64
 --> flex-2.5.37-3.el7.x86_64
 --> libestr-devel-0.1.9-2.el7.x86_64
 --> libuuid-devel-2.23.2-43.el7_4.2.x86_64
 --> Already installed : 1:pkgconfig-0.27.1-4.el7.x86_64
 --> python-docutils-0.11-0.2.20130715svn7687.el7.noarch
 --> systemd-devel-219-42.el7_4.10.x86_64
 --> zlib-devel-1.2.7-17.el7.x86_64
 --> libgcrypt-devel-1.5.3-14.el7.x86_64
 --> libcurl-devel-7.29.0-42.el7_4.1.x86_64
 --> libee-devel-0.4.1-6.el7.x86_64
 --> libdbi-devel-0.8.4-6.el7.x86_64
 --> 1:mariadb-5.5.56-2.el7.x86_64
 --> 1:mariadb-devel-5.5.56-2.el7.x86_64
 --> postgresql-devel-9.2.23-3.el7_4.x86_64
 --> krb5-devel-1.15.1-8.el7.x86_64
 --> gnutls-devel-3.3.26-9.el7.x86_64
 --> 1:net-snmp-devel-5.7.2-28.el7_4.1.x86_64
 --> libnet-devel-1.1.6-7.el7.x86_64
 --> lz4-devel-1.7.3-1.el7.x86_64
 --> cyrus-sasl-devel-2.1.26-21.el7.x86_64
Error: No Package found for adisconbuild-librdkafka-devel >= 0.11.4
Error: No Package found for libfastjson4-devel >= 0.99.8
Error: No Package found for libksi-devel
Error: No Package found for liblognorm5-devel >= 2.0.4
Error: No Package found for librelp-devel >= 1.2.15

I tried removing /var/lib/mock/epel-7-x86_64/root/ and rerunning rpmmaker to no vail.

Thoughts?

Thanks, Alec

alecswan commented 6 years ago

Even after installing missing packages on the instance, like yum install adisconbuild-librdkafka-devel, the /usr/bin/yum-builddep step of rpmmaker still fails to find the packages installed with the same error.

The main reason why I am trying to build the rpms myself is to avoid the Obsoletes issue discussed in this email thread

Thoughts?

friedl commented 6 years ago

The Kafka library does not need to be present on the machine. It will be used dynamically by mock.

Thus, you must have the repository available for your mock installation.

Please note, I just moved the kafka build lib to a new repo called v8-stable-build to accomodate some install issues with generic kafka packages.

alecswan commented 6 years ago

At this point I do not need kafka integration.

I picked adisconbuild-librdkafka-devel just to show that it is available to the instance from the rsyslog yum repo (see below). However, the mock/yum-builddep process is not seeing it.

The reason why I am building my own rpms is that I want to get rid of Obsoletes directive which causes problems in our Nexus yum repo. So, I am effectively forking your work, removing Obsoletes directives and building my rpms. If there is an easier way to do this, I'd love to hear it! I really appreciate your time looking into this!

Hopefully the following helps resolve the issue (at the bottom you can see that the problematic packages are available to yum).

# ./rpmmaker.sh
-------------------------------------
--- RPMMaker                      ---
-------------------------------------
SPEC Filebasename?
 1) v5-stable        13) libee        25) zeromq3
 2) v6-stable        14) libgt        26) czmq
 3) v7-stable        15) librelp      27) libmongo-client
 4) v7-devel-cust    16) json-c       28) python-docutils
 5) v8-stable        17) liblognorm   29) python-sphinx
 6) v8-stable-el7    18) liblognorm1      30) jemalloc
 7) v8-devel2        19) liblognorm2      31) gnutls
 8) v8-q-debug       20) liblognorm5      32) libtasn1
 9) v8-stable-gt     21) liblogging   33) nettle
10) v8-stable-sb     22) libksi       34) librdkafka
11) v8-stable-cs     23) libksi1      35) libfastjson
12) libestr      24) openpgm      36) libfastjson4
#? 6
Making RPM for 'v8-stable-el7.spec'

Which Linux Plattform?:
1) epel-6
2) epel-7
3) All
#? 2
Making RPM for EPEL 'epel-7'

Which Architecture?:
1) i386
2) x86_64
3) All
#? 2
Making RPM for Plattforms 'x86_64'

Which YUM repository?:
1) v5-stable       4) v8-devel2      7) v8-stable-cs  10) donotuse
2) v7-stable       5) v8-q-debug     8) v8-stable-sb  11) All
3) v8-stable       6) v8-stable-gt   9) testing
#? 3
Making Source RPM for v8-stable-el7.spec in epel-7-x86_64
INFO: mock.py version 1.4.2 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./rpmbuild/SPECS/v8-stable-el7.spec)  Config(epel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.2
INFO: Mock Version: 1.4.2
Start: yum update
Failed to set locale, defaulting to C
base                                                                                                                                                                                   | 3.6 kB  00:00:00
epel                                                                                                                                                                                   | 4.7 kB  00:00:00
extras                                                                                                                                                                                 | 3.4 kB  00:00:00
updates                                                                                                                                                                                | 3.4 kB  00:00:00
epel/primary_db                                                                                                                                                                        | 6.3 MB  00:00:00
No packages marked for update
Finish: yum update
Finish: chroot init
Start: buildsrpm
Start: rpmbuild -bs
warning: Could not canonicalize hostname: e268647b945d4ce3ab300f16743bd41e
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
Finish: rpmbuild -bs
Finish: buildsrpm
INFO: Done(./rpmbuild/SPECS/v8-stable-el7.spec) Config(epel-7-x86_64) 0 minutes 10 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
Finish: run
Makeing RPMs from sourcefile '/var/lib/mock/epel-7-x86_64/result/rsyslog-8.34.0-2.el7.centos.src.rpm'
INFO: mock.py version 1.4.2 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(./rpmbuild/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm)  Config(epel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.2
INFO: Mock Version: 1.4.2
Start: yum update
Failed to set locale, defaulting to C
base                                                                                                                                                                                   | 3.6 kB  00:00:00
epel                                                                                                                                                                                   | 4.7 kB  00:00:00
extras                                                                                                                                                                                 | 3.4 kB  00:00:00
updates                                                                                                                                                                                | 3.4 kB  00:00:00
No packages marked for update
Finish: yum update
Finish: chroot init
Start: build phase for rsyslog-8.34.0-2.el7.centos.src.rpm
Start: build setup for rsyslog-8.34.0-2.el7.centos.src.rpm
warning: Could not canonicalize hostname: c3abcdd4e4674ea3ab88053f51838e95
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
Failed to set locale, defaulting to C
Getting requirements for rsyslog-8.34.0-2.el7.centos.src
 --> automake-1.13.4-3.el7.noarch
 --> autoconf-2.69-11.el7.noarch
 --> libtool-2.4.2-22.el7_3.x86_64
 --> bison-3.0.4-1.el7.x86_64
 --> flex-2.5.37-3.el7.x86_64
 --> libestr-devel-0.1.9-2.el7.x86_64
 --> libuuid-devel-2.23.2-43.el7_4.2.x86_64
 --> Already installed : 1:pkgconfig-0.27.1-4.el7.x86_64
 --> python-docutils-0.11-0.2.20130715svn7687.el7.noarch
 --> systemd-devel-219-42.el7_4.10.x86_64
 --> zlib-devel-1.2.7-17.el7.x86_64
 --> libgcrypt-devel-1.5.3-14.el7.x86_64
 --> libcurl-devel-7.29.0-42.el7_4.1.x86_64
 --> libee-devel-0.4.1-6.el7.x86_64
 --> libdbi-devel-0.8.4-6.el7.x86_64
 --> 1:mariadb-5.5.56-2.el7.x86_64
 --> 1:mariadb-devel-5.5.56-2.el7.x86_64
 --> postgresql-devel-9.2.23-3.el7_4.x86_64
 --> krb5-devel-1.15.1-8.el7.x86_64
 --> gnutls-devel-3.3.26-9.el7.x86_64
 --> 1:net-snmp-devel-5.7.2-28.el7_4.1.x86_64
 --> libnet-devel-1.1.6-7.el7.x86_64
 --> lz4-devel-1.7.3-1.el7.x86_64
 --> cyrus-sasl-devel-2.1.26-21.el7.x86_64
Error: No Package found for adisconbuild-librdkafka-devel >= 0.11.4
Error: No Package found for libfastjson4-devel >= 0.99.8
Error: No Package found for libksi-devel
Error: No Package found for liblognorm5-devel >= 2.0.4
Error: No Package found for librelp-devel >= 1.2.15
ERROR: Exception(./rpmbuild/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm) Config(epel-7-x86_64) 0 minutes 8 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-x86_64/result
ERROR: Command failed:
 # /usr/bin/yum-builddep --installroot /var/lib/mock/epel-7-x86_64/root/ --releasever 7 /var/lib/mock/epel-7-x86_64/root//builddir/build/SRPMS/rsyslog-8.34.0-2.el7.centos.src.rpm
Failed to set locale, defaulting to C
Getting requirements for rsyslog-8.34.0-2.el7.centos.src
 --> automake-1.13.4-3.el7.noarch
 --> autoconf-2.69-11.el7.noarch
 --> libtool-2.4.2-22.el7_3.x86_64
 --> bison-3.0.4-1.el7.x86_64
 --> flex-2.5.37-3.el7.x86_64
 --> libestr-devel-0.1.9-2.el7.x86_64
 --> libuuid-devel-2.23.2-43.el7_4.2.x86_64
 --> Already installed : 1:pkgconfig-0.27.1-4.el7.x86_64
 --> python-docutils-0.11-0.2.20130715svn7687.el7.noarch
 --> systemd-devel-219-42.el7_4.10.x86_64
 --> zlib-devel-1.2.7-17.el7.x86_64
 --> libgcrypt-devel-1.5.3-14.el7.x86_64
 --> libcurl-devel-7.29.0-42.el7_4.1.x86_64
 --> libee-devel-0.4.1-6.el7.x86_64
 --> libdbi-devel-0.8.4-6.el7.x86_64
 --> 1:mariadb-5.5.56-2.el7.x86_64
 --> 1:mariadb-devel-5.5.56-2.el7.x86_64
 --> postgresql-devel-9.2.23-3.el7_4.x86_64
 --> krb5-devel-1.15.1-8.el7.x86_64
 --> gnutls-devel-3.3.26-9.el7.x86_64
 --> 1:net-snmp-devel-5.7.2-28.el7_4.1.x86_64
 --> libnet-devel-1.1.6-7.el7.x86_64
 --> lz4-devel-1.7.3-1.el7.x86_64
 --> cyrus-sasl-devel-2.1.26-21.el7.x86_64
Error: No Package found for adisconbuild-librdkafka-devel >= 0.11.4
Error: No Package found for libfastjson4-devel >= 0.99.8
Error: No Package found for libksi-devel
Error: No Package found for liblognorm5-devel >= 2.0.4
Error: No Package found for librelp-devel >= 1.2.15

chown: cannot access ‘/var/lib/mock/epel-7-x86_64/result/*.rpm’: No such file or directory
You must set "%_gpg_name" in your macro file
cp: cannot stat ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory
Copying RPMs to ./yumrepo/v8-stable/epel-7/x86_64
sudo: createrepo: command not found
rm: cannot remove ‘./yumrepo/v8-stable/epel-7/x86_64/repodata/repomd.xml.asc’: No such file or directory
gpg: can't open `passfile.txt': No such file or directory
Cleaning up RPMs
rm: cannot remove ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory
[root@rsyslog-pkg-rhel-centos]# yum info adisconbuild-librdkafka-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : adisconbuild-librdkafka-devel
Arch        : x86_64
Version     : 0.11.4
Release     : 1
Size        : 2.0 M
Repo        : installed
From repo   : rsyslog_v8
Summary     : The Apache Kafka C library (Development Environment)
URL         : https://github.com/edenhill/librdkafka
License     : BSD-2-Clause
Description : librdkafka is a C/C++ library implementation of the Apache Kafka protocol, containing both Producer and Consumer support.
            :
            : This package contains headers and libraries required to build applications
            : using librdkafka.

[root@ rsyslog-pkg-rhel-centos]# yum info libfastjson4-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name        : libfastjson4-devel
Arch        : x86_64
Version     : 0.99.8
Release     : 1.el7.centos
Size        : 19 k
Repo        : rsyslog_v8/x86_64
Summary     : Development headers and library for json-c
URL         : https://github.com/rsyslog/libfastjson
License     : MIT
Description : This package contains the development headers and library for libfastjson.

[root@rsyslog-pkg-rhel-centos]# yum info libksi-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: No matching Packages to list
[root@rsyslog-pkg-rhel-centos]# yum info liblognorm5-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name        : liblognorm5-devel
Arch        : x86_64
Version     : 2.0.4
Release     : 3.el7
Size        : 15 k
Repo        : rsyslog_v8/x86_64
Summary     : Development tools for programs using liblognorm library
URL         : http://www.liblognorm.com
License     : LGPLv2+
Description : The liblognorm-devel package includes header files, libraries necessary for
            : developing programs which use liblognorm library.

[root@rsyslog-pkg-rhel-centos]# yum info librelp-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name        : librelp-devel
Arch        : i686
Version     : 1.2.12
Release     : 1.el7
Size        : 9.6 k
Repo        : Artifactory_Centos_Remote
Summary     : Development files for the librelp package
URL         : http://www.rsyslog.com/
License     : GPLv3+
Description : Librelp is an easy to use library for the RELP protocol. The
            : librelp-devel package contains the header files and libraries needed
            : to develop applications using librelp.

Name        : librelp-devel
Arch        : x86_64
Version     : 1.2.15
Release     : 1.el7.centos
Size        : 9.3 k
Repo        : rsyslog_v8/x86_64
Summary     : Development files for the librelp package
URL         : http://www.rsyslog.com/
License     : GPLv3+
Description : Librelp is an easy to use library for the RELP protocol. The
            : librelp-devel package contains the header files and libraries needed
            : to develop applications using librelp.
alecswan commented 6 years ago

I was able to make further progress after adding http://rpms.adiscon.com/v8-stable-build and http://rpms.adiscon.com/v8-devel2/epel-7/$basearch repos to /etc/mock/default.cfg

But now I am running into a problem with libksi1 obsoleting libksi. Is it possible to build rsyslog without libksi?

Package libksi is obsoleted by libksi1, but obsoleting package does not provide for requirements
---> Package libsepol-devel.x86_64 0:2.5-6.el7 will be installed
---> Package libtiff.x86_64 0:4.0.3-27.el7_3 will be installed
--> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-27.el7_3.x86_64
---> Package libwebp.x86_64 0:0.3.0-7.el7 will be installed
---> Package lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be installed
---> Package nettle.x86_64 0:2.7.1-8.el7 will be installed
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
---> Package perl-ExtUtils-Install.noarch 0:1.58-292.el7 will be installed
---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 will be installed
--> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch
---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 will be installed
---> Package popt-devel.x86_64 0:1.13-16.el7 will be installed
---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
---> Package systemtap-sdt-devel.x86_64 0:3.1-5.el7_4 will be installed
--> Processing Dependency: pyparsing for package: systemtap-sdt-devel-3.1-5.el7_4.x86_64
---> Package tcp_wrappers-libs.x86_64 0:7.6-77.el7 will be installed
---> Package trousers.x86_64 0:0.3.14-2.el7 will be installed
---> Package unbound-libs.x86_64 0:1.4.20-34.el7 will be installed
--> Processing Dependency: openssl >= 0.9.8g-12 for package: unbound-libs-1.4.20-34.el7.x86_64
--> Processing Dependency: libldns.so.1()(64bit) for package: unbound-libs-1.4.20-34.el7.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: unbound-libs-1.4.20-34.el7.x86_64
---> Package xz-devel.x86_64 0:5.2.2-1.el7 will be installed
--> Running transaction check
---> Package dbus-libs.x86_64 1:1.6.12-17.el7 will be installed
---> Package device-mapper-libs.x86_64 7:1.02.140-8.el7 will be installed
--> Processing Dependency: device-mapper = 7:1.02.140-8.el7 for package: 7:device-mapper-libs-1.02.140-8.el7.x86_64
---> Package dracut.x86_64 0:033-502.el7_4.1 will be installed
--> Processing Dependency: kpartx for package: dracut-033-502.el7_4.1.x86_64
--> Processing Dependency: hardlink for package: dracut-033-502.el7_4.1.x86_64
---> Package hostname.x86_64 0:3.13-3.el7 will be installed
---> Package iproute.x86_64 0:3.10.0-87.el7 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-3.10.0-87.el7.x86_64
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-3.10.0-87.el7.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-3.10.0-87.el7.x86_64
---> Package iputils.x86_64 0:20160308-10.el7 will be installed
---> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed
---> Package ldns.x86_64 0:1.6.16-10.el7 will be installed
--> Processing Dependency: libpcap.so.1()(64bit) for package: ldns-1.6.16-10.el7.x86_64
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
---> Package libksi-devel.x86_64 0:3.2.2.0-2.el7 will be installed
--> Processing Dependency: libksi = 3.2.2.0-2.el7 for package: libksi-devel-3.2.2.0-2.el7.x86_64
Package libksi is obsoleted by libksi1, but obsoleting package does not provide for requirements
---> Package openssl.x86_64 1:1.0.2k-8.el7 will be installed
---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 will be installed
---> Package procps-ng.x86_64 0:3.3.10-16.el7 will be installed
---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.el7 will be installed
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.140-8.el7 will be installed
---> Package hardlink.x86_64 1:1.0-19.el7 will be installed
---> Package iptables.x86_64 0:1.4.21-18.3.el7_4 will be installed
--> Processing Dependency: libnfnetlink.so.0()(64bit) for package: iptables-1.4.21-18.3.el7_4.x86_64
--> Processing Dependency: libnetfilter_conntrack.so.3()(64bit) for package: iptables-1.4.21-18.3.el7_4.x86_64
---> Package kpartx.x86_64 0:0.4.9-111.el7_4.2 will be installed
---> Package libksi-devel.x86_64 0:3.2.2.0-2.el7 will be installed
--> Processing Dependency: libksi = 3.2.2.0-2.el7 for package: libksi-devel-3.2.2.0-2.el7.x86_64
Package libksi is obsoleted by libksi1, but obsoleting package does not provide for requirements
---> Package libmnl.x86_64 0:1.0.3-7.el7 will be installed
---> Package libpcap.x86_64 14:1.5.3-9.el7 will be installed
--> Running transaction check
---> Package libksi-devel.x86_64 0:3.2.2.0-2.el7 will be installed
--> Processing Dependency: libksi = 3.2.2.0-2.el7 for package: libksi-devel-3.2.2.0-2.el7.x86_64
Package libksi is obsoleted by libksi1, but obsoleting package does not provide for requirements
---> Package libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3 will be installed
---> Package libnfnetlink.x86_64 0:1.0.1-4.el7 will be installed
--> Finished Dependency Resolution
Error: Package: libksi-devel-3.2.2.0-2.el7.x86_64 (rsyslog_v8_devel2)
           Requires: libksi = 3.2.2.0-2.el7
           Available: libksi-3.2.2.0-1.el7.x86_64 (rsyslog_v8_devel2)
               libksi = 3.2.2.0-1.el7
           Available: libksi-3.2.2.0-2.el7.x86_64 (rsyslog_v8_devel2)
               libksi = 3.2.2.0-2.el7
           Available: libksi1-3.4.0.5-2.el7.x86_64 (rsyslog_v8_devel2)
               libksi = 2:3.4.0.5-2.el7
           Available: libksi1-3.4.0.5-3.el7.x86_64 (rsyslog_v8_devel2)
               libksi = 2:3.4.0.5-3.el7
           Available: libksi1-3.4.0.5-4.el7.x86_64 (rsyslog_v8_devel2)
               libksi = 2:3.4.0.5-4.el7
           Available: libksi1-3.4.0.7-1.el7.x86_64 (rsyslog_v8_devel2)
               libksi = 2:3.4.0.7-1.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

chown: cannot access ‘/var/lib/mock/epel-7-x86_64/result/*.rpm’: No such file or directory
You must set "%_gpg_name" in your macro file
cp: cannot stat ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory
Copying RPMs to ./yumrepo/v8-stable/epel-7/x86_64
Directory ./yumrepo/v8-stable/epel-7/x86_64 must exist
rm: cannot remove ‘./yumrepo/v8-stable/epel-7/x86_64/repodata/repomd.xml.asc’: No such file or directory
gpg: can't open `passfile.txt': No such file or directory
Cleaning up RPMs
rm: cannot remove ‘/var/lib/mock/epel-7-x86_64/result/*rpm’: No such file or directory