Package: sup
Severity: important
Version: 20060803-2
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweak to debian packaging
and to file ffilecopy.c, see bellow.
It would also be nice if you can ask upstream
to include ffilecopy.c changes.
Thanks in advance
Petr
--- debian/rules.OLD
+++ debian/rules
@@ -6,7 +6,7 @@
DEB_MAKE_INSTALL_TARGET=install PREFIX=$(CURDIR)/debian/sup/usr
DEB_MAKE_INVOKE := ${DEB_MAKE_ENVVARS} \
- make -C ${DEB_BUILDDIR} DEBIANCFLAGS="${CFLAGS}"
+ make -C ${DEB_BUILDDIR} DEBIANCFLAGS="${CFLAGS}" SITE=LINUX
common-install-arch::
dh_installdocs debian/sup.doc
--- ffilecopy.c~
+++ ffilecopy.c
@@ -70,7 +70,7 @@
here->_r = 0;
}
#else
-#ifndef __linux__
+#if !(defined(__linux__) || defined(__GLIBC__))
if ((here->_cnt) > 0) { /* flush buffered input */
i = write(therefile, here->_ptr, here->_cnt);
if (i != here->_cnt)
@@ -87,7 +87,7 @@
#if defined(__386BSD__) || defined(__NetBSD__)
(here->_flags) |= __SEOF; /* indicate EOF */
#else
-#ifndef __linux__
+#if !(defined(__linux__) || defined(__GLIBC__))
(here->_flag) |= _IOEOF; /* indicate EOF */
#else
(void)fseeko(here, (off_t)0, SEEK_END); /* seek to end */
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]