Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910552 - app-arch/libarchive-3.7.0: no member named 'f_namelen' in 'struct statvfs'
Summary: app-arch/libarchive-3.7.0: no member named 'f_namelen' in 'struct statvfs'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-07-19 14:08 UTC by foearb
Modified: 2023-07-19 18:33 UTC (History)
2 users (show)

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


Attachments
build.log (file_910552.txt,51.38 KB, text/plain)
2023-07-19 14:08 UTC, foearb
Details
emerge --info (file_910552.txt,5.97 KB, text/plain)
2023-07-19 14:09 UTC, foearb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description foearb 2023-07-19 14:08:36 UTC
Created attachment 865796 [details]
build.log

app-arch/libarchive-3.7.0 failes to emerge on musl/llvm

```
/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-arch/libarchive-3.7.0/work/libarchive-3.7.0   -I/usr/include/libxml2   -O2 -pipe -march=native -Wall -Wformat -Wformat-security -ffunction-sections -fdata-sections -fvisibility=hidden -D__LIBARCHIVE_ENABLE_VISIBILITY -c -o libarchive/archive_read_extract.lo /var/tmp/portage/app-arch/libarchive-3.7.0/work/libarchive-3.7.0/libarchive/archive_read_extract.c
/var/tmp/portage/app-arch/libarchive-3.7.0/work/libarchive-3.7.0/libarchive/archive_read_disk_posix.c:1869:41: error: no member named 'f_namelen' in 'struct statvfs'; did you mean 'f_namemax'?
        t->current_filesystem->name_max = svfs.f_namelen;
                                               ^~~~~~~~~
                                               f_namemax
/usr/include/sys/statvfs.h:25:24: note: 'f_namemax' declared here
        unsigned long f_flag, f_namemax;
                              ^
1 error generated.
```
Comment 1 foearb 2023-07-19 14:09:25 UTC
Created attachment 865797 [details]
emerge --info
Comment 2 immolo 2023-07-19 14:39:35 UTC
This is a musl issue as I've just hit the same with GCC.
Comment 4 immolo 2023-07-19 14:55:50 UTC
(I didn't even get the repo open before you had the fix.)

Confirmed fix and PR inbound to ::gentoo.
Comment 5 foearb 2023-07-19 15:46:20 UTC
Still does not compile. But hits another error
Comment 7 Larry the Git Cow gentoo-dev 2023-07-19 18:33:43 UTC
The bug has been closed via the following commit(s):

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

commit 436a86c6ba463931212876d2ed96d067f20d378e
Author:     Ian Jordan <immoloism@gmail.com>
AuthorDate: 2023-07-19 15:26:58 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-07-19 18:30:57 +0000

    app-arch/libarchive: fix build on musl
    
    Cherrypicked patch from master repo to fix compiling 3.7.0
    under musl. Tested with both GCC and LLVM.
    
    Also added BDEP for sys-libs/queue-standalone for this version.
    
    Closes: https://bugs.gentoo.org/910552
    Signed-off-by: Ian Jordan <immoloism@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31959
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../files/libarchive-3.7.0-f_namemax-fix.patch        | 19 +++++++++++++++++++
 app-arch/libarchive/libarchive-3.7.0.ebuild           |  6 ++++++
 2 files changed, 25 insertions(+)