Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854213 - app-backup/mirdir-2.1-r2 fails to compile (lto): mirdir.c:527:3: error: tm undeclared (first use in this function)
Summary: app-backup/mirdir-2.1-r2 fails to compile (lto): mirdir.c:527:3: error: tm un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-06-25 08:24 UTC by Agostino Sarubbo
Modified: 2022-06-25 19:03 UTC (History)
0 users

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


Attachments
build.log (build.log,46.54 KB, text/plain)
2022-06-25 08:24 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 2022-06-25 08:24:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-backup/mirdir-2.1-r2 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-06-25 08:24:21 UTC
Created attachment 787556 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2022-06-25 19:03:42 UTC
The bug has been closed via the following commit(s):

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

commit c74bbd229907063446180084e47f9fa8056e543a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-25 09:21:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-25 19:03:24 +0000

    app-backup/mirdir: fix build with LTO
    
    Seems to be a dodgy old autoconf bug. No source configure.in/.ac in the
    tarball so can't easily fix it either, sadly.
    
    Just force off the test as lutime doesn't ever exist on Linux
    but I'm not sure if lutime is even a thing anyway (lutimeS, perhaps?).
    
    Closes: https://bugs.gentoo.org/854213
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/mirdir-2.1-implicit-function-decl.patch  | 11 ++++++
 app-backup/mirdir/mirdir-2.1-r3.ebuild             | 39 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)