mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
parent
56964597f1
commit
b6ef17666d
@ -1,14 +1,15 @@
|
||||
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
pkgname=testdisk
|
||||
pkgver=7.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A data recovery suite"
|
||||
url="https://www.cgsecurity.org/wiki/TestDisk"
|
||||
arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
makedepends="e2fsprogs-dev ntfs-3g-dev ncurses-dev zlib-dev libjpeg-turbo-dev"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://www.cgsecurity.org/testdisk-$pkgver.tar.bz2"
|
||||
source="https://www.cgsecurity.org/testdisk-$pkgver.tar.bz2
|
||||
implicit-basename-declaration.patch"
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
@ -31,4 +32,5 @@ package() {
|
||||
|
||||
sha512sums="
|
||||
f99dd1c8f547c3d06e5459ba072438192a49d76c569de7915994beb269645092522d8136a212999382f88ca1d29c50f6482306d47197dc0994d168bcd4141f26 testdisk-7.2.tar.bz2
|
||||
2d446e5eaf43aefda334b16e0f1fec4f77e4dd44ddb14f3db0e94485b28da827215a813f36946eed768881abcc616c3aca6c767a95c596fcbcc8143f51f94237 implicit-basename-declaration.patch
|
||||
"
|
||||
|
||||
17
main/testdisk/implicit-basename-declaration.patch
Normal file
17
main/testdisk/implicit-basename-declaration.patch
Normal file
@ -0,0 +1,17 @@
|
||||
POSIX requires libgen.h to be included for the basename function prototype.
|
||||
|
||||
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/16103
|
||||
|
||||
diff -upr testdisk-7.2.orig/src/hdaccess.c testdisk-7.2/src/hdaccess.c
|
||||
--- testdisk-7.2.orig/src/hdaccess.c 2024-05-12 11:35:59.137491246 +0200
|
||||
+++ testdisk-7.2/src/hdaccess.c 2024-05-12 11:36:51.334218946 +0200
|
||||
@@ -48,6 +48,9 @@
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
+#ifdef HAVE_LIBGEN_H
|
||||
+#include <libgen.h>
|
||||
+#endif
|
||||
#ifdef HAVE_FCNTL_H
|
||||
#include <fcntl.h> /* open */
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user