Bug 1275265 - Fails to build when all %bcond_with(out) are disabled
Summary: Fails to build when all %bcond_with(out) are disabled
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-26 12:15 UTC by Milan Bouchet-Valat
Modified: 2016-06-05 12:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-05 12:39:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Milan Bouchet-Valat 2015-10-26 12:15:16 UTC
For debugging purposes I tried building llvm disabling all %bcond_with an %bcond_without options. I noticed the package doesn't build in that case. The patch below fixed it.

@@ -335,7 +336,9 @@
 sed -i 's|/lib /usr/lib $lt_ld_extra|%{_libdir} $lt_ld_extra|' configure
 sed -i 's|(PROJ_prefix)/lib|(PROJ_prefix)/%{_lib}/%{name}|g' Makefile.config.in
 sed -i 's|/lib\>|/%{_lib}/%{name}|g' tools/llvm-config/llvm-config.cpp
+%if %{with crt}
 sed -ri "/ifeq.*CompilerTargetArch/s#i386#i686#g" projects/compiler-rt/make/platform/clang_linux.mk
+%endif
 
 %build
 %ifarch s390
@@ -611,7 +612,6 @@
 %if %{with lldb}
 %exclude %{_mandir}/man1/lldb.1.*
 %endif
-%doc %{_mandir}/man1/*.1.*
 
 %files devel
 %doc %{llvmdocdir %{name}-devel}/

Comment 1 Jan Kurik 2016-02-24 15:42:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 2 Jan Včelák 2016-06-05 12:39:57 UTC
Package has been reworked since.


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