use -D_FILE_OFFSET_BITS=64 to force off_t to be 64bit on 32bit arches
This commit is contained in:
parent
a91cabfcb0
commit
3237ff5922
13
fuse.spec
13
fuse.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: fuse
|
Name: fuse
|
||||||
Version: %{fuse2ver}
|
Version: %{fuse2ver}
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: File System in Userspace (FUSE) v2 utilities
|
Summary: File System in Userspace (FUSE) v2 utilities
|
||||||
License: GPL+
|
License: GPL+
|
||||||
URL: http://fuse.sf.net
|
URL: http://fuse.sf.net
|
||||||
@ -13,7 +13,6 @@ Source0: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse2ver}.tar.gz
|
|||||||
#fuse3 sources
|
#fuse3 sources
|
||||||
Source1: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse3ver}.tar.gz
|
Source1: https://github.com/libfuse/libfuse/archive/%{name}-%{fuse3ver}.tar.gz
|
||||||
Source2: %{name}.conf
|
Source2: %{name}.conf
|
||||||
Source3: printsize.c
|
|
||||||
|
|
||||||
Patch1: fuse-3.0.0-More-parentheses.patch
|
Patch1: fuse-3.0.0-More-parentheses.patch
|
||||||
Patch2: fuse-0001-More-parentheses.patch
|
Patch2: fuse-0001-More-parentheses.patch
|
||||||
@ -102,11 +101,6 @@ Common files for FUSE v2 and FUSE v3.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -T -c -n fuse2and3 -a0 -a1
|
%setup -q -T -c -n fuse2and3 -a0 -a1
|
||||||
|
|
||||||
cp %{SOURCE3} .
|
|
||||||
gcc -o printsize printsize.c
|
|
||||||
echo "%{_arch}"
|
|
||||||
./printsize
|
|
||||||
|
|
||||||
# fuse 3
|
# fuse 3
|
||||||
pushd lib%{name}-%{name}-%{fuse3ver}
|
pushd lib%{name}-%{name}-%{fuse3ver}
|
||||||
./makeconf.sh
|
./makeconf.sh
|
||||||
@ -129,7 +123,7 @@ popd
|
|||||||
pushd lib%{name}-%{name}-%{fuse3ver}
|
pushd lib%{name}-%{name}-%{fuse3ver}
|
||||||
# Can't pass --disable-static here, or else the utils don't build
|
# Can't pass --disable-static here, or else the utils don't build
|
||||||
export MOUNT_FUSE_PATH="%{_sbindir}"
|
export MOUNT_FUSE_PATH="%{_sbindir}"
|
||||||
CFLAGS="%{optflags} -D_GNU_SOURCE" %configure
|
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" %configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -232,6 +226,9 @@ rm -f %{buildroot}%{_libdir}/udev/rules.d/99-fuse3.rules
|
|||||||
%{_includedir}/fuse3/
|
%{_includedir}/fuse3/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 28 2017 Tom Callaway <spot@fedoraproject.org> - 2.9.7-7
|
||||||
|
- use -D_FILE_OFFSET_BITS=64 to force off_t to be 64bit on 32bit arches
|
||||||
|
|
||||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.7-6
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.7-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
12
printsize.c
12
printsize.c
@ -1,12 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
int sizeof_off_t = sizeof(off_t);
|
|
||||||
int sizeof_uint64_t = sizeof(uint64_t);
|
|
||||||
int sizeof_uintptr_t = sizeof(uintptr_t);
|
|
||||||
printf("Size of off_t is: %d\n", sizeof_off_t);
|
|
||||||
printf("Size of uint64_t is: %d\n", sizeof_uint64_t);
|
|
||||||
printf("Size of uintptr_t is: %d\n", sizeof_uintptr_t);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user