Skip to content

Fix lto no text in archive#515

Merged
sni merged 2 commits intonaemon:masterfrom
sni:fix-lto-no-text-in-archive
Jan 22, 2026
Merged

Fix lto no text in archive#515
sni merged 2 commits intonaemon:masterfrom
sni:fix-lto-no-text-in-archive

Conversation

@sni
Copy link
Copy Markdown
Contributor

@sni sni commented Jan 19, 2026

improve rpm builds and fix 2 rpmlint issues.

@sni sni force-pushed the fix-lto-no-text-in-archive branch 2 times, most recently from 5ee2dff to 6ca1e8e Compare January 19, 2026 11:54
sni added 2 commits January 19, 2026 13:00
this fixes the rpmlint issue:

    [  100s] naemon-core.aarch64: W: install-file-in-docs /usr/share/doc/packages/naemon-core/INSTALL
    [  100s] A file whose name suggests that it contains installation instructions is
    [  100s] included in the package. Such instructions are often not relevant for already
    [  100s] installed packages.
opensuse 16 builds fail with the following issue:

    [  100s] naemon-devel.aarch64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/naemon/libnaemon.a
    [  100s] This archive does not contain a non-empty .text section.  The archive was not
    [  100s] created with -ffat-lto-objects option.

    [  100s] naemon-devel.aarch64: E: lto-bytecode (Badness: 10000) /usr/lib64/naemon/libnaemon.a
    [  100s] This executable contains a LTO section.  LTO bytecode is not portable and
    [  100s] should not be distributed in static libraries or e.g. Python modules.

the recommended fix is to extend the _lto_cflags macro.
@sni sni force-pushed the fix-lto-no-text-in-archive branch from 6ca1e8e to 3919ea3 Compare January 19, 2026 12:00
@sni sni merged commit 825e8f5 into naemon:master Jan 22, 2026
38 checks passed
@nook24 nook24 mentioned this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants