summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-11-14 06:51:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-11-14 06:51:05 +0000
commit3cd93c0354ba6a5a7ffe58ae46f4f029ac3c4267 (patch)
tree9929ec289ea07d341d723be54401a4fcbab695b4
parentb3bffc7dda7115541b17c8c7fa8c3128fc6f575a (diff)
automatic import of ghc-bootstrap-binary
-rw-r--r--ghc-bootstrap-binary.spec7
1 files changed, 3 insertions, 4 deletions
diff --git a/ghc-bootstrap-binary.spec b/ghc-bootstrap-binary.spec
index 50fb02a..cfc627d 100644
--- a/ghc-bootstrap-binary.spec
+++ b/ghc-bootstrap-binary.spec
@@ -69,16 +69,14 @@ cp %{SOURCE4} .
%define sysname unknown
%endif
+tar Jxf ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux.tar.xz
tar xf alex-%{alex_ver}.tar.gz
tar xf happy-%{happy_ver}.tar.gz
-tar Jxf ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux.tar.xz
%build
-cd ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux
%install
-cd ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux
-
+pushd ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux
./configure --prefix=/opt
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "/opt/lib/ghc-%{ghc_ver}/lib/%{arch}-linux-ghc-%{ghc_ver}" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/ghc.conf
@@ -93,6 +91,7 @@ for i in *.conf; do
mv $i.copy $i
done
)
+popd
cd ..
export PATH=/opt/bin:$PATH