Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724280 - dev-util/cbindgen does not respect CFLAGS/LDFLAGS
Summary: dev-util/cbindgen 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: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: cflags ldflags
  Show dependency tree
 
Reported: 2020-05-20 08:08 UTC by Agostino Sarubbo
Modified: 2020-05-25 12:27 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,57.32 KB, text/plain)
2020-05-20 08: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-20 08:08:40 UTC
This is an auto-filed bug because dev-util/cbindgen 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-20 08:08:48 UTC
Created attachment 640480 [details]
build.log

build log and emerge --info
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-20 09:06:14 UTC
This is a rust package. It's very likely that your checks don't work here. Closing as invalid.
Comment 3 Agostino Sarubbo gentoo-dev 2020-05-20 09:29:18 UTC
did you entirely read comment 0 ?

See also: https://bugs.gentoo.org/677600#c4 https://bugs.gentoo.org/677600#c5
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-20 09:51:24 UTC
Only in parts. Well, I'll try to hide the QA warning... but tbh, I think this is the wrong way. Check should detect when it's impossible and skip files automatically.
Comment 5 Agostino Sarubbo gentoo-dev 2020-05-20 09:57:21 UTC
(In reply to Thomas Deutschmann from comment #4)
> Only in parts. Well, I'll try to hide the QA warning... but tbh, I think
> this is the wrong way. Check should detect when it's impossible and skip
> files automatically.

I think the same so I'd suggest to wait to see what happens in 677600.