[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#544821: di: FTBFS on GNU/kFreeBSD



Package: di
Version: 4.13.dfsg.1-1
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
X-Debbugs-CC: debian-bsd@lists.debian.org, rbrito@ime.usp.br

Hi,

the current version fails to build on GNU/kFreeBSD.


Rogério Brito <rbrito@ime.usp.br> (02/09/2009):
I just updated my bsd image and I tried to install the "di"
package. It unfortunately FTBFS also (just tried to build it).

What is the usual procedure to deal with FTBFS'es with BSD?

send a patch to the BTS, tagging it patch, usertagging it with user:
debian-bsd@lists.debian.org, usertags: kfreebsd.

Or ask on debian-bsd@lists.debian.org, we do our best.
The needed patch is bellow.

It would also be nice if you can ask upstream
to include this change.

Thanks in advance

                        Petr
only in patch2:
unchanged:
--- di-4.13.dfsg.1.orig/dilib.c
+++ di-4.13.dfsg.1/dilib.c
@@ -203,15 +203,7 @@

 /********************************************************/

-#if (_lib_getmntent || \
-        _statfs_2arg || \
-        _statfs_3arg || \
-        _statfs_4arg) && \
-        ! defined (_lib_getmntinfo) && \
-        ! defined (_lib_getfsstat) && \
-        ! defined (_lib_getvfsstat) && \
-        ! defined (_lib_mntctl) && \
-        ! defined (_lib_getmnt)
+#if 1
 # if defined (MOUNTED)
 #  define DI_MOUNT_FILE        MOUNTED
 # else
@@ -774,7 +766,9 @@
     _lib_endmntent && \
     ! defined (_lib_mntctl) && \
     ! defined (_lib_GetDiskFreeSpace) && \
-    ! defined (_lib_GetDiskFreeSpaceEx)
+    ! defined (_lib_GetDiskFreeSpaceEx) && \
+    ! (defined(_lib_getfsstat) && \
+        ! defined (_lib_getvfsstat))

 /*
  * di_getDiskEntries


Reply to: