Bug 1652641
| Summary: | unable to add a task with binary database data | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Karel Volný <kvolny> |
| Component: | general | Assignee: | Martin Styk <mastyk> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | bpeck, breilly, cbeer, mastyk, mcermak |
| Target Milestone: | 26.2 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-11-27 14:52:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
The issue seems to be caused by data.bin file. $ file data.bin data.bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.4, with debug_info, not stripped As error stated, rpm is trying to create noarch package, however data.bin is x86-64. this might be helpful https://patchwork.openembedded.org/patch/139621/ Workaround Create file ~/.rpmmacros and store following content in: %_unpackaged_files_terminate_build 0 %_binaries_in_noarch_packages_terminate_build 0 We don't want to mess with .rpmmacros where we could affect other packages being built. The following diff should work I think? diff --git a/bin/rhts-mk-build-package b/bin/rhts-mk-build-package index 813e0c3..ea0debb 100755 --- a/bin/rhts-mk-build-package +++ b/bin/rhts-mk-build-package @@ -161,7 +161,7 @@ popd echo "Generating specfile: $GENERATED_SPECFILE" find $EXTRACT_DIR -name testinfo.desc | rhts-mk-generate-specfile $ABI_OPTIONS $URL_OPTIONS $RHTS_RPM_NAME $VERSION $RELEASE $provides > $GENERATED_SPECFILE || exit $? echo "Building package:" -rpmbuild -bb --define "_builddir $BUILD_DIR" --define "_sourcedir $GENERATED_SOURCE_DIR" --define "_rpmdir $INSTALL_DIR" $GENERATED_SPECFILE || exit 1 +rpmbuild -bb --define "_binaries_in_noarch_packages_terminate_build 0" --define "_unpackaged_files_terminate_build 0" --define "_builddir $BUILD_DIR" --define "_sourcedir $GENERATED_SOURCE_DIR" --define "_rpmdir $INSTALL_DIR" $GENERATED_SPECFILE || exit 1 #bpeck: if $(TESTSERVER) passed in then submit rpm. if [ -n "$TESTSERVER" ]; then Tested and it is working. Do we want to incorporate this change to rhts-mk-build-package? This will affect all created packages. yes please. Thanks *** Bug 1516834 has been marked as a duplicate of this bug. *** (In reply to Martin Styk from comment #1) > The issue seems to be caused by data.bin file. > > $ file data.bin > data.bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically > linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.4, with > debug_info, not stripped > > As error stated, rpm is trying to create noarch package, however data.bin is > x86-64. I don't know how that works, however mysql/mariadb loads the same file on all architectures ... thanks for patching this; I've applied the patch locally and I can submit the test to Beaker now ... hope it'll make it into the rhts-devel package soon |
Description of problem: While updating the test /CoreOS/mariadb55/Security/CVE-2010-3840-crash-loading-into-polyfromwkb for newer mariadb version, I have found that I am unable to submit this task to beaker ... Version-Release number of selected component (if applicable): rhts-test-env-4.74-2.fc29eng.noarch How reproducible: always Steps to Reproduce: 1. clone tests/mariadb55 from distgit 2. cd mariadb55/Security/CVE-2010-3840-crash-loading-into-polyfromwkb (re-tag if needed) 3. make bkradd Actual results: ... make[1]: Leaving directory '/tmp/rhts-build-MqhliD4d/rpm-build/mariadb55-CoreOS-mariadb55-Security-CVE-2010-3840-crash-loading-into-polyfromwkb-1.0' + chmod -R a-s /home/kvolny/rpmbuild/BUILDROOT/mariadb55-CoreOS-mariadb55-Security-CVE-2010-3840-crash-loading-into-polyfromwkb-1.0-4.x86_64 + /usr/lib/rpm/brp-compress Processing files: mariadb55-CoreOS-mariadb55-Security-CVE-2010-3840-crash-loading-into-polyfromwkb-1.0-4.noarch Provides: CoreOS-mariadb55-Security-CVE-2010-3840-crash-loading-into-polyfromwkb = 1.0-4 mariadb55-CoreOS-mariadb55-Security-CVE-2010-3840-crash-loading-into-polyfromwkb = 1.0-4 test(/CoreOS/mariadb55/Security/CVE-2010-3840-crash-loading-into-polyfromwkb) = 1.0-4 test-of(mariadb55)-/CoreOS/mariadb55/Security/CVE-2010-3840-crash-loading-into-polyfromwkb = 1.0-4 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 error: Arch dependent binaries in noarch package RPM build errors: Arch dependent binaries in noarch package make: *** [/usr/share/rhts/lib/rhts-make.include:99: bkradd] Error 1 rm testinfo.desc Expected results: no such error, task gets submitted Additional info: