update to new release

epel9
bioinfornatics 14 years ago
parent afb9a0411a
commit 9336fce54a

1
.gitignore vendored

@ -1 +1,2 @@
ldc-20100609hg1653.tar.xz ldc-20100609hg1653.tar.xz
ldc-20100609hg1654.tar.xz

@ -0,0 +1,33 @@
diff -up ./gen/structs.cpp.fix ./gen/structs.cpp
--- ./gen/structs.cpp.fix 2010-08-03 23:03:21.651564567 +0200
+++ ./gen/structs.cpp 2010-08-03 23:07:07.298449520 +0200
@@ -3,6 +3,7 @@
#include "gen/llvm.h"
#include "llvm/AbstractTypeUser.h"
#include "llvm/ADT/DenseMap.h"
+#include "llvm/Support/ManagedStatic.h"
#include "mtype.h"
#include "aggregate.h"
@@ -341,9 +342,9 @@ LLType* DtoUnpaddedStructType(Type* dty)
assert(dty->ty == Tstruct);
typedef llvm::DenseMap<Type*, llvm::PATypeHolder> CacheT;
- static CacheT cache;
- CacheT::iterator it = cache.find(dty);
- if (it != cache.end())
+ static llvm::ManagedStatic<CacheT> cache;
+ CacheT::iterator it = cache->find(dty);
+ if (it != cache->end())
return it->second;
TypeStruct* sty = (TypeStruct*) dty;
@@ -363,7 +364,7 @@ LLType* DtoUnpaddedStructType(Type* dty)
types.push_back(fty);
}
LLType* Ty = LLStructType::get(gIR->context(), types);
- cache.insert(std::make_pair(dty, Ty));
+ cache->insert(std::make_pair(dty, Ty));
return Ty;
}

@ -1,20 +1,21 @@
%global alphatag 20100609 %global alphatag 20100609
%global hg_revision hg1653 %global hg_revision hg1654
# The source for this package was pulled from upstream's mercurial (hg). # The source for this package was pulled from upstream's mercurial (hg).
# Use the following commands to generate the tarball: # Use the following commands to generate the tarball:
# hg clone -r 1653 http://bitbucket.org/lindquist/ldc ldc-20100609hg1653 # hg clone -r 1654 http://bitbucket.org/lindquist/ldc ldc-20100609hg1654
# tar -cJvf ldc-20100609hg1653.tar.xz ldc-20100609hg1653 # tar -cJvf ldc-20100609hg1654.tar.xz ldc-20100609hg1654
Name: ldc Name: ldc
Version: 0.9.2 Version: 0.9.2
Release: 8.%{alphatag}%{hg_revision}%{?dist} Release: 12.%{alphatag}%{hg_revision}%{?dist}
Summary: It is a compiler for the D programming language Summary: It is a compiler for the D programming language
Group: Development/Languages Group: Development/Languages
License: BSD License: BSD
URL: http://www.dsource.org/projects/ldc URL: http://www.dsource.org/projects/ldc
Source0: %{name}-%{alphatag}%{hg_revision}.tar.xz Source0: %{name}-%{alphatag}%{hg_revision}.tar.xz
Patch0: %{name}-0.9.2-fix.patch
Source1: macros.%{name} Source1: macros.%{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -54,33 +55,34 @@ implémenter.
%prep %prep
%setup -q -n %{name}-%{alphatag}%{hg_revision} %setup -q -n %{name}-%{alphatag}%{hg_revision}
%patch0 -p1 -b .fix
%build %build
%cmake . -DCMAKE_CXX_FLAGS:STRING=-DLLVM_REV=101676 %cmake . -DCMAKE_CXX_FLAGS:STRING=-DLLVM_REV=101676
make VERBOSE=1 %{?_smp_mflags} make %{?_smp_mflags} VERBOSE=1
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
make install DESTDIR=%{buildroot} make %{?_smp_mflags} install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/%{_sysconfdir}/rpm mkdir -p %{buildroot}/%{_sysconfdir}/rpm
# This empty file is removed because it's never used. "lib" is explicitely used # This empty file is removed because it's never used. "lib" is explicitely used
# instead of %_libdir because it's always used (not arch dependant) # instead of %%_libdir because it's always used (not arch dependant)
rm %{buildroot}%{_prefix}/lib/.empty rm %{buildroot}%{_prefix}/lib/.empty
mv %{buildroot}%{_bindir}/ldc.rebuild.conf %{buildroot}%{_sysconfdir}/ldc.rebuild.conf mv %{buildroot}%{_bindir}/ldc.rebuild.conf %{buildroot}%{_sysconfdir}/ldc.rebuild.conf
mv %{buildroot}%{_bindir}/ldc.conf %{buildroot}%{_sysconfdir}/ldc.conf mv %{buildroot}%{_bindir}/ldc.conf %{buildroot}%{_sysconfdir}/ldc.conf
install --mode=0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.ldc install --mode=0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.ldc
sed -i "s|-I.*/../tango\"|-I%{_d_includedir}/tango\"|" %{buildroot}%{_sysconfdir}/ldc.conf sed -i -e "s|-I.*/../tango\"|-I%{_d_includedir}/tango\"|" \
sed -i "/^.*-I.*%{name}-%{alphatag}%{hg_revision}\/..\/tango\/user.*$/d" %{buildroot}%{_sysconfdir}/ldc.conf -e "/^.*-I.*%{name}-%{alphatag}%{hg_revision}\/..\/tango\/user.*$/d" \
sed -i "/^.*-I.*%{name}-%{alphatag}%{hg_revision}\/..\/tango\/lib\/common.*$/d" %{buildroot}%{_sysconfdir}/ldc.conf -e "/^.*-I.*%{name}-%{alphatag}%{hg_revision}\/..\/tango\/lib\/common.*$/d" \
sed -i "s|-I.*/../tango/tango/core/vendor|-I%{_d_includedir}/tango/core/vendor|" %{buildroot}%{_sysconfdir}/ldc.conf -e "s|-I.*/../tango/tango/core/vendor|-I%{_d_includedir}/tango/core/vendor|" \
sed -i "s|-L-L\%\%ldcbinarypath\%\%/../lib|-L-L%{_libdir}/tango|" %{buildroot}%{_sysconfdir}/ldc.conf -e "s|-L-L\%\%ldcbinarypath\%\%/../lib|-L-L%{_d_libdir}|" \
sed -i "s|-defaultlib=tango-user-ldc|-defaultlib=tango|" %{buildroot}%{_sysconfdir}/ldc.conf -e "s|-defaultlib=tango-user-ldc|-defaultlib=tango|" \
sed -i "s|-debuglib=tango-user-ldc|-debuglib=tango|" %{buildroot}%{_sysconfdir}/ldc.conf -e "s|-debuglib=tango-user-ldc|-debuglib=tango|" \
sed -i "13a \ \ \ \ \ \ \ \ \"-I%{_d_includedir}/\"," %{buildroot}%{_sysconfdir}/ldc.conf -e "13a \ \ \ \ \ \ \ \ \"-I%{_d_includedir}/\"," %{buildroot}%{_sysconfdir}/ldc.conf
sed -i "s|DFLAGS.*|DFLAGS=-I/usr/include/d -L-L/usr/lib/d -d-version=Tango -defaultlib=tango -debuglib=tango|" %{buildroot}%{_sysconfdir}/ldc.rebuild.conf sed -i "s|DFLAGS.*|DFLAGS=-I/usr/include/d -L-L/usr/lib/d -d-version=Tango -defaultlib=tango -debuglib=tango|" %{buildroot}%{_sysconfdir}/ldc.rebuild.conf
@ -96,10 +98,23 @@ rm -rf %{buildroot}
%{_bindir}/ldmd %{_bindir}/ldmd
%config(noreplace) %{_sysconfdir}/ldc.rebuild.conf %config(noreplace) %{_sysconfdir}/ldc.rebuild.conf
%config(noreplace) %{_sysconfdir}/ldc.conf %config(noreplace) %{_sysconfdir}/ldc.conf
%config %{_sysconfdir}/rpm/macros.ldc %config(noreplace) %{_sysconfdir}/rpm/macros.ldc
%config(noreplace)
%changelog %changelog
* Mon Aug 02 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-12.20100609hg1654
- Add patch
* Mon Aug 02 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-11.20100609hg1654
- Add %%{?_smp_mflags} macro for makefile
- Add flag -O2 for good optimizations in %%{_d_optflags} macro
* Sun Aug 01 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-10.20100609hg1654
- Update to revision 1654
* Fri Jul 29 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-9.20100609hg1653
- add %%{_d_libdir} macro in macros.ldc
- fix lib path in ldc.conf
* Wed Jul 28 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-8.20100609hg1653 * Wed Jul 28 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-8.20100609hg1653
- Using macro for D package - Using macro for D package

@ -2,7 +2,8 @@
# RPM macros for D applications. # RPM macros for D applications.
# #
# Include directory where all .di or .d file are installed. # Include directory where all .di or .d file are installed.
%_d_includedir %{_includedir}/d/ %_d_includedir %{_includedir}/d
# Compile options for ldc and make file # Compile options for ldc and make file
%_d_optflags -release -w -g %_d_optflags -release -w -g -O2
# Lib directory path
%_d_libdir %{_libdir}/d

@ -1 +1 @@
ab466c6b8c673b65d4af77e16f04d568 ldc-20100609hg1653.tar.xz 50636f835e252e4b81bb29e37c5112b5 ldc-20100609hg1654.tar.xz

Loading…
Cancel
Save