Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1881333 - libftdi-1.4-3.eln103 fails to rebuild in ELN buildroot
Summary: libftdi-1.4-3.eln103 fails to rebuild in ELN buildroot
Keywords:
Status: CLOSED DUPLICATE of bug 1863999
Alias: None
Product: Fedora
Classification: Fedora
Component: libftdi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lucian Langa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-22 08:28 UTC by Kamil Dudka
Modified: 2020-10-01 07:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-01 07:55:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kamil Dudka 2020-09-22 08:28:39 UTC
Version-Release number of selected component (if applicable):
libftdi-1.4-3.eln103


How reproducible:
Easily.


Steps to Reproduce:
1. koji buildinfo $(koji latest-build --quiet eln libftdi | cut -f1 -d' ') | grep ^Task
2. koji build --scratch eln git+https://src.fedoraproject.org/rpms/libftdi.git:c50c677d47a5fd204f0e4f1465ab1dbe45cba570


Actual results:
[...]
-- Build files have been written to: /builddir/build/BUILD/libftdi1-1.4/build-py3/x86_64-redhat-linux-gnu
+ /usr/bin/make -O -j48 V=1 VERBOSE=1
make: *** No targets specified and no makefile found.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.ZLMMIy (%build)


Expected results:
Successful build.


Additional info:
scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=52003476

Most likely caused by a backward-incompatible change of the %cmake RPM macro:

    https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds

Comment 2 Kamil Dudka 2020-09-25 08:07:04 UTC
The following one-line patch fixes the bug:

--- a/libftdi.spec
+++ b/libftdi.spec
@@ -72,9 +72,9 @@ sed -i -e 's/GROUP="plugdev"/TAG+="uaccess"/g' packages/99-libftdi.rules
 %build
 export CMAKE_PREFIX_PATH=%{_prefix}

 mkdir build-py3 && pushd build-py3
-%{cmake3} -DPython_ADDITIONAL_VERSIONS=%{python3_version} ..
+%{cmake3} -DPython_ADDITIONAL_VERSIONS=%{python3_version} .. -B .
 %make_build
 popd

 # Fix python sheband lines

Comment 3 Kamil Dudka 2020-10-01 07:55:29 UTC

*** This bug has been marked as a duplicate of bug 1863999 ***


Note You need to log in before you can comment on or make changes to this bug.