diff --git a/ntfs-3g-1.2216-nomtab.patch b/ntfs-3g-1.2216-nomtab.patch new file mode 100644 index 0000000..0aaacdc --- /dev/null +++ b/ntfs-3g-1.2216-nomtab.patch @@ -0,0 +1,28 @@ +diff -up ntfs-3g-1.2216/src/ntfs-3g.c.BAD ntfs-3g-1.2216/src/ntfs-3g.c +--- ntfs-3g-1.2216/src/ntfs-3g.c.BAD 2008-02-27 11:40:33.000000000 -0500 ++++ ntfs-3g-1.2216/src/ntfs-3g.c 2008-02-27 13:17:57.000000000 -0500 +@@ -1947,10 +1947,11 @@ static int parse_options(int argc, char + { + int c; + +- static const char *sopt = "-o:hv"; ++ static const char *sopt = "-o:hnv"; + static const struct option lopt[] = { + { "options", required_argument, NULL, 'o' }, + { "help", no_argument, NULL, 'h' }, ++ { "nomtab", no_argument, NULL, 'n' }, + { "verbose", no_argument, NULL, 'v' }, + { NULL, 0, NULL, 0 } + }; +@@ -1989,6 +1990,11 @@ static int parse_options(int argc, char + if (strappend(&opts.options, optarg)) + return -1; + break; ++ case 'n': ++ /* We must handle the 'nomtab' option even if ++ * we don't use it because mount(8) passes it. ++ */ ++ break; + case 'h': + usage(); + exit(9); diff --git a/ntfs-3g.spec b/ntfs-3g.spec index 8da4fe2..30d9a7c 100644 --- a/ntfs-3g.spec +++ b/ntfs-3g.spec @@ -4,11 +4,12 @@ Name: ntfs-3g Summary: Linux NTFS userspace driver -Version: 1.2216 -Release: 3%{?dist} +Version: 1.2310 +Release: 1%{?dist} License: GPLv2+ Group: System Environment/Base Source0: http://www.ntfs-3g.org/%{name}-%{version}.tgz +Patch0: ntfs-3g-1.2216-nomtab.patch URL: http://www.ntfs-3g.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if %{with_externalfuse} @@ -46,6 +47,7 @@ functionality. %prep %setup -q -n %{name}-%{version} +%patch0 -p1 %build CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" @@ -102,7 +104,8 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc AUTHORS ChangeLog COPYING CREDITS NEWS README +# COPYING disappeared in 1.2310 +%doc AUTHORS ChangeLog CREDITS NEWS README /sbin/mount.ntfs %attr(754,root,root) /sbin/mount.ntfs-3g /sbin/mount.ntfs-fuse @@ -121,6 +124,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/libntfs-3g.pc %changelog +* Mon Mar 10 2008 Tom "spot" Callaway - 2:1.2310-1 +- update to 1.2310 +- make -n a noop (bz 403291) + * Tue Feb 26 2008 Tom "spot" Callaway - 2:1.2216-3 - rebuild against fixed gcc (PR35264, bugzilla 433546)