Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898960 - media-gfx/potrace-1.16: Not compiling with large file support
Summary: media-gfx/potrace-1.16: Not compiling with large file support
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lfs-tracker
  Show dependency tree
 
Reported: 2023-03-02 22:49 UTC by Allen Webb
Modified: 2024-01-22 01:06 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Webb 2023-03-02 22:49:54 UTC
media-gfx/potrace is missing large file support on 32-bit architectures:

```
21:49:44.766  * QA Notice: The following files were not built with LFS support:
21:49:44.779  *   Please see https://issuetracker.google.com/201531268 for details.
21:49:44.793  * fopen /usr/bin/mkbitmap
21:49:44.797  * fopen /usr/bin/potrace
21:49:44.811  * Full build files:
fopen /build/arm-generic/tmp/portage/media-gfx/potrace-1.16/work/potrace-1.16/src/.libs/potrace
fopen /build/arm-generic/tmp/portage/media-gfx/potrace-1.16/work/potrace-1.16/src/main.o
fopen /build/arm-generic/tmp/portage/media-gfx/potrace-1.16/work/potrace-1.16/src/mkbitmap
fopen /build/arm-generic/tmp/portage/media-gfx/potrace-1.16/work/potrace-1.16/src/mkbitmap.o
```

I checked and there doesn't seem to be any ABI breakage by adding the LFS flags as there is no usage of off_t.

This fixes the issue for me:
```
diff --git a/media-gfx/potrace/potrace-1.16.ebuild b/media-gfx/potrace/potrace-1.16.ebuild
index fb0dbc826..234a1cd80 100644
--- a/media-gfx/potrace/potrace-1.16.ebuild
+++ b/media-gfx/potrace/potrace-1.16.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit toolchain-funcs flag-o-matic
 
 DESCRIPTION="Transforming bitmaps into vector graphics"
 HOMEPAGE="http://potrace.sourceforge.net/"
@@ -20,6 +20,8 @@ DEPEND="${RDEPEND}"
 DOCS=( AUTHORS ChangeLog NEWS README )
 
 src_configure() {
+       append-lfs-flags
+
        tc-export CC # bug 610098
        local myeconfargs=(
                --disable-static
```

Reproducible: Always