summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2020-11-15 20:12:46 +0300
committerSergey Popov <pinkbyte@gentoo.org>2020-11-15 20:14:19 +0300
commitac73470ace408e119778067463c8bb2f0ec99711 (patch)
treeccab0f0c9818bfafe03cfb60b5843ed200a42507
parentmedia-sound/teamspeak-client: drop old version (diff)
downloadgentoo-ac73470ace408e119778067463c8bb2f0ec99711.tar.gz
gentoo-ac73470ace408e119778067463c8bb2f0ec99711.tar.bz2
gentoo-ac73470ace408e119778067463c8bb2f0ec99711.zip
sys-fs/mhddfs: reorganize patches to respect CFLAGS and LDFLAGS
Reported-by: Agostino Sarubbo <ago@gentoo.org> Closes: https://bugs.gentoo.org/726002 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
-rw-r--r--sys-fs/mhddfs/files/mhddfs-0.1.39-segfault-fix.patch17
-rw-r--r--sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch7
2 files changed, 4 insertions, 20 deletions
diff --git a/sys-fs/mhddfs/files/mhddfs-0.1.39-segfault-fix.patch b/sys-fs/mhddfs/files/mhddfs-0.1.39-segfault-fix.patch
index 493a78396190..74132c158dc0 100644
--- a/sys-fs/mhddfs/files/mhddfs-0.1.39-segfault-fix.patch
+++ b/sys-fs/mhddfs/files/mhddfs-0.1.39-segfault-fix.patch
@@ -178,23 +178,6 @@ Thanks to Gabor Kovari <gabor.kovari@gmail.com>
" mhddfs dir1,dir2.. mountpoint [ -o OPTIONS ]\n"
--- a/Makefile 2016-01-05 16:45:10.184105001 +0100
+++ b/Makefile 2015-12-21 16:32:29.000000000 +0100
-@@ -22,13 +22,13 @@
-
- TARGET = mhddfs
-
--CFLAGS += -Wall $(shell pkg-config fuse --cflags) \
-- -DFUSE_USE_VERSION=26 -MMD
-+CFLAGS = -Wall $(shell pkg-config fuse glib-2.0 --cflags) \
-+ -DFUSE_USE_VERSION=26 -MMD -g -rdynamic -O0
- ifdef WITHOUT_XATTR
- CFLAGS += -DWITHOUT_XATTR
- endif
-
--LIBS = $(shell pkg-config fuse --libs)
-+LDFLAGS = $(shell pkg-config fuse glib-2.0 --libs)
-
- FORTAR = src COPYING LICENSE README Makefile \
- README.ru.UTF-8 ChangeLog mhddfs.1 \
@@ -53,7 +53,7 @@
ifeq ($(DEBVERSION), $(VERSION))
all: $(TARGET)
diff --git a/sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch b/sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch
index 0c6f24f4d1a7..278c9876da73 100644
--- a/sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch
+++ b/sys-fs/mhddfs/files/mhddfs-respect-compiler-vars.patch
@@ -5,14 +5,15 @@
TARGET = mhddfs
-CFLAGS = -Wall $(shell pkg-config fuse --cflags) \
-+CFLAGS += -Wall $(shell pkg-config fuse --cflags) \
- -DFUSE_USE_VERSION=26 -MMD
+- -DFUSE_USE_VERSION=26 -MMD
++CFLAGS += -Wall $(shell pkg-config fuse glib-2.0 --cflags) \
++ -DFUSE_USE_VERSION=26 -MMD -rdynamic
ifdef WITHOUT_XATTR
CFLAGS += -DWITHOUT_XATTR
endif
-LDFLAGS = $(shell pkg-config fuse --libs)
-+LIBS = $(shell pkg-config fuse --libs)
++LIBS = $(shell pkg-config fuse glib-2.0 --libs)
FORTAR = src COPYING LICENSE README Makefile \
README.ru.UTF-8 ChangeLog mhddfs.1 \