Diff libowfat-0.32-r5 with a libowfat-0.33-r1
| /usr/portage/dev-libs/libowfat/libowfat-0.33-r1.ebuild 2025-07-29 16:22:13.168450521 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2024 Gentoo Authors |
|
| 1 |
# Copyright 1999-2025 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI="8" |
| ... | ... | |
| 17 | 17 |
RDEPEND="diet? ( >=dev-libs/dietlibc-0.33_pre20090721 )" |
| 18 | 18 |
DEPEND="${RDEPEND}"
|
| 19 | 19 | |
| 20 |
PATCHES=( |
|
| 21 |
"${FILESDIR}"/${P}-gcc10.patch
|
|
| 22 |
"${FILESDIR}"/${P}-ar.patch
|
|
| 23 |
) |
|
| 24 | ||
| 25 | 20 |
pkg_setup() {
|
| 26 | 21 |
# Required for mult/umult64.c to be usable |
| 27 | 22 |
append-flags -fomit-frame-pointer |
| 28 | 23 |
} |
| 29 | 24 | |
| 30 |
src_prepare() {
|
|
| 31 |
default |
|
| 32 | ||
| 33 |
# do not define "__pure__", this the gcc builtin (bug #806505) |
|
| 34 |
sed 's#__pure__;#__attribute__((__pure__));#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die |
|
| 35 |
sed 's#__pure__$#__attrib__pure__#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die |
|
| 36 |
# remove unneeded definition of __deprecated__ |
|
| 37 |
sed '/^#define __deprecated__$/d' -i scan/scan_iso8601.c scan/scan_httpdate.c || die |
|
| 38 |
} |
|
| 39 | ||
| 40 | 25 |
src_compile() {
|
| 41 | 26 |
# Primary use case is for code by the same author. Which then fails with |
| 42 | 27 |
# LTO errors. It builds a static library only, anyway. Result: LTO can be |
| ... | ... | |
| 44 | 29 |
# or if you are unlucky, ICEs. Just don't use LTO, there is no point... |
| 45 | 30 |
filter-lto |
| 46 | 31 | |
| 32 |
# workaround for broken dependencies |
|
| 33 |
emake headers |
|
| 34 | ||
| 47 | 35 |
emake \ |
| 48 | 36 |
CC="$(tc-getCC)" \ |
| 49 | 37 |
AR="$(tc-getAR)" \ |