[gpart] Add x86_64 to the ExclusiveArch listing
David Cantrell
dcantrel at fedoraproject.org
Mon Jun 17 14:21:30 UTC 2013
commit 38d6c453350c1c054e5532a3efd4a3b18bf55e02
Author: David Cantrell <david.l.cantrell at gmail.com>
Date: Mon Jun 17 10:22:09 2013 -0400
Add x86_64 to the ExclusiveArch listing
- Patch gm_ntfs.h so it works on x86_64
gpart-0.1h-x86_64.patch | 21 +++++++++++++++++++++
gpart.spec | 3 +++
2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/gpart-0.1h-x86_64.patch b/gpart-0.1h-x86_64.patch
new file mode 100644
index 0000000..7f27daa
--- /dev/null
+++ b/gpart-0.1h-x86_64.patch
@@ -0,0 +1,21 @@
+diff -up gpart-0.1h/src/gm_ntfs.h.x86_64 gpart-0.1h/src/gm_ntfs.h
+--- gpart-0.1h/src/gm_ntfs.h.x86_64 2001-01-29 10:33:58.000000000 -1000
++++ gpart-0.1h/src/gm_ntfs.h 2010-11-02 05:32:26.000000000 -1000
+@@ -29,7 +29,7 @@
+ /* 'NTFS' in little endian */
+ #define NTFS_SUPER_MAGIC 0x5346544E
+
+-#if defined(i386) || defined(__i386__) || defined(__alpha__)
++#if defined(i386) || defined(__i386__) || defined(__alpha__) || defined(__x86_64__)
+
+ /* unsigned integral types */
+ #ifndef NTFS_INTEGRAL_TYPES
+@@ -39,7 +39,7 @@ typedef unsigned short ntfs_u16;
+ typedef unsigned int ntfs_u32;
+ typedef s64_t ntfs_u64;
+ #endif /* NTFS_INTEGRAL_TYPES */
+-#endif /* defined(i386) || defined(__i386__) || defined(__alpha__) */
++#endif /* defined(i386) || defined(__i386__) || defined(__alpha__) || defined(__x86_64__) */
+
+
+ /* Macros reading unsigned integers from a byte pointer */
diff --git a/gpart.spec b/gpart.spec
index fa5dc0a..6a2c5dd 100644
--- a/gpart.spec
+++ b/gpart.spec
@@ -13,6 +13,7 @@ Patch2: %{name}-0.1h-errno.patch
Patch3: %{name}-0.1h-syscall.patch
Patch4: %{name}-0.1h-largefile.patch
Patch5: %{name}-0.1h-makefile.patch
+Patch6: %{name}-0.1h-x86_64.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glibc-kernheaders
@@ -31,6 +32,7 @@ type harddisk in case the primary partition table was damaged.
%patch3 -p1 -b .syscall
%patch4 -p1 -b .largefile
%patch5 -p1 -b .makefile
+%patch6 -p1 -b .x86_64
%build
make %{?_smp_mflags}
@@ -54,6 +56,7 @@ rm -rf %{buildroot}
%changelog
* Mon Jun 17 2013 David Cantrell <dcantrell at redhat.com> - 0.1h-18
- Add x86_64 to the ExclusiveArch listing
+- Patch gm_ntfs.h so it works on x86_64
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1h-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list