Summary: | sys-power/suspend-1.0_p20200924 fails to compile: swsusp.h:61:9: error: unknown type name loff_t | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | parona |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
Missing #define _GNU_SOURCE |
Description
Agostino Sarubbo
2022-02-09 11:34:08 UTC
Created attachment 764682 [details]
build.log
build log and emerge --info
Still broken on musl Created attachment 872607 [details, diff]
Missing #define _GNU_SOURCE
Fix for sys-power/suspend on musl hardened.
I wrote a long post but it got deleted.
Now briefly, three files missing a #define:
#define _GNU_SOURCE
The files are:
swsusp.h
suspend.c
load.c
My initial tests where with a GCC option like this:
CFLAGS="${COMMON_FLAGS}-D_GNU_SOURCE" emerge sys-power/suspend
The patch provided works with all USE flags turned on.
It's a gentoo diff that works as a drop in solution in:
/etc/portage/patches
Thanks.
|