Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159269 Details for
Bug 247760
rfe: add special ccache group and cache directory as well
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
New patch
ccache.spec.diff (text/plain), 1.91 KB, created by
Andy Shevchenko
on 2007-07-14 14:30:12 UTC
(
hide
)
Description:
New patch
Filename:
MIME Type:
Creator:
Andy Shevchenko
Created:
2007-07-14 14:30:12 UTC
Size:
1.91 KB
patch
obsolete
>--- ccache.spec.orig 2007-07-12 11:32:31.000000000 +0300 >+++ ccache.spec 2007-07-12 14:20:45.000000000 +0300 >@@ -17,6 +17,8 @@ > Requires(triggerin): coreutils > Requires(triggerpostun): coreutils > >+%define groupname ccache >+ > %description > ccache is a compiler cache. It acts as a caching pre-processor to > C/C++ compilers, using the -E compiler switch and a hash to detect >@@ -34,13 +32,29 @@ > %configure > %{__make} %{?_smp_mflags} > cat <<EOF > %{name}.sh >+#!/bin/sh >+ > if ! echo "\$PATH" | grep -q %{_libdir}/ccache ; then >+ if id -Gn | grep -qw "ccache"; then > PATH="%{_libdir}/ccache:\$PATH" >+ CCACHE_DIR=/var/cache/ccache >+ CCACHE_NOLINK=1 >+ CCACHE_UMASK=002 >+ fi >+ export PATH CCACHE_DIR CCAHE_NOLINK CCACHE_UMASK > fi > EOF > cat <<EOF > %{name}.csh >+#!/bin/csh >+ > if ( "\$path" !~ *%{_libdir}/ccache* ) then >+ id -Gn | grep -qw "ccache" >+ if ( $? == 0 ) then > set path = ( %{_libdir}/ccache \$path ) >+ setenv CCACHE_DIR /var/cache/ccache >+ setenv CCACHE_NOLINK 1 >+ setenv CCACHE_UMASK 002 >+ endif > endif > EOF > >@@ -49,7 +80,7 @@ > rm -rf $RPM_BUILD_ROOT %{name}-%{version}.compilers > make install DESTDIR=$RPM_BUILD_ROOT > install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d >-install -pm 644 %{name}.sh %{name}.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d >+install -pm 755 %{name}.sh %{name}.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d > install -dm 755 $RPM_BUILD_ROOT%{_libdir}/ccache > for name in %{compilers} ; do > for c in $name %{_target_cpu}-%{_vendor}-%{_target_os}-$name ; do >@@ -58,6 +89,7 @@ > done > done > >+mkdir -p $RPM_BUILD_ROOT/var/cache/ccache > > %clean > rm -fr $RPM_BUILD_ROOT >@@ -77,6 +109,8 @@ > done > done > >+%pre >+/usr/sbin/groupadd -r %groupname &>/dev/null || : > > %files -f %{name}-%{version}.compilers > %defattr(-,root,root,-) >@@ -85,6 +119,7 @@ > %{_bindir}/ccache > %dir %{_libdir}/ccache/ > %{_mandir}/man1/ccache.1* >+%attr(2770,root,%groupname) %dir /var/cache/ccache > > > %changelog
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247760
:
158933
| 159269