I am using a Virtual machine which is installed with Fedora - 31.
I have installed all the below requirements and also configured. 1. Java 2. maven 3. Ant
and install fedora pgdg as per below, - wget https://yum.postgresql.org/9.4/fedora/fedora-31-x86_64/pgdg-fedora-repo-latest.noarch.rpm - yum install pgdg-fedora-repo-latest.noarch.rpm
Downloaded the source zip file from below, wget https://01.org/sites/default/files/downloads//verification-service-1.5.1.zip
unzipped it (unzip verification-service-1.5.1.zip) and unpacked it (rpm -i host-verification-service-4.5-1.el7.src.rpm) So that it placed the sources inside ~/rpmbuild/SOURCE.
then went to rpmbuild/SPECS, rpmbuild -bs [filename].spec It generated source rpm inside, /rpmbuild/SRPMS.
then I install fedora review packager , - dnf install fedora-packager fedora-review - usermod -a -G mock root (this will create user group)
Then tried the below command, fedora-review -v -o '--no-bootstrap-chroot --no-cleanup-after --no-clean --enable-network' -r -n host-verification-service-4.5-1.fc31.src.rpm
But it got failed with the below error.
* Build log : [root@localhost SRPMS]# fedora-review -v -o '--no-bootstrap-chroot --no-cleanup- after --no-clean --enable-network' -r -n host-verification-service-4.5-1.fc31.sr c.rpm INFO: Processing local files: host-verification-service-4.5-1.fc31.src.rpm DEBUG: Active settings after processing options DEBUG: bz_url: https://bugzilla.redhat.com DEBUG: _con_handler: (DEBUG)> DEBUG: _log_config_done: True DEBUG: cache: False DEBUG: resultdir: None DEBUG: init_done: True DEBUG: uniqueext: None DEBUG: configdir: None DEBUG: log_level: 10 DEBUG: prebuilt: False DEBUG: verbose: True DEBUG: name: host-verification-service-4.5-1.fc31.src.rpm DEBUG: use_colors: True DEBUG: session_log: /root/.cache/fedora-review.log DEBUG: bug: None DEBUG: url: None DEBUG: copr_build_descriptor: None DEBUG: list_checks: False DEBUG: list_flags: False DEBUG: list_plugins: False DEBUG: version: False DEBUG: flags: [] DEBUG: repo: None DEBUG: mock_config: fedora-rawhide-x86_64 DEBUG: no_report: False DEBUG: nobuild: False DEBUG: mock_options: --no-bootstrap-chroot --no-cleanup-after --no-clean --e nable-network DEBUG: other_bz: None DEBUG: plugins_arg: None DEBUG: single: None DEBUG: rpm_spec: True DEBUG: exclude: None DEBUG: checksum: sha256 DEBUG: plugins: {} INFO: Getting .spec and .srpm Urls from : Local files in /root/rpmbuild/SRPMS INFO: --> SRPM url: file:///root/rpmbuild/SRPMS/host-verification-service-4.5- 1.fc31.src.rpm INFO: Using review directory: /root/rpmbuild/SRPMS/host-verification-service DEBUG: find_urls completed: 0.108 DEBUG: Avoiding init of working mock root DEBUG: Url download completed: 2.430 INFO: No upstream for (Source2): version INFO: No upstream for (Source1): common-libs-hvs.tar.gz INFO: No upstream for (Source0): verification-service.tar.gz INFO: Running checks and generating report DEBUG: Running check: CheckResultdir DEBUG: CheckResultdir completed: 0.001 seconds DEBUG: Running check: CheckBuild DEBUG: Avoiding init of working mock root DEBUG: Mock command: mock, -r, fedora-rawhide-x86_64, --no-bootstrap-chroot, --n o-cleanup-after, --no-clean, --enable-network, --resultdir=/root/rpmbuild/SRPMS/ host-verification-service/results, --chroot, --, rm -rf $(rpm --eval %_builddir) / DEBUG: Mock output: INFO: mock.py version 2.0 starting (python version = 3.7.6). .. Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin Mock Version: 2.0 INFO: Mock Version: 2.0 Finish: chroot init INFO: Running in chroot: ['rm -rf $(rpm --eval %_builddir)/'] Start: chroot ['rm -rf $(rpm --eval %_builddir)/'] Finish: chroot ['rm -rf $(rpm --eval %_builddir)/'] None NoneType: None DEBUG: Build command: "mock" "-r" "fedora-rawhide-x86_64" "--no-bootstrap-chroot " "--no-cleanup-after" "--no-clean" "--enable-network" "--resultdir=/root/rpmbui ld/SRPMS/host-verification-service/results" --rebuild /root/rpmbuild/SRPMS/host- verification-service-4.5-1.fc31.src.rpm 2>&1 | tee build.log INFO: mock.py version 2.0 starting (python version = 3.7.6)... Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/root/rpmbuild/SRPMS/host-verification-service-4.5-1.fc31.src.rpm) Config(fedora-rawhide-x86_64) Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin Mock Version: 2.0 INFO: Mock Version: 2.0 Finish: chroot init Start: build phase for host-verification-service-4.5-1.fc31.src.rpm Start: build setup for host-verification-service-4.5-1.fc31.src.rpm Finish: build setup for host-verification-service-4.5-1.fc31.src.rpm Start: Outputting list of installed packages Finish: Outputting list of installed packages Start: rpmbuild host-verification-service-4.5-1.fc31.src.rpm Finish: rpmbuild host-verification-service-4.5-1.fc31.src.rpm Finish: build phase for host-verification-service-4.5-1.fc31.src.rpm ERROR: Exception(/root/rpmbuild/SRPMS/host-verification-service-4.5-1.fc31.src.rpm) Config(fedora-rawhide-x86_64) 2 minutes 18 seconds INFO: Results and/or logs in: /root/rpmbuild/SRPMS/host-verification-service/results ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M edf73afafa4f45b289d55d4d4c241f50 -D /var/lib/mock/fedora-rawhide-x86_64/root -a --capability=cap_ipc_lock --bind=/tmp/mock-resolv.30aw8ps3:/etc/resolv.conf --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=en_US.UTF-8 --setenv=http_proxy=http://proxy-us.intel.com:911 --setenv=https_proxy=http://proxy-us.intel.com:911 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/host-verification-service.spec
DEBUG: _topdir: /builddir/build INFO: Reading configuration from /etc/mock/site-defaults.cfg DEBUG: Report completed: 151.722 seconds INFO: Reading configuration from /etc/mock/fedora-rawhide-x86_64.cfg DEBUG: Report completed: 151.825 seconds DEBUG: Build failed rc = Build error(s) DEBUG: ReviewError: 'mock build failed, see /root/rpmbuild/SRPMS/host-verification-service/results/build.log' Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 236, in run self._do_run(outfile) File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 226, in _do_run self._do_report(outfile) File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 99, in _do_report self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile) File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 117, in _run_checks self.checks.run_checks(output=output, writedown=not Settings.no_report) File "/usr/lib/python3.7/site-packages/FedoraReview/checks.py", line 382, in run_checks run_check(name) File "/usr/lib/python3.7/site-packages/FedoraReview/checks.py", line 357, in run_check check.run() File "/usr/lib/python3.7/site-packages/FedoraReview/plugins/generic_build.py", line 203, in run Mock.build(self.srpm.filename) File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 467, in build raise error FedoraReview.review_error.ReviewError: 'mock build failed, see /root/rpmbuild/SRPMS/host-verification-service/results/build.log' ERROR: 'mock build failed, see /root/rpmbuild/SRPMS/host-verification-service/results/build.log' DEBUG: Report completed: 151.940 seconds
Thanks, Vijay.
Here I attached the build log. <!!image>
<!!image>
Here I attached the Snap shot and Build log.
Since I have no clue what you're even attempting to do here (and why you're invoking fedora-review / mock with such strange options), I suggest backing up a bit and explain what you wanted to do, not what you failed to do?
Thanks for the reply. Actually I have generated an rpm from the given source. I am believing that the generated rpm is very much common to all the linux distributions (RHEL/ CentOs/ Fedora). So that, I need to verify this generated rpm at least meets the minimum dependencies for to be installed specifically on Fedora 31. So that only I am performing this fedora-review command operation on the generated source rpm inside /rpmbuild/SRPM.
I don't know whether this one correct or not. Could you please guide me?
And explain me the exact use of this command.
fedora-review -v -o '--no-bootstrap-chroot --no-cleanup- after --no-clean --enable-network' -r -n host-verification-service-4.5-1.fc31.sr c.rpm
Thanks, Vijay
You're attempting to rebuild a source package from a third-party binary package? Where are you getting the .spec file from?
fedora-review really isn't meant to deal with situations like this.
Then what is the actual use of this fedora-review command ?
If I want to perform the mentioned operation (Checking dependency specific to Fedora OS), which command can I use?
@kvijay8448 fedora-review is used to automate certain steps of package review, when a package is proposed for inclusion in the official fedora repositories. This doesn't seem to be what you want to do here (check a third-party package, for which you do not have the source package).
I suggest you use the plain "rpmlint" utility for this.
Metadata Update from @decathorpe: - Issue close_status updated to: not-a-bug - Issue status updated to: Closed (was: Open)