Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250960 - app-admin/logrotate-3.7.2: emake error when using gcc-4x and the -combine argument
Summary: app-admin/logrotate-3.7.2: emake error when using gcc-4x and the -combine arg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-14 18:35 UTC by Beech Horn
Modified: 2008-12-15 17:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beech Horn 2008-12-14 18:35:29 UTC
app-admin/logrotate lists four .c files in a single command (and tries to output them to .depend).

This fails when using the "gcc -combine" CFLAGS.

Would it please be possible to strip the argument -combine from CFLAGS dynamically for this package?

Reproducible: Always

Steps to Reproduce:
1. Set CFLAGS to include -combine in /etc/make.conf
2. Emerge logrotate
3. Watch it fail on emake

Actual Results:  
emake fails

Expected Results:  
It compiles, installs, etc.

It is desirable to fix this in the autotool configuration upstream, until this happens it would probably make sense to filter -combine.
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-12-15 17:31:37 UTC
There is no upstream and no autotool support.  I have no plans to work on the build system, since logrotate is in deep maintenance at this point.

I have to wonder if putting -combine in CFLAGS is of any use whatsoever.  It seems like it will either do noting (autotool'd packages only ever pass one file at a time) or break (like this does).

Nevertheless, I've added a strip-flags to 2.7.2 without a bump.  It works in my testing.