فهرست منبع

how to get fstypename on NetBSD

Thorsten Hohmeier 21 سال پیش
والد
کامیت
7378417931
2فایلهای تغییر یافته به همراه15 افزوده شده و 1 حذف شده
  1. 12 0
      findutils/findutils.patch
  2. 3 1
      findutils/findutils.spec

+ 12 - 0
findutils/findutils.patch

@@ -0,0 +1,12 @@
+Index: find/fstype.c
+--- find/fstype.c.orig	2004-06-03 17:18:01.000000000 +0200
++++ find/fstype.c	2004-06-04 09:52:45.000000000 +0200
+@@ -343,7 +343,7 @@
+     }
+   else
+     {
+-#ifdef HAVE_F_FSTYPENAME_IN_STATFS
++#if defined (HAVE_F_FSTYPENAME_IN_STATFS) || defined (__NetBSD__)
+       type = xstrdup (fss.f_fstypename);
+ #else
+       type = fstype_to_string (fss.f_type);

+ 3 - 1
findutils/findutils.spec

@@ -34,11 +34,12 @@ Class:        BASE
 Group:        Utility
 License:      GPL
 Version:      4.1.20
-Release:      20040207
+Release:      20040604
 
 #   list of sources
 Source0:      ftp://alpha.gnu.org/gnu/findutils/findutils-%{version}.tar.gz
 Source1:      rc.findutils
+Patch0:       findutils.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -63,6 +64,7 @@ AutoReqProv:  no
     %{l_shtool} subst \
         -e 's;| sort ;| %{l_prefix}/bin/gsort -T `%{l_prefix}/etc/rc --query findutils_tmpdir` ;g' \
         locate/updatedb.sh
+    %patch -p0
 
 %build
     CC="%{l_cc}"