Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724162 - dev-util/cargo-ebuild does not respect CFLAGS/LDFLAGS
Summary: dev-util/cargo-ebuild does not respect CFLAGS/LDFLAGS
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: cflags ldflags
  Show dependency tree
 
Reported: 2020-05-19 21:07 UTC by Agostino Sarubbo
Modified: 2021-06-12 06:43 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,47.47 KB, text/plain)
2020-05-19 21:08 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-05-19 21:07:57 UTC
This is an auto-filed bug because dev-util/cargo-ebuild does not respect CFLAGS/LDFLAGS.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
To reproduce this issue you may want to set CFLAGS="${CFLAGS} -frecord-gcc-switches" and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ context you may want to set also FFLAGS and FCFLAGS or just see this bug as an hint to hide the QA warning where is not possible to respect CFLAGS/LDFLAGS.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-19 21:08:09 UTC
Created attachment 640434 [details]
build.log

build log and emerge --info
Comment 2 Georgy Yakovlev archtester gentoo-dev 2020-06-02 23:54:01 UTC
it's rust ebuild and can't realistically support CFLAGS.

maybe cargo.eclass could omit that check for those packages, or check can be improved.