Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787077 - [guru] net-misc/castor-0.8.16 does not respect CFLAGS/LDFLAGS
Summary: [guru] net-misc/castor-0.8.16 does not respect CFLAGS/LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: tea
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qa-guru
  Show dependency tree
 
Reported: 2021-04-30 09:38 UTC by Agostino Sarubbo
Modified: 2021-05-02 09:27 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,120.24 KB, text/plain)
2021-04-30 09:38 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 2021-04-30 09:38:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-misc/castor-0.8.16 does not respect CFLAGS/LDFLAGS.
Discovered on: amd64 (internal ref: guru_ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-30 09:38:38 UTC
Created attachment 704178 [details]
build.log

build log and emerge --info
Comment 2 Anna Vyalkova 2021-04-30 13:18:52 UTC
It's a Rust package. Looks like false positive
Comment 3 tea 2021-04-30 14:39:34 UTC
At least one of the rust modules (“libc”) tries to compile C code. When I test it in my chroot, it complains that it cannot find `cc`.
Comment 4 Anna Vyalkova 2021-05-01 07:23:36 UTC
Packages in ::gentoo just use something like

# Rust packages ignore CFLAGS and LDFLAGS so let's silence the QA warnings
QA_FLAGS_IGNORED="usr/bin/filename"
Comment 5 Larry the Git Cow gentoo-dev 2021-05-02 09:27:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=46b3080056af8407d4b87cf99e8eaff314cad91d

commit 46b3080056af8407d4b87cf99e8eaff314cad91d
Author:     Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
AuthorDate: 2021-05-01 14:10:03 +0000
Commit:     Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
CommitDate: 2021-05-01 14:10:03 +0000

    net-misc/castor: Ignore QA warning about flags.
    
    Closes: https://bugs.gentoo.org/787077
    Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>

 net-misc/castor/castor-0.8.15.ebuild | 5 ++++-
 net-misc/castor/castor-0.8.16.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)