Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895802 - net-misc/ntp-4.2.8_p16 redefines _FORTIFY_SOURCE (HARDENED-SYSTEM)
Summary: net-misc/ntp-4.2.8_p16 redefines _FORTIFY_SOURCE (HARDENED-SYSTEM)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 847148
  Show dependency tree
 
Reported: 2023-02-22 07:59 UTC by Agostino Sarubbo
Modified: 2023-06-05 16:22 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,383.72 KB, text/plain)
2023-02-22 07:59 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 2023-02-22 07:59:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-misc/ntp-4.2.8_p15-r6 redefines _FORTIFY_SOURCE (HARDENED-SYSTEM).
Discovered on: amd64 (internal ref: hardened_tinderbox)

NOTE:
(HARDENED-SYSTEM) in the summary means that the bug was found on a machine that runs an hardened profile with -D_FORTIFY_SOURCE=3 and -D_GLIBCXX_ASSERTIONS (https://www.gentoo.org/support/news-items/2023-01-01-hardening-fortify-assertions.html) but this bug MAY or MAY NOT BE related to the changes related to hardened.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-22 07:59:05 UTC
Created attachment 853742 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-05 07:39:37 UTC
tinderbox_musl has reproduced this issue with version 4.2.8_p16 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2023-06-05 16:22:58 UTC
The bug has been closed via the following commit(s):

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

commit e224dd523ebe4fd061e3137c24e9dcd4788a65a2
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-06-05 16:20:12 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-06-05 16:20:12 +0000

    net-misc/ntp: pass --with-hardenfile=/dev/null to configure
    
    The NTP build system has a script that adds platform-specific "hardening"
    flags to CFLAGS. Disable this behavior and respect the user's CFLAGS.
    
    Closes: https://bugs.gentoo.org/895802
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-misc/ntp/{ntp-4.2.8_p16.ebuild => ntp-4.2.8_p16-r1.ebuild} | 3 +++
 1 file changed, 3 insertions(+)