Re: Troubleshooting openSUSE's packaging process

Alexander Leithner <[email protected]> Sat, 5 Apr 2025 20:10:37 +0200
Newsgroups gmane.comp.emulators.wine.devel
Message-ID <[email protected]>
Am 05.04.25 um 14:52 schrieb Alexandre Julliard:
> Alexander Leithner <[email protected]> writes:
>> Indeed, the build script on OBS exports a bunch of additional flags
>> before configuring Wine as seen above, including setting
>> -Werror=return-type.
>>
>> Running configure with CFLAGS='-Werror=return-type ' also is enough to
>> reproduce OBS' config.log output locally on my machine. Is this a bug in
>> -mabi=ms detection or should OBS not set -Werror=return-type?
> 
> We can work around this specific failure, but yes, setting -Werror
> options is a bad idea, particularly during configure.
> 
>> As a side note, OBS also enables Fortify. Isn't this subsequently
>> disabled by configure anyway? If so, I imagine OBS could just not enable
>> it in the first place, right?
> 
> Yes, it's useless.
Thanks for all the help; I've submitted a change request to openSUSE's 
packaging on OBS. For the time being, exporting -Wno-error=return-type 
in CFLAGS and CXXFLAGS before configure is called does the trick.

Let's see if it'll be accepted.

This could be removed if/when the configure test is modified to work in 
case -Werror=return-type is set.

Best,
Alexander Leithner