[packages/ccache] enable large file access for ccache

Elan Ruusamäe glen at pld-linux.org
Wed Jan 2 15:40:23 CET 2013


On 02.01.2013 16:45, Jakub Bogusz wrote:
> @@ -14,6 +14,7 @@ BuildRequires:	automake
>   BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
>   
>   %define		_libdir		%{_prefix}/%{_lib}/%{name}
> +%define		specflags	-D_FILE_OFFSET_BITS=64
>   
>   %description
>   ccache is a compiler cache. It acts as a caching pre-processor to
> IIRC %specflags are used only for optimized (non-debug) builds.
> Then debug builds are less featured.
>
> Is it still the case?
indeed it is. what's the proper way to add extra CPPFLAG?


glen at carme-pld packages/ccache $ ./builder -bb ccache.spec -debug
builder: SMP make flags are set to -j8
 From git://git.pld-linux.org/packages/ccache
  * [new tag]         auto/th/ccache-3.1.8-2 -> auto/th/ccache-3.1.8-2
085404655893d3073875ddd295357647f71aca6a
Already on 'master'
Already up-to-date.
Available branches: AC-branch RA-branch master
ccache-3.1.8.tar.bz2 having proper md5sum already exists
Building target platforms: x86_64-linux
Executing(%prep): /bin/sh -e /home/users/glen/tmp/rpm-tmp.89179
+ umask 022
+ cd /home/users/glen/rpm/packages/BUILD.x86_64-linux
+ cd /home/users/glen/rpm/packages/BUILD.x86_64-linux
+ rm -rf ccache-3.1.8
+ /usr/bin/bzip2 -dc 
/home/users/glen/rpm/packages/ccache/ccache-3.1.8.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd ccache-3.1.8
+ /bin/id -u
+ [ 1009 = 0 ]
+ /bin/id -u
+ [ 1009 = 0 ]
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo Patch #0 (ccache-nohash_size_mtime.patch):
Patch #0 (ccache-nohash_size_mtime.patch):
+ [ -f /home/users/glen/rpm/packages/ccache/ccache-nohash_size_mtime.patch ]
+ /bin/cat 
/home/users/glen/rpm/packages/ccache/ccache-nohash_size_mtime.patch
+ /usr/bin/patch -s -p1
+ exit 0
Executing(%build): /bin/sh -e /home/users/glen/tmp/rpm-tmp.89179
+ umask 022
+ cd /home/users/glen/rpm/packages/BUILD.x86_64-linux
+ cd ccache-3.1.8
+ cp -f /usr/share/automake/config.guess /usr/share/automake/config.sub .
+ ./configure LDFLAGS=-Wl,--as-needed -Wl,--no-copy-dt-needed-entries 
-Wl,-z,relro -Wl,-z,combreloc CFLAGS=-O0 -g -Wall -gdwarf-4 
-fno-debug-types-section -fvar-tracking-assignments -g2  CXXFLAGS=-O0 -g 
-Wall -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2  
FFLAGS=-O0 -g -Wall -gdwarf-4 -fno-debug-types-section 
-fvar-tracking-assignments -g2  FCFLAGS=-O0 -g -Wall -gdwarf-4 
-fno-debug-types-section -fvar-tracking-assignments -g2  CPPFLAGS= 
CC=ccache x86_64-pld-linux-gcc CXX=ccache x86_64-pld-linux-g++ 
--host=x86_64-pld-linux --build=x86_64-pld-linux --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
--libdir=/usr/lib64/ccache --libexecdir=/usr/lib64 --localstatedir=/var 
--sharedstatedir=/var/lib --mandir=/usr/share/man 
--infodir=/usr/share/info --x-libraries=/usr/lib64/ccache 
--cache-file=/home/users/glen/tmp/ccache-3.1.8-root-glen.th.x86_64.ccache.debug.configure.cache
configure: creating cache 
/home/users/glen/tmp/ccache-3.1.8-root-glen.th.x86_64.ccache.debug.configure.cache
configure: Configuring ccache
checking for x86_64-pld-linux-gcc... ccache x86_64-pld-linux-gcc
checking whether the C compiler works... yes
...


-- 
glen



More information about the pld-devel-en mailing list