head 1.27;
access;
symbols
OPENPKG_E1_MP_HEAD:1.27
OPENPKG_E1_MP:1.27;
locks; strict;
comment @-- @;
1.27
date 2004.09.26.10.03.45; author rse; state dead;
branches;
next 1.26;
1.26
date 2004.09.16.13.28.50; author rse; state Exp;
branches;
next 1.25;
1.25
date 2004.09.06.11.54.56; author tho; state Exp;
branches;
next 1.24;
1.24
date 2004.08.30.10.49.41; author tho; state Exp;
branches;
next 1.23;
1.23
date 2004.08.23.10.26.32; author tho; state Exp;
branches;
next 1.22;
1.22
date 2004.08.16.08.45.12; author rse; state Exp;
branches;
next 1.21;
1.21
date 2004.08.09.13.38.06; author tho; state Exp;
branches;
next 1.20;
1.20
date 2004.08.02.17.59.42; author ms; state Exp;
branches;
next 1.19;
1.19
date 2004.07.26.07.42.50; author rse; state Exp;
branches;
next 1.18;
1.18
date 2004.07.19.07.34.34; author rse; state Exp;
branches;
next 1.17;
1.17
date 2004.07.12.08.52.28; author rse; state Exp;
branches;
next 1.16;
1.16
date 2004.07.05.07.43.35; author rse; state Exp;
branches;
next 1.15;
1.15
date 2004.06.28.12.34.44; author rse; state Exp;
branches;
next 1.14;
1.14
date 2004.06.25.21.48.13; author rse; state Exp;
branches;
next 1.13;
1.13
date 2004.06.21.08.43.45; author thl; state Exp;
branches;
next 1.12;
1.12
date 2004.06.21.08.43.10; author thl; state Exp;
branches;
next 1.11;
1.11
date 2004.06.16.19.20.01; author ms; state Exp;
branches;
next 1.10;
1.10
date 2004.06.07.08.33.58; author rse; state Exp;
branches;
next 1.9;
1.9
date 2004.05.31.06.34.00; author rse; state Exp;
branches;
next 1.8;
1.8
date 2004.05.24.06.44.50; author rse; state Exp;
branches;
next 1.7;
1.7
date 2004.05.17.11.00.30; author rse; state Exp;
branches;
next 1.6;
1.6
date 2004.05.03.11.05.45; author rse; state Exp;
branches;
next 1.5;
1.5
date 2004.04.27.14.12.22; author rse; state Exp;
branches;
next 1.4;
1.4
date 2004.04.26.15.54.01; author rse; state Exp;
branches;
next 1.3;
1.3
date 2004.04.21.14.01.49; author rse; state Exp;
branches;
next 1.2;
1.2
date 2004.04.21.08.26.01; author rse; state Exp;
branches;
next 1.1;
1.1
date 2004.03.27.08.04.04; author rse; state Exp;
branches;
next ;
desc
@@
1.27
log
@the next version of GCC was renamed from 3.5 to 4.0 because of the merging of the Tree SSA stuff
@
text
@##
## gcc35.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_full 3.5
%define V_comp 35
%define V_snap 20040905
# package information
Name: gcc35
Summary: GNU Compiler Collection
URL: http://gcc.gnu.org/
Vendor: Free Software Foundation
Packager: The OpenPKG Project
Distribution: OpenPKG
Class: EVAL
Group: Compiler
License: GPL
Version: %{V_full}s%{V_snap}
Release: 20040916
# package options
%option with_cxx yes
%option with_objc no
%option with_java no
%option with_f77 no
%option with_optimize yes
%option with_profile no
%option with_binutils yes
%option with_threads yes
%option with_gcc no
# list of sources
Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/%{V_full}-%{V_snap}/gcc-%{V_full}-%{V_snap}.tar.bz2
Patch0: gcc35.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, make, flex, bison, texinfo
PreReq: OpenPKG, openpkg >= 20040130
%if "%{with_binutils}" == "yes"
BuildPreReq: binutils >= 2.13
PreReq: binutils >= 2.13
%endif
AutoReq: no
AutoReqProv: no
%if "%{with_gcc}" == "yes"
Provides: gcc = %{version}-%{release}
%endif
%description
The GNU Compiler Collection (GCC) provides a standard conforming and
highly portable ISO C and ISO C++ compiler.
%track
prog gcc35 = {
version = %{V_full}-%{V_snap}
url = ftp://gcc.gnu.org/pub/gcc/snapshots/
regex = (%{V_full}-\d{8})
url = ftp://gcc.gnu.org/pub/gcc/snapshots/__NEWVER__/
regex = gcc-(\d+\.\d+-\d{8})\.tar\.bz2
}
%prep
%setup -q -n gcc-%{V_full}-%{V_snap}
%patch -p0
%{l_shtool} subst -v -s \
-e 's;PREFIX_INCLUDE_DIR;PREFIX_INCLUDE_DIR_DISABLED;g' \
gcc/configure
%{l_shtool} subst -v -s \
-e 's;\(version_string\[\] = "[^"]*\);\1 (%{l_openpkg_release -F "OpenPKG-%%s"});' \
-e 's;\(bug_report_url\[\] = "\)[^"]*;\1;' \
gcc/version.c
%build
# create build sub-directory
mkdir obj
cd obj
# determine ld(1) and as(1) usage
l_with_gnu_ld_as=""
%if "%{with_binutils}" == "yes"
l_with_gnu_ld_as="${l_with_gnu_ld_as} --with-gnu-ld --with-ld=%{l_prefix}/bin/ld"
l_with_gnu_ld_as="${l_with_gnu_ld_as} --with-gnu-as --with-as=%{l_prefix}/bin/as"
%else
case "%{l_platform -t}" in
*-linux* | *-freebsd* )
l_with_gnu_ld_as="${l_with_gnu_ld_as} --with-gnu-as --with-gnu-ld"
;;
esac
%endif
# determine threads usage
%if "%{with_threads}" == "yes"
l_enable_threads="posix"
%else
l_enable_threads="single"
%endif
# determine language usage
l_enable_languages="c"
%if "%{with_cxx}" == "yes"
l_enable_languages="${l_enable_languages},c++"
%endif
%if "%{with_objc}" == "yes"
l_enable_languages="${l_enable_languages},objc"
%endif
%if "%{with_java}" == "yes"
l_enable_languages="${l_enable_languages},java"
%endif
%if "%{with_f77}" == "yes"
l_enable_languages="${l_enable_languages},f77"
%endif
# disable GNU iconv usage
( echo "am_cv_func_iconv=no"
echo "am_cv_lib_iconv=no"
) >config.cache
# configure the package
CC="%{l_cc}" \
CFLAGS="%{l_cflags}" \
CONFIG_SHELL="%{l_bash}" \
../configure \
--cache-file=./config.cache \
--srcdir=`pwd`/.. \
--prefix=%{l_prefix} \
--exec-prefix=%{l_prefix} \
--includedir=%{l_prefix}/include/gcc%{V_comp} \
--libexecdir=%{l_prefix}/libexec/gcc%{V_comp} \
--with-gxx-include-dir=%{l_prefix}/include/g++%{V_comp} \
--with-local-prefix=%{l_prefix}/lib/gcc%{V_comp} \
--enable-languages="${l_enable_languages}" \
--enable-threads="${l_enable_threads}" \
--disable-maintainer-mode \
--disable-shared \
--disable-nls \
${l_with_gnu_ld_as}
# explicitly redirect remaining gcc library directories
%{l_shtool} subst -v -s \
-e "s;(libdir)/gcc/;(libdir)/gcc%{V_comp}/;" \
`find . -name Makefile -type f -print`
# determine build flags
l_ccisgcc=no
if [ ".`(%{l_cc} -v; %{l_cc} --version) &1 | grep -i 'gcc'`" != . ]; then
l_ccisgcc=yes
fi
l_cflags=""
l_boot_cflags=""
l_libcflags="-g"
l_libcxxflags="-g"
case "%{l_platform -t}" in
alpha*-tru64* ) if [ ".$l_ccisgcc" = .no ]; then l_libcflags="$l_libcflags -ieee"; fi ;;
esac
%if "%{with_binutils}" == "yes"
# at least GNU as from GNU binutils supports -pipe always
l_boot_cflags="$l_boot_cflags -pipe"
l_libcxxflags="$l_libcxxflags -pipe"
%endif
%if "%{with_optimize}" == "yes"
# conservatively optimize the generated program code
# (also _tune_ for particular CPUs, but _without_ requiring these CPUs!)
l_cflags="$l_cflags -O"
l_boot_cflags="$l_boot_cflags -O2 -fomit-frame-pointer -funroll-loops"
case "%{l_platform -t}" in
*i?86-* ) l_boot_cflags="$l_boot_cflags -mtune=pentium3" ;;
*sun4u-* ) l_boot_cflags="$l_boot_cflags -mtune=v9" ;;
esac
l_libcxxflags="$l_libcxxflags -O2 -fno-implicit-templates"
%else
# else do no optimizations at all to reduce problems to minimum in advance
l_boot_cflags="$l_boot_cflags -O0"
l_libcxxflags="$l_libcxxflags -O0"
%endif
maketarget="bootstrap-lean"
%if "%{with_profile}" == "yes"
# GCC >= 3.4 supports a "profiledbootstrap" target to build an
# optimized version of itself through profiling. Because this
# requires a (bootstrapping) C compiler with 64-bit arithmetic,
# the whole approach is currently supported only if already
# building with GCC as the bootstrapping C compiler.
if [ ".$l_ccisgcc" = .yes ]; then
maketarget="profiledbootstrap"
fi
%endif
# build the package
%{l_make} %{l_mflags} \
MAKE="%{l_make} %{l_mflags}" \
BOOT_CFLAGS="${l_boot_cflags}" \
CFLAGS="${l_cflags}" \
LIBCFLAGS="${l_libcflags}" \
LIBCXXFLAGS="${l_libcxxflags}" \
$maketarget
%install
rm -rf $RPM_BUILD_ROOT
# fetch GNU platform triple
triple=`./config.guess`
triple=`./config.sub ${triple}`
# perform the standard installation procedure
( cd obj
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
) || exit $?
# cleanup installation tree
mv $RPM_BUILD_ROOT%{l_prefix}/lib/lib*.a \
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}/${triple}/[0-9]*/
for multilib in `$RPM_BUILD_ROOT%{l_prefix}/bin/gcc --print-multi-lib`; do
subdir=`echo "$multilib" | sed -e 's/;.*$//'`
[ ".$subdir" = .. ] && continue
mv $RPM_BUILD_ROOT%{l_prefix}/lib/$subdir/lib*.a \
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}/${triple}/[0-9]*/$subdir/
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/$subdir
done
mv $RPM_BUILD_ROOT%{l_prefix}/${triple}/include/* \
$RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}/${triple}/[0-9]*/include/ \
>/dev/null 2>&1 || true
%if "%{with_java}" == "yes"
mv $RPM_BUILD_ROOT%{l_prefix}/share/java \
$RPM_BUILD_ROOT%{l_prefix}/share/gcc
%endif
# strip installation tree
rm -rf $RPM_BUILD_ROOT%{l_prefix}/${triple}
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man7 >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*-gcc* >/dev/null 2>&1 || true
%if "%{with_cxx}" == "yes"
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*-c++ >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/*-g++ >/dev/null 2>&1 || true
%endif
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
for prog in cc1 cc1plus collect2 cpp; do
strip $RPM_BUILD_ROOT%{l_prefix}/lib/gcc%{V_comp}/${triple}/[0-9]*/${prog} \
>/dev/null 2>&1 || true
done
# bump up installation tree
ln $RPM_BUILD_ROOT%{l_prefix}/bin/gcc \
$RPM_BUILD_ROOT%{l_prefix}/bin/cc
ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/gcc.1 \
$RPM_BUILD_ROOT%{l_prefix}/man/man1/cc.1
%if "%{with_cxx}" == "yes"
ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/g++.1 \
$RPM_BUILD_ROOT%{l_prefix}/man/man1/c++.1
%endif
# resolve filename conflicts
%if "%{with_gcc}" != "yes" && "%{V_comp}" != ""
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
for file in *; do
[ ".$file" = ".*" ] && continue
mv ${file} ${file}%{V_comp}
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/info
for file in *; do
[ ".$file" = ".*" ] && continue
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done
) || exit $?
( cd $RPM_BUILD_ROOT%{l_prefix}/man/man1
for file in *; do
[ ".$file" = ".*" ] && continue
mv ${file} `echo ${file} | sed -e 's;^\([^.]*\)\(\..*\)$;\1%{V_comp}\2;'`
done
) || exit $?
%endif
# determine installation file list
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
@
1.26
log
@remove info/dir file (conflicts between packages)
@
text
@@
1.25
log
@upgrading package: gcc35 3.5s20040829 -> 3.5s20040905
@
text
@d42 1
a42 1
Release: 20040906
d253 1
@
1.24
log
@upgrading package: gcc35 3.5s20040822 -> 3.5s20040829
@
text
@d29 1
a29 1
%define V_snap 20040829
d42 1
a42 1
Release: 20040830
@
1.23
log
@upgrading package: gcc35 3.5s20040815 -> 3.5s20040822
@
text
@d29 1
a29 1
%define V_snap 20040822
d42 1
a42 1
Release: 20040823
@
1.22
log
@upgrading package: gcc35 3.5s20040808 -> 3.5s20040815
@
text
@d29 1
a29 1
%define V_snap 20040815
d42 1
a42 1
Release: 20040816
@
1.21
log
@upgrading package: gcc35 3.5s20040801 -> 3.5s20040808
@
text
@d29 1
a29 1
%define V_snap 20040808
d42 1
a42 1
Release: 20040809
@
1.20
log
@upgrading package: gcc35 3.5s20040725 -> 3.5s20040801
@
text
@d29 1
a29 1
%define V_snap 20040801
d42 1
a42 1
Release: 20040802
@
1.19
log
@upgrading package: gcc35 3.5s20040718 -> 3.5s20040725
@
text
@d29 1
a29 1
%define V_snap 20040725
d42 1
a42 1
Release: 20040726
@
1.18
log
@upgrading package: gcc35 3.5s20040711 -> 3.5s20040718
@
text
@d29 1
a29 1
%define V_snap 20040718
d42 1
a42 1
Release: 20040719
@
1.17
log
@upgrading package: gcc35 3.5s20040704 -> 3.5s20040711
@
text
@d29 1
a29 1
%define V_snap 20040711
d42 1
a42 1
Release: 20040712
@
1.16
log
@upgrading package: gcc35 3.5s20040620 -> 3.5s20040704
@
text
@d29 1
a29 1
%define V_snap 20040704
d42 1
a42 1
Release: 20040705
@
1.15
log
@remember issue
@
text
@d29 1
a29 1
%define V_snap 20040620
d42 1
a42 1
Release: 20040625
a79 1
comment = "rse: 20040627: internal compiler error: in avail_expr_eq, at tree-ssa-dom.c:3356"
@
1.14
log
@escape the % char as in apache.spec
@
text
@d80 1
@
1.13
log
@upgrading package: gcc35 3.5s20040613 -> 3.5s20040620
@
text
@d42 1
a42 1
Release: 20040621
d94 1
a94 1
-e 's;\(version_string\[\] = "[^"]*\);\1 (%{l_openpkg_release -F "OpenPKG-%s"});' \
@
1.12
log
@revamp gcc35 branding logic from patch to shtool subst
@
text
@d29 1
a29 1
%define V_snap 20040613
d42 1
a42 1
Release: 20040616
@
1.11
log
@upgrading package: gcc35 3.5s20040606 -> 3.5s20040613
@
text
@d94 2
a95 1
-e 's;@@l_openpkg_release@@;%{l_openpkg_release -F "OpenPKG-%s"};' \
@
1.10
log
@upgrading package: gcc35 3.5s20040530 -> 3.5s20040606
@
text
@d29 1
a29 1
%define V_snap 20040606
d42 1
a42 1
Release: 20040607
@
1.9
log
@upgrading package: gcc35 3.5s20040523 -> 3.5s20040530
@
text
@d29 1
a29 1
%define V_snap 20040530
d42 1
a42 1
Release: 20040531
@
1.8
log
@upgrading package: gcc35 3.5s20040516 -> 3.5s20040523
@
text
@d29 1
a29 1
%define V_snap 20040523
d42 1
a42 1
Release: 20040524
@
1.7
log
@upgrading package: gcc35 3.5s20040502 -> 3.5s20040516
@
text
@d29 1
a29 1
%define V_snap 20040516
d42 1
a42 1
Release: 20040517
@
1.6
log
@upgrading package: gcc35 3.5s20040327 -> 3.5s20040502
@
text
@d29 1
a29 1
%define V_snap 20040502
d42 1
a42 1
Release: 20040503
@
1.5
log
@fix GCC detection
@
text
@d29 1
a29 1
%define V_snap 20040327
d42 1
a42 1
Release: 20040427
@
1.4
log
@apply same Bash configure workaround here, too.
@
text
@d42 1
a42 1
Release: 20040426
d169 1
a169 1
if [ ".`(%{l_cc} -v; %{l_cc} --version) /dev/null | grep 'gcc'`" != . ]; then
@
1.3
log
@merge Tru64 support and profiled bootstrapping support into GCC 3.5 package
@
text
@d42 1
a42 1
Release: 20040421
d145 1
@
1.2
log
@modifying package: gcc35-3.5s20040327 20040327 -> 20040421
@
text
@d50 1
d147 1
d167 4
d175 3
d198 11
d217 1
a217 1
bootstrap-lean
@
1.1
log
@new package: gcc35 3.5s20040327 (GNU Compiler Collection)
@
text
@d42 1
a42 1
Release: 20040327
d46 3
d90 1
a90 1
-e "s;PREFIX_INCLUDE_DIR;PREFIX_INCLUDE_DIR_DISABLED;g" \
d92 3
d126 9
d224 4
@