The implementation of the patch for GNU/kFreeBSD
was obfuscated when Beckert's original
ifeq (, $(filter kFreeBSD,$(shell uname -s)))
was replaced by
ifeq (kFreeBSD,$(shell uname -s))
The reason for failure being that the return string
is "GNU/kFreeBSD", which the filter command discovers.
There is a further build failure due to the lack of
<ext2fs/ext2_fs.h> for GNU/kFreeBSD. The following
change mends this by removing the command "lsattr".
An expert might be able to implement "lsattr" for ufs,
which I am not able to do.
Best regards,
Mats Erik Andersson, DM
--- sash-3.7/Makefile.debian
+++ sash-3.7/Makefile
@@ -8,10 +8,18 @@
# The MOUNT_TYPE definition sets the default file system type for -mount.
#
HAVE_GZIP = 1
+ifeq (Linux,$(shell uname -s))
HAVE_LINUX_ATTR = 1
HAVE_LINUX_MOUNT = 1
HAVE_BSD_MOUNT = 0
MOUNT_TYPE = '"ext3"'
+endif
+ifeq (GNU/kFreeBSD,$(shell uname -s))
+HAVE_LINUX_ATTR = 0
+HAVE_LINUX_MOUNT = 0
+HAVE_BSD_MOUNT = 1
+MOUNT_TYPE = '"ufs"'
+endif
DEFS = -DHAVE_GZIP=$(HAVE_GZIP) \
-DHAVE_LINUX_ATTR=$(HAVE_LINUX_ATTR) \
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]