Skip to content
Snippets Groups Projects
Commit 1cfc191c authored by Sören Tempel's avatar Sören Tempel
Browse files

community/quota-tools: fix implicit basename declaration

See #16106

Fixes #16285
parent 259aa536
No related branches found
No related tags found
2 merge requests!75268main/postgresql15: security upgrade to 15.9,!75022community/linux-edge: add hexdump to makedepends
......@@ -2,16 +2,16 @@
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=quota-tools
pkgver=4.09
pkgrel=0
pkgrel=1
pkgdesc="linux disk quota system tools"
url="https://sourceforge.net/projects/linuxquota/"
arch="all"
license="GPL-2.0-or-later"
makedepends="e2fsprogs-dev libnl3-dev libtirpc-dev
linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/linuxquota/quota-$pkgver.tar.gz"
source="https://downloads.sourceforge.net/sourceforge/linuxquota/quota-$pkgver.tar.gz
fix-implicit-basename.patch"
builddir="$srcdir/"quota-$pkgver
......@@ -46,4 +46,5 @@ package() {
sha512sums="
003d45f33543d4c87446e6547079cdae293b8dade01c58cf3626623721a1400ee07681395ad656c23a9ea2a62ab27c6ad24ad55600890e6e25334aba27ab1ad5 quota-4.09.tar.gz
79f935c264f658af4a7ffc27ccaa0be8d323f252a73a32cd978c4b4bef881137310729a62db0f3674fd45e95a0ab84dbbd60dbc7bc655693aacc33e6721c0bf8 fix-implicit-basename.patch
"
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/16106
diff -upr quota-4.09.orig/common.h quota-4.09/common.h
--- quota-4.09.orig/common.h 2024-07-17 21:24:31.966854060 +0200
+++ quota-4.09/common.h 2024-07-17 21:24:57.050235540 +0200
@@ -67,4 +67,7 @@ int timespec_cmp(struct timespec *a, str
/* Convert command line option to desired output unit */
int unitopt2unit(char *opt, enum s2s_unit *space_unit, enum s2s_unit *inode_unit);
+/* Implementation of the GNU basename(3) version */
+#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src)
+
#endif /* GUARD_COMMON_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment