Merge branch 'master' of github.com:pisilinux/main

This commit is contained in:
blue-devil
2020-03-28 02:24:28 +03:00
10 changed files with 83 additions and 35 deletions
+10 -9
View File
@@ -16,7 +16,7 @@ libsuffix = "32" if get.buildTYPE() == "emul32" else ""
NoStrip = ["/usr/lib/clang/%s/lib/linux" % get.srcVERSION()] NoStrip = ["/usr/lib/clang/%s/lib/linux" % get.srcVERSION()]
def setup(): def setup():
#pisitools.ldflags.add("-fuse-ld=lld") pisitools.ldflags.add("-fuse-ld=lld")
if get.buildTYPE() != "emul32": if get.buildTYPE() != "emul32":
if not shelltools.can_access_directory("tools/clang"): if not shelltools.can_access_directory("tools/clang"):
@@ -39,19 +39,19 @@ def setup():
shelltools.system("tar xf ../compiler-rt-%s.src.tar.xz -C projects" % get.srcVERSION()) shelltools.system("tar xf ../compiler-rt-%s.src.tar.xz -C projects" % get.srcVERSION())
shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(), "projects/compiler-rt") shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(), "projects/compiler-rt")
#shelltools.export("CC", "clang") shelltools.export("CC", "clang")
#shelltools.export("CXX", "clang++") shelltools.export("CXX", "clang++")
shelltools.export("CC", "gcc") #shelltools.export("CC", "gcc")
shelltools.export("CXX", "g++") #shelltools.export("CXX", "g++")
else: else:
shelltools.system("tar xf ../clang-%s.src.tar.xz -C tools" % get.srcVERSION()) shelltools.system("tar xf ../clang-%s.src.tar.xz -C tools" % get.srcVERSION())
shelltools.move("tools/clang-%s.src" % get.srcVERSION(), "tools/clang") shelltools.move("tools/clang-%s.src" % get.srcVERSION(), "tools/clang")
if get.buildTYPE() == "emul32": if get.buildTYPE() == "emul32":
#shelltools.export("CC", "clang -m32") shelltools.export("CC", "clang -m32")
#shelltools.export("CXX", "clang++ -m32") shelltools.export("CXX", "clang++ -m32")
shelltools.export("CC", "gcc -m32") #shelltools.export("CC", "gcc -m32")
shelltools.export("CXX", "g++ -m32") #shelltools.export("CXX", "g++ -m32")
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig") shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
shelltools.makedirs("build") shelltools.makedirs("build")
@@ -63,6 +63,7 @@ def setup():
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS:STRING=-m64 \ -DCMAKE_CXX_FLAGS:STRING=-m64 \
-DLLVM_TARGET_ARCH:STRING=x86_64 \ -DLLVM_TARGET_ARCH:STRING=x86_64 \
-DLLDB_ENABLE_LUA=OFF \
-DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST() -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST()
+5 -2
View File
@@ -32,8 +32,8 @@
<!-- Use new plugin-api.h header file from binutils to enable LLVM gold plugin --> <!-- Use new plugin-api.h header file from binutils to enable LLVM gold plugin -->
<Dependency>binutils</Dependency> <Dependency>binutils</Dependency>
<Dependency>gcc</Dependency> <Dependency>gcc</Dependency>
<!-- <Dependency>llvm-clang</Dependency> --> <Dependency>llvm-clang</Dependency>
<!-- <Dependency>lld</Dependency> --> <Dependency>lld</Dependency>
</BuildDependencies> </BuildDependencies>
</Source> </Source>
@@ -95,6 +95,7 @@
<Summary>Next generation, high-performance debugger</Summary> <Summary>Next generation, high-performance debugger</Summary>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency release="current">llvm-libs</Dependency> <Dependency release="current">llvm-libs</Dependency>
<Dependency release="current">llvm-clang</Dependency>
<Dependency>zlib</Dependency> <Dependency>zlib</Dependency>
<Dependency>libffi</Dependency> <Dependency>libffi</Dependency>
<Dependency>libedit</Dependency> <Dependency>libedit</Dependency>
@@ -102,6 +103,7 @@
<Dependency>ncurses</Dependency> <Dependency>ncurses</Dependency>
<Dependency>python</Dependency> <Dependency>python</Dependency>
<Dependency>libxml2</Dependency> <Dependency>libxml2</Dependency>
<Dependency>xz</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
<Path fileType="executable">/usr/bin/argdumper</Path> <Path fileType="executable">/usr/bin/argdumper</Path>
@@ -205,6 +207,7 @@
<Summary>A C language family front-end for LLVM</Summary> <Summary>A C language family front-end for LLVM</Summary>
<Description>The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.</Description> <Description>The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.</Description>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency release="current">llvm</Dependency>
<Dependency release="current">llvm-libs</Dependency> <Dependency release="current">llvm-libs</Dependency>
<Dependency>libgcc</Dependency> <Dependency>libgcc</Dependency>
<Dependency>ncurses</Dependency> <Dependency>ncurses</Dependency>
+1 -1
View File
@@ -62,7 +62,7 @@
<History> <History>
<Update release="13"> <Update release="13">
<Date>2020-03-26</Date> <Date>2020-03-28</Date>
<Version>1.42.0</Version> <Version>1.42.0</Version>
<Comment>Version bump.</Comment> <Comment>Version bump.</Comment>
<Name>Idris Kalp</Name> <Name>Idris Kalp</Name>
+2 -2
View File
@@ -14,7 +14,7 @@
<Description>Rust koduna C bağlamaları oluşturmak için bir araç</Description> <Description>Rust koduna C bağlamaları oluşturmak için bir araç</Description>
<Archive sha1sum="4fcf23106eba26de5430e9777d8394daa1860610" type="targz">https://github.com/eqrion/cbindgen/archive/v0.13.2.tar.gz</Archive> <Archive sha1sum="4fcf23106eba26de5430e9777d8394daa1860610" type="targz">https://github.com/eqrion/cbindgen/archive/v0.13.2.tar.gz</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency versionFrom="1.41.0">rust</Dependency> <Dependency versionFrom="1.42.0">rust</Dependency>
<Dependency>llvm</Dependency> <Dependency>llvm</Dependency>
</BuildDependencies> </BuildDependencies>
</Source> </Source>
@@ -32,7 +32,7 @@
<History> <History>
<Update release="10"> <Update release="10">
<Date>2020-03-26</Date> <Date>2020-03-28</Date>
<Version>0.13.2</Version> <Version>0.13.2</Version>
<Comment>Version bump.</Comment> <Comment>Version bump.</Comment>
<Name>Idris Kalp</Name> <Name>Idris Kalp</Name>
+29 -3
View File
@@ -4,19 +4,45 @@
# Licensed under the GNU General Public License, version 3. # Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt # See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools from pisi.actionsapi import autotools
from pisi.actionsapi import get from pisi.actionsapi import get
libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
def setup(): def setup():
shelltools.system("python ./configure.py --prefix=/usr")
if get.buildTYPE() == "emul32":
shelltools.system("chmod +x clang32")
options = "-DLLVM_CLANG='%s/%s-%s/clang32' \
-DLLVM_CONFIG='/usr/bin/llvm-config-32' \
" % (get.workDIR(), get.srcNAME(), get.srcVERSION())
else:
options = "-DLLVM_CLANG='/usr/bin/clang' \
-DLLVM_CONFIG='/usr/bin/llvm-config' \
"
cmaketools.configure(options)
def build(): def build():
autotools.make() cmaketools.make()
def install(): def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR()) autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.domove("/usr/share/clc/", "%s" %libdir)
pisitools.domove("/usr/share/pkgconfig/libclc.pc", "%s/pkgconfig" % libdir)
if get.buildTYPE() == "emul32":
shelltools.system("sed -i 's/\/usr\/share/\/usr\/lib32/' %s/usr/lib32/pkgconfig/libclc.pc" % get.installDIR())
else:
shelltools.system("sed -i 's/\/usr\/share/\/usr\/lib/' %s/usr/lib/pkgconfig/libclc.pc" % get.installDIR())
#pisitools.removeDir("/usr/share/clc")
pisitools.removeDir("/usr/share/pkgconfig")
pisitools.dodoc("LICENSE*", "README*") pisitools.dodoc("LICENSE*", "README*")
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
/usr/bin/clang -m32 $@
+16 -3
View File
@@ -12,12 +12,15 @@
<IsA>library</IsA> <IsA>library</IsA>
<Summary>Library requirements of the OpenCL C programming language</Summary> <Summary>Library requirements of the OpenCL C programming language</Summary>
<Description>Library requirements of the OpenCL C programming language</Description> <Description>Library requirements of the OpenCL C programming language</Description>
<Archive sha1sum="a9574c191c68d85f419f66a45fc811da63460cea" type="tarxz">https://sourceforge.net/projects/pisilinux/files/source/libclc-r375507.tar.xz</Archive> <Archive sha1sum="7bb5c4b2cd35f163a19fdf326231570e1abb1c90" type="tarxz">https://sourceforge.net/projects/pisilinux/files/source/libclc-10.0.0_20200215.tar.xz</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>llvm</Dependency> <Dependency>llvm</Dependency>
<Dependency>python-devel</Dependency> <Dependency>python-devel</Dependency>
<Dependency>llvm-clang-devel</Dependency> <Dependency>llvm-clang-devel</Dependency>
</BuildDependencies> </BuildDependencies>
<AdditionalFiles>
<AdditionalFile target="clang32">clang32</AdditionalFile>
</AdditionalFiles>
</Source> </Source>
<Package> <Package>
@@ -31,6 +34,15 @@
</Files> </Files>
</Package> </Package>
<Package>
<Name>libclc-32bit</Name>
<BuildType>emul32</BuildType>
<PartOf>emul32</PartOf>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<Package> <Package>
<Name>libclc-devel</Name> <Name>libclc-devel</Name>
<Summary>Development files for libclc</Summary> <Summary>Development files for libclc</Summary>
@@ -40,13 +52,14 @@
<Files> <Files>
<Path fileType="header">/usr/include</Path> <Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path> <Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="library">/usr/lib32/pkgconfig</Path>
</Files> </Files>
</Package> </Package>
<History> <History>
<Update release="1"> <Update release="1">
<Date>2020-01-05</Date> <Date>2020-03-26</Date>
<Version>9.0.1_375507</Version> <Version>10.0.0_20200215</Version>
<Comment>First release</Comment> <Comment>First release</Comment>
<Name>İdris Kalp</Name> <Name>İdris Kalp</Name>
<Email>idriskalp@gmail.com</Email> <Email>idriskalp@gmail.com</Email>
+3 -2
View File
@@ -41,15 +41,16 @@ def setup():
-Dbuild-tests=false \ -Dbuild-tests=false \
-Dosmesa=gallium \ -Dosmesa=gallium \
-Dswr-arches=avx,avx2 \ -Dswr-arches=avx,avx2 \
-Dgallium-opencl=icd \
" % ((libdir, ) * 2) " % ((libdir, ) * 2)
if get.buildTYPE() == "emul32": if get.buildTYPE() == "emul32":
options += " -Dlmsensors=false" options += " -Dlmsensors=false --native-file crossfile.ini -Dllvm_libdir=/usr/lib32"
shelltools.export("CC", "gcc -m32") shelltools.export("CC", "gcc -m32")
shelltools.export("CXX", "g++ -m32") shelltools.export("CXX", "g++ -m32")
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig") shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
shelltools.export("LLVM_CONFIG","/usr/bin/llvm-config-32") shelltools.export("LLVM_CONFIG","/usr/bin/llvm-config-32")
else: options += " -Dgallium-opencl=icd -Dgallium-omx=bellagio -Dlmsensors=true" else: options += " -Dgallium-omx=bellagio -Dlmsensors=true"
mesontools.configure(options) mesontools.configure(options)
+2
View File
@@ -0,0 +1,2 @@
[binaries]
llvm-config = '/usr/bin/llvm-config-32'
+11 -12
View File
@@ -13,7 +13,7 @@
<IsA>app:console</IsA> <IsA>app:console</IsA>
<Summary>Mesa graphics libraries and utilities</Summary> <Summary>Mesa graphics libraries and utilities</Summary>
<Description>Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.</Description> <Description>Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.</Description>
<Archive sha1sum="c3d603ec4857699fc93054351f24cfbd35818329" type="tarxz">https://mesa.freedesktop.org/archive/mesa-19.3.5.tar.xz</Archive> <Archive sha1sum="c05cd6ab77577b0ce14642ab6cde295fba0256ef" type="tarxz">https://mesa.freedesktop.org/archive/mesa-20.0.2.tar.xz</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>meson</Dependency> <Dependency>meson</Dependency>
<Dependency>zlib-devel</Dependency> <Dependency>zlib-devel</Dependency>
@@ -55,6 +55,9 @@
<Dependency>libclc-devel</Dependency> <Dependency>libclc-devel</Dependency>
<Dependency>lm_sensors-devel</Dependency> <Dependency>lm_sensors-devel</Dependency>
</BuildDependencies> </BuildDependencies>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="crossfile.ini">crossfile.ini</AdditionalFile>
</AdditionalFiles>
<Patches> <Patches>
</Patches> </Patches>
</Source> </Source>
@@ -164,6 +167,7 @@
<Dependency>libXrandr-32bit</Dependency> <Dependency>libXrandr-32bit</Dependency>
<Dependency>libglvnd-32bit</Dependency> <Dependency>libglvnd-32bit</Dependency>
<Dependency>vulkan-32bit</Dependency> <Dependency>vulkan-32bit</Dependency>
<Dependency>libclc-32bit</Dependency>
</BuildDependencies> </BuildDependencies>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>zlib-32bit</Dependency> <Dependency>zlib-32bit</Dependency>
@@ -188,7 +192,9 @@
<Dependency>libdrm-nouveau-32bit</Dependency> <Dependency>libdrm-nouveau-32bit</Dependency>
<Dependency>wayland-32bit</Dependency> <Dependency>wayland-32bit</Dependency>
<Dependency>vulkan-32bit</Dependency> <Dependency>vulkan-32bit</Dependency>
<Dependency>opencl-icd-32bit</Dependency>
<Dependency>libglvnd-32bit</Dependency> <Dependency>libglvnd-32bit</Dependency>
<Dependency>libclc-32bit</Dependency>
<Dependency>libunwind-32bit</Dependency> <Dependency>libunwind-32bit</Dependency>
<Dependency release="current">mesa</Dependency> <Dependency release="current">mesa</Dependency>
<Dependency versionFrom="8.0.0">llvm-32bit</Dependency> <Dependency versionFrom="8.0.0">llvm-32bit</Dependency>
@@ -200,19 +206,12 @@
</Package> </Package>
<History> <History>
<Update release="20">
<Date>2020-03-10</Date>
<Version>19.3.5</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="19"> <Update release="19">
<Date>2020-01-11</Date> <Date>2020-03-27</Date>
<Version>19.3.2</Version> <Version>20.0.2</Version>
<Comment>Version bump.</Comment> <Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name> <Name>İdris Kalp</Name>
<Email>muscnsl@gmail.com</Email> <Email>idriskalp@gmail.com</Email>
</Update> </Update>
<Update release="18"> <Update release="18">
<Date>2020-01-03</Date> <Date>2020-01-03</Date>