Merge pull request #7678 from IdrisKalp/master

libc++
This commit is contained in:
Idris Kalp
2020-01-23 19:29:21 +03:00
committed by GitHub
6 changed files with 288 additions and 6 deletions
+103 -4
View File
@@ -32320,6 +32320,8 @@
<Dependency>libomxil-bellagio</Dependency>
<Dependency>lm_sensors</Dependency>
<Dependency>libclc</Dependency>
<Dependency>vulkan</Dependency>
<Dependency>opencl-icd</Dependency>
<Dependency versionFrom="8.0.0">llvm-libs</Dependency>
<Dependency versionFrom="8.0.0">llvm-clang</Dependency>
</RuntimeDependencies>
@@ -32416,6 +32418,7 @@
<Dependency>libdrm-amd-32bit</Dependency>
<Dependency>libdrm-nouveau-32bit</Dependency>
<Dependency>wayland-32bit</Dependency>
<Dependency>vulkan-32bit</Dependency>
<Dependency>libunwind-32bit</Dependency>
<Dependency release="19">mesa</Dependency>
<Dependency versionFrom="8.0.0">llvm-32bit</Dependency>
@@ -75144,7 +75147,7 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<AdditionalFile target="dkms.conf" permission="0644" owner="root">dkms.conf</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency version="5.4.2">kernel-module-headers</Dependency>
<Dependency version="5.4.10">kernel-module-headers</Dependency>
<Dependency>libX11-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>gtk3-devel</Dependency>
@@ -75159,7 +75162,7 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Flag>noDelta</Flag>
</BuildFlags>
<RuntimeDependencies>
<Dependency version="5.4.2">kernel</Dependency>
<Dependency version="5.4.10">kernel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library" permanent="true">/lib/modules</Path>
@@ -75200,6 +75203,9 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Dependency>libX11</Dependency>
<Dependency>mesa</Dependency>
<Dependency>xorg-server</Dependency>
<Dependency>vulkan</Dependency>
<Dependency>opencl-icd</Dependency>
<Dependency>libglvnd</Dependency>
<AnyDependency>
<Dependency version="390.132">module-nvidia390</Dependency>
<Dependency>nvidia390-dkms</Dependency>
@@ -75236,6 +75242,9 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Dependency>mesa-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>libXext-32bit</Dependency>
<Dependency>opencl-icd-32bit</Dependency>
<Dependency>vulkan-32bit</Dependency>
<Dependency>libglvnd-32bit</Dependency>
<Dependency release="5">xorg-video-nvidia390</Dependency>
<Dependency>atk</Dependency>
<Dependency>gtk2</Dependency>
@@ -75408,6 +75417,8 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Dependency>libX11</Dependency>
<Dependency>mesa</Dependency>
<Dependency>xorg-server</Dependency>
<Dependency>opencl-icd</Dependency>
<Dependency>vulkan</Dependency>
<AnyDependency>
<Dependency version="440.44">module-nvidia-current</Dependency>
<Dependency>nvidia-current-dkms</Dependency>
@@ -75425,6 +75436,32 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Path fileType="config">/etc/vulkan/icd.d</Path>
</Files>
</Package>
<Package>
<Name>xorg-video-nvidia-current-32bit</Name>
<Summary xml:lang="en">32-bit shared libraries for xorg-video-nvidia-current</Summary>
<Summary xml:lang="tr">xorg-video-nvidia-current için 32-bit paylaşımlı kitaplıklar</Summary>
<PartOf>emul32</PartOf>
<BuildFlags>
<Flag>noDelta</Flag>
</BuildFlags>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>libvdpau-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency>zlib-32bit</Dependency>
<Dependency>mesa-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>libXext-32bit</Dependency>
<Dependency>vulkan-32bit</Dependency>
<Dependency>opencl-icd-32bit</Dependency>
<Dependency release="28">xorg-video-nvidia-current</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
<Path fileType="library">/usr/share/nvidia-current/32bit-ld.so.conf</Path>
</Files>
</Package>
<Package>
<Name>nvidia-current-dkms</Name>
<Summary xml:lang="en">NVIDIA driver sources for linux</Summary>
@@ -76099,7 +76136,7 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<AdditionalFile target="dkms.conf" permission="0644" owner="root">dkms.conf</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency version="5.4.2">kernel-module-headers</Dependency>
<Dependency version="5.4.10">kernel-module-headers</Dependency>
<Dependency>libX11-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>gtk3-devel</Dependency>
@@ -76115,7 +76152,7 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Flag>noDelta</Flag>
</BuildFlags>
<RuntimeDependencies>
<Dependency version="5.4.2">kernel</Dependency>
<Dependency version="5.4.10">kernel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library" permanent="true">/lib/modules</Path>
@@ -76143,6 +76180,7 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Dependency>xorg-server</Dependency>
<Dependency>opencl-icd</Dependency>
<Dependency>vulkan</Dependency>
<Dependency>libglvnd</Dependency>
<AnyDependency>
<Dependency version="430.64">module-nvidia430</Dependency>
<Dependency>nvidia430-dkms</Dependency>
@@ -76177,6 +76215,7 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
<Dependency>libXext-32bit</Dependency>
<Dependency>opencl-icd-32bit</Dependency>
<Dependency>vulkan-32bit</Dependency>
<Dependency>libglvnd-32bit</Dependency>
<Dependency release="2">xorg-video-nvidia430</Dependency>
<Dependency>atk</Dependency>
<Dependency>gtk2</Dependency>
@@ -202855,6 +202894,66 @@ It supports email, address books, calendars, tasks, news feeds and much more.</D
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>libc++</Name>
<Homepage>http://www.kde.org</Homepage>
<Packager>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<PartOf>programming.misc</PartOf>
<Summary xml:lang="en">LLVM C++ standard library.</Summary>
<Description xml:lang="en">libc++ provides standard c++ library by LLVM</Description>
<Archive type="tarxz" sha1sum="d6da82e9445fe824f021baf35f81a7efb6096ae3" name="libcxx-9.0.1.src.tar.xz">https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/libcxx-9.0.1.src.tar.xz</Archive>
<Archive type="tarxz" sha1sum="457cec7f1dff38648518416a292853c8d643fe4e" name="libcxxabi-9.0.1.src.tar.xz">https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/libcxxabi-9.0.1.src.tar.xz</Archive>
<BuildDependencies>
<Dependency>llvm</Dependency>
<Dependency>llvm-libs</Dependency>
<Dependency>llvm-clang</Dependency>
<Dependency>lld</Dependency>
</BuildDependencies>
<SourceURI>programming/misc/libc++/pspec.xml</SourceURI>
</Source>
<Package>
<Name>libc++</Name>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
</Files>
</Package>
<Package>
<Name>libc++-32bit</Name>
<Summary xml:lang="en">libc++ 32bit shared libraries.</Summary>
<PartOf>emul32</PartOf>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<Package>
<Name>libc++-devel</Name>
<Summary xml:lang="en">Development files for libc++</Summary>
<RuntimeDependencies>
<Dependency release="1">libc++</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>20120-01-23</Date>
<Version>9.0.1</Version>
<Comment>First release</Comment>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>dbus-c++</Name>
+1 -1
View File
@@ -1 +1 @@
a41bcbea692372f5c9c0b1b2f881a6fc52219195
14376d21dedf52448f739f4824914e535eb150b0
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
463033b00d9c6bc8523a7e978b0dfa34a81dcb5b
7b4442b9db33d9f48e125ba624133923352d0f14
+119
View File
@@ -0,0 +1,119 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import get
WorkDir = "."
NoStrip = ["/usr"]
def setup():
shelltools.move("libcxx-%s.src" %get.srcVERSION(), "libcxx")
shelltools.move("libcxxabi-%s.src" %get.srcVERSION(), "libcxxabi")
def build():
for arch in ["x86_64", "i686"]:
if arch == "x86_64":
shelltools.export("CC", "clang -m64 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch)
shelltools.export("CXX", "clang++ -m64 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch)
shelltools.export("LDFLAGS", " -fuse-ld=lld -rtlib=compiler-rt -L/usr/lib -ldl -lpthread")
libsuffix = " "
if arch == "i686":
shelltools.export("CC", "clang -m32 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch)
shelltools.export("CXX", "clang++ -m32 -target %s-pc-linux-gnu -rtlib=compiler-rt" %arch)
shelltools.export("LDFLAGS", "-fuse-ld=lld -L/usr/lib32 -ldl -lpthread")
libsuffix = "32"
shelltools.cd("%s/libcxxabi" %get.workDIR())
shelltools.system("mkdir build-%s" %arch)
shelltools.cd("build-%s" %arch)
shelltools.system("cmake .. -G 'Unix Makefiles' \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_AR=/usr/bin/llvm-ar \
-DCMAKE_RANLIB=/usr/bin/llvm-ranlib \
-DCMAKE_STRIP=' ' \
-DLIBCXXABI_ENABLE_EXCEPTIONS=ON \
-DLIBCXXABI_ENABLE_THREADS=ON \
-DLIBCXXABI_ENABLE_SHARED=OFF \
-DLIBCXXABI_LIBCXX_INCLUDES=../../libcxx/include \
-DLLVM_NO_OLD_LIBSTDCXX=TRUE \
-DCXX_SUPPORTS_CXX11=TRUE \
-DLIBCXXABI_HAS_PTHREAD_API=ON \
-DLIBCXXABI_INSTALL_LIBRARY=OFF \
-DLIBCXXABI_INSTALL_STATIC_LIBRARY=OFF \
-DLIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS=OFF \
-DLIBCXXABI_ENABLE_STATIC_UNWINDER=ON \
")
autotools.make()
shelltools.cd("%s/libcxx" %get.workDIR())
shelltools.system("mkdir build-%s" %arch)
shelltools.cd("build-%s" %arch)
shelltools.system("cmake .. -G 'Unix Makefiles' \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_AR=/usr/bin/llvm-ar \
-DCMAKE_RANLIB=/usr/bin/llvm-ranlib \
-DCMAKE_STRIP=' ' \
-DLIBCXXABI_ENABLE_STATIC_UNWINDER=ON \
-DLIBCXX_INSTALL_HEADERS=ON \
-DLIBCXX_ENABLE_EXCEPTIONS=ON \
-DLIBCXX_ENABLE_THREADS=ON \
-DLIBCXX_ENABLE_MONOTONIC_CLOCK=ON \
-DLIBCXX_ENABLE_SHARED=ON \
-DLIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG=TRUE \
-DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=ON \
-DLIBCXX_ENABLE_FILESYSTEM=ON \
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=TRUE \
-DLIBCXX_CXX_ABI=libcxxabi \
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=../../libcxxabi/include \
-DLIBCXX_CXX_ABI_LIBRARY_PATH=../../libcxxabi/build-%s/lib \
-DLIBCXX_HAS_PTHREAD_API=ON \
-DLIBCXX_LIBDIR_SUFFIX=%s \
" % (arch, libsuffix) )
autotools.make()
def install():
for arch in ["x86_64", "i686"]:
shelltools.cd("%s/libcxx/build-%s" % (get.workDIR(), arch) )
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
if arch == "x86_64":
libsuffix = ""
if arch == "i686":
libsuffix = "32"
pisitools.remove("/usr/lib%s/libc++.so" %libsuffix)
pisitools.remove("/usr/lib%s/libc++.so.1" %libsuffix)
pisitools.remove("/usr/lib%s/libc++.so.1.0" %libsuffix)
shelltools.copy("%s/libcxx/build-%s/lib%s/libc++.so" % (get.workDIR(), arch, libsuffix), "%s/usr/lib%s" %(get.installDIR(), libsuffix))
shelltools.copy("%s/libcxx/build-%s/lib%s/libc++.so.1" % (get.workDIR(), arch, libsuffix), "%s/usr/lib%s" %(get.installDIR(), libsuffix))
shelltools.copy("%s/libcxx/build-%s/lib%s/libc++.so.1.0" % (get.workDIR(), arch, libsuffix), "%s/usr/lib%s" %(get.installDIR(), libsuffix))
shelltools.copy("%s/libcxx/build-%s/lib%s/libc++experimental.a" % (get.workDIR(), arch, libsuffix), "%s/usr/lib%s" %(get.installDIR(), libsuffix))
#shelltools.system("cd %s/libcxx" % get.workDIR())
#shelltools.system("mkdir -p %s/usr/share/doc/libc++" %get.installDIR())
#shelltools.copy("%s/libcxx/CREDITS.TXT" %get.workDIR(), "%s/usr/share/doc/libc++" %get.installDIR())
#shelltools.copy("%s/libcxx/LICENCE.TXT" %get.workDIR(), "%s/usr/share/doc/libc++" %get.installDIR())
#shelltools.copy("%s/libcxx/NOTES.TXT" %get.workDIR(), "%s/usr/share/doc/libc++" %get.installDIR())
#shelltools.copy("%s/libcxx/TODO.TXT" %get.workDIR(), "%s/usr/share/doc/libc++" %get.installDIR())
+64
View File
@@ -0,0 +1,64 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>libc++</Name>
<Homepage>http://www.kde.org</Homepage>
<Packager>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<Summary>LLVM C++ standard library.</Summary>
<Description>libc++ provides standard c++ library by LLVM</Description>
<Archive sha1sum="d6da82e9445fe824f021baf35f81a7efb6096ae3" type="tarxz">https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/libcxx-9.0.1.src.tar.xz</Archive>
<Archive sha1sum="457cec7f1dff38648518416a292853c8d643fe4e" type="tarxz">https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/libcxxabi-9.0.1.src.tar.xz</Archive>
<BuildDependencies>
<Dependency>llvm</Dependency>
<Dependency>llvm-libs</Dependency>
<Dependency>llvm-clang</Dependency>
<Dependency>lld</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>libc++</Name>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
</Files>
</Package>
<Package>
<Name>libc++-32bit</Name>
<Summary>libc++ 32bit shared libraries.</Summary>
<PartOf>emul32</PartOf>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<Package>
<Name>libc++-devel</Name>
<Summary>Development files for libc++</Summary>
<RuntimeDependencies>
<Dependency release="current">libc++</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>20120-01-23</Date>
<Version>9.0.1</Version>
<Comment>First release</Comment>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Update>
</History>
</PISI>