Make sure 32-bit OSes can read 64-bit files.

epel9
Peter Jones 11 years ago
parent bc6163ce40
commit 32b27bc853

@ -0,0 +1,26 @@
From 44b8e6cd6c2b962867d0e87380d2ca85d76b92e5 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 1 Jul 2014 08:48:12 -0400
Subject: [PATCH] Manually tell it we've got 64-bit files, because 32-bit OSes
need it.
Signed-off-by: Peter Jones <pjones@redhat.com>
---
dumpet.c | 1 +
1 files changed, 1 insertions(+)
diff --git a/dumpet.c b/dumpet.c
index 24b1395..18be54b 100644
--- a/dumpet.c
+++ b/dumpet.c
@@ -20,6 +20,7 @@
*/
#define _GNU_SOURCE 1
+#define _FILE_OFFSET_BITS 64
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
--
1.9.3

@ -1,18 +1,26 @@
Name: dumpet
Version: 2.1
Release: 8%{?dist}
Release: 9%{?dist}
Summary: A tool to dump and debug bootable CD images
License: GPLv2+
Group: Development/Tools
URL: https://fedorahosted.org/dumpet/
BuildRequires: popt-devel pkgconfig libxml2-devel git
Source0: https://fedorahosted.org/releases/d/u/dumpet/dumpet-%{version}.tar.bz2
BuildRequires: popt-devel pkgconfig libxml2-devel
Patch0001: 0001-Manually-tell-it-we-ve-got-64-bit-files-because-32-b.patch
%description
DumpET is a utility to aid in the debugging of bootable CD-ROM images.
%prep
%setup -q
git init
git config user.email "%{name}-owner@fedoraproject.org"
git config user.name "Fedora Ninjas"
git add .
git commit -a -q -m "%{version} baseline."
git am %{patches} </dev/null
%build
make %{?_smp_mflags} CFLAGS="%{optflags} $(pkg-config --cflags libxml-2.0)"
@ -32,6 +40,9 @@ rm -rf %{buildroot}
%{_bindir}/dumpet
%changelog
* Tue Jul 01 2014 Peter Jones <pjones@redhat.com> - 2.1-9
- Make sure 32-bit OSes can read 64-bit files.
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

Loading…
Cancel
Save