Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737060 - dev-lang/lazarus-2.2.4 does not respect CFLAGS/LDFLAGS
Summary: dev-lang/lazarus-2.2.4 does not respect CFLAGS/LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: cflags ldflags
  Show dependency tree
 
Reported: 2020-08-14 06:50 UTC by Agostino Sarubbo
Modified: 2023-01-11 09:41 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,50.07 KB, application/x-xz)
2020-08-14 06:50 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-08-14 06:50:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/lazarus-2.0.6 does not respect CFLAGS/LDFLAGS.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
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 2020-08-14 06:50:09 UTC
Created attachment 654548 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-14 14:45:22 UTC
ci has reproduced this issue with version 2.0.12 - Updating summary.
Comment 3 Agostino Sarubbo gentoo-dev 2022-02-02 16:10:16 UTC
ci has reproduced this issue with version 2.2.0 - Updating summary.
Comment 4 Agostino Sarubbo gentoo-dev 2022-12-12 19:30:36 UTC
ci has reproduced this issue with version 2.2.4 - Updating summary.
Comment 5 Larry the Git Cow gentoo-dev 2023-01-11 09:41:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc4ae6502bc01de42621d6744ebca15b882de5fd

commit dc4ae6502bc01de42621d6744ebca15b882de5fd
Author:     Michael Corvinus <voron1@gmail.com>
AuthorDate: 2022-12-24 21:31:42 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2023-01-11 09:40:50 +0000

    dev-lang/lazarus: fix calling `gcc` directly
    
    The build system does things like GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
    Replace with ${CC}.
    
    Add QA_FLAGS_IGNORED and QA_PRESTRIPPED as FPC doesn't care about CFLAGS and does its own stripping.
    
    Closes: https://bugs.gentoo.org/818154
    Closes: https://bugs.gentoo.org/737060
    
    Signed-off-by: Michael Corvinus <voron1@gmail.com>
    Signed-off-by: Amy Liffey <amynka@gentoo.org>

 dev-lang/lazarus/Manifest                           |  1 +
 ...lazarus-2.2.4.ebuild => lazarus-2.2.4-r1.ebuild} | 21 ++++++++++++++++++---
 2 files changed, 19 insertions(+), 3 deletions(-)