Bug 2187168

Summary: star: Build in C89 mode
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: starAssignee: Ondrej Vasik <ovasik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: ovasik, praiskup
Target Milestone: ---Flags: fweimer: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: star-1.6-13.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-17 07:14:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2137516    
Attachments:
Description Flags
star-configure-c99.patch
none
config.guess fix
none
Another fix attempt none

Description Florian Weimer 2023-04-17 06:37:59 UTC
The configure script has many C89isms in it, so the package will not build correctly with future compilers. Given the unclear upstream state, I prefer not to spend efforts on fixing this, and we should build star in C89 mode.

config.guess runs the compiler without passing any flags, so that part at least needs to be fixed.

Reproducible: Always

Comment 1 Florian Weimer 2023-04-17 06:38:59 UTC
Created attachment 1957788 [details]
star-configure-c99.patch

config.guess fix

Comment 2 Florian Weimer 2023-04-17 06:58:41 UTC
Created attachment 1957789 [details]
config.guess fix

Smaller patch.

Comment 3 Florian Weimer 2024-01-29 11:31:57 UTC
Created attachment 2011364 [details]
Another fix attempt

I tried once more to fix this, but it's really not possible.

Comment 4 Florian Weimer 2024-01-29 12:00:24 UTC
I spent quite a bit of time to find this fix for the missing build flags injection on i686:

-for PLAT in %{arm} %{power64} aarch64 %{mips} x86_64 s390 s390x sh3 sh4 sh4a sparcv9; do
+for PLAT in %{arm} %{power64} aarch64 i686 %{mips} x86_64 s390 s390x sh3 sh4 sh4a sparcv9; do