mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/e2fsimage: fix build with gcc 14
This commit is contained in:
parent
a482fbec7b
commit
75998246fe
@ -2,14 +2,15 @@
|
||||
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
||||
pkgname=e2fsimage
|
||||
pkgver=0.2.3
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="create and populate an ext2/3/4 filesystem image as non-root user"
|
||||
url="https://github.com/Ledest/e2fsimage"
|
||||
arch="all"
|
||||
license="BSD-3-Clause"
|
||||
makedepends="e2fsprogs-dev e2fsprogs-extra"
|
||||
subpackages="$pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/Ledest/e2fsimage/archive/$pkgver.tar.gz"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/Ledest/e2fsimage/archive/$pkgver.tar.gz
|
||||
gcc14.patch"
|
||||
|
||||
build() {
|
||||
prefix=/usr mandir=/usr/share/man ./configure
|
||||
@ -24,4 +25,7 @@ package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="b6bf97ae35af7c48063f7a6dc19af80fec4bdfcd4d9b6064168b5e5a37ead57b3a01772f659f5004d6d5f1217cccba6a019e1974f87503fcaf526a15d6187ed7 e2fsimage-0.2.3.tar.gz"
|
||||
sha512sums="
|
||||
b6bf97ae35af7c48063f7a6dc19af80fec4bdfcd4d9b6064168b5e5a37ead57b3a01772f659f5004d6d5f1217cccba6a019e1974f87503fcaf526a15d6187ed7 e2fsimage-0.2.3.tar.gz
|
||||
93f05b7823191f31828135183a62d29f77c55c0d2808650e51f5e6db587268eaa38d15c22b801a6c99902d7b6f34c19993b5f8491d0488c2e47e97b19972414b gcc14.patch
|
||||
"
|
||||
|
15
community/e2fsimage/gcc14.patch
Normal file
15
community/e2fsimage/gcc14.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Fix -Wimplicit-int and -Wimplicit-function-declaration errors on conftest.c
|
||||
with gcc 14.
|
||||
|
||||
--- e2fsimage-0.2.3-origin/configure
|
||||
+++ e2fsimage-0.2.3/configure
|
||||
@@ -101,7 +101,8 @@
|
||||
##### Try to compile them all together and show the versions.
|
||||
cat >conftest.c <<EOF
|
||||
#include <e2p/e2p.h>
|
||||
-main(){ const char *v, *d; ext2fs_get_library_version(&v,&d);
|
||||
+#include <ext2fs/ext2fs.h>
|
||||
+int main(){ const char *v, *d; ext2fs_get_library_version(&v,&d);
|
||||
printf("\nThe version of the e2fs library is: %s, %s\n", v, d);return 0;}
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user