rust-1.20.0:First release

This commit is contained in:
Rmys
2017-09-27 18:51:25 +03:00
parent 0ef0b526a9
commit e5422239ef
9 changed files with 137760 additions and 137523 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def build():
shelltools.system("python ./x.py --verbose")
def install():
pisitools.insinto("/", "build/x86_64-unknown-linux-gnu/stage0/etc")
pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/bin")
pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/lib")
pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/share")
#pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/manifest.in")
#pisitools.dodoc("LICENSE","AUTHORS","README*")
@@ -0,0 +1,32 @@
From 5dbc650a60ddb230f59e5a18ffd298b033566945 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <johannes@kyriasis.com>
Date: Thu, 20 Jul 2017 23:07:01 +0200
Subject: [PATCH] librustc_llvm/build: Force link against libffi
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
`llvm-config --libs` doesn't output libffi in many cases. Fixing it
turned out to take quite a bit of effort, so force libffi linking in
here for now.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
---
src/librustc_llvm/build.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs
index 3f0f536960..7dc0c40c9d 100644
--- a/src/librustc_llvm/build.rs
+++ b/src/librustc_llvm/build.rs
@@ -220,6 +220,7 @@ fn main() {
};
println!("cargo:rustc-link-lib={}={}", kind, name);
}
+ println!("cargo:rustc-link-lib=dylib=ffi");
// LLVM ldflags
//
--
2.13.3
+25
View File
@@ -0,0 +1,25 @@
[build]
python = "python2.7"
extended = true
# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose
verbose = 0
# Build the sanitizer runtimes
#sanitizers = false
[install]
prefix = "/usr"
[rust]
codegen-units = 0
debuginfo = true
# Whether or not line number debug information is emitted
#debuginfo-lines = false
channel = "stable"
[target.x86_64-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"
[target.i686-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"
+53
View File
@@ -0,0 +1,53 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>rust</Name>
<Homepage>https://www.rust-lang.org/en-US/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>MIT</License>
<IsA>app</IsA>
<Summary>Systems programming language focused on safety, speed and concurrency</Summary>
<Description>Systems programming language focused on safety, speed and concurrency</Description>
<Archive sha1sum="502e452e06104e336fcbf57e54b4d64db01c1ec2" type="targz">https://static.rust-lang.org/dist/rustc-1.20.0-src.tar.gz</Archive>
<AdditionalFiles>
<AdditionalFile target="config.toml">bootstrap-config.toml</AdditionalFile>
</AdditionalFiles>
<Patches>
<Patch>0001-librustc_llvm-build-Force-link-against-libffi.patch</Patch>
</Patches>
</Source>
<Package>
<Name>rust</Name>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="config">/etc</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/zsh</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2017-09-26</Date>
<Version>1.20.0</Version>
<Comment>First release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>Lynx</Name>
<Summary xml:lang="en">Lynx is the text web browser.</Summary>
<Summary xml:lang="pl">Przeglądarka WWW z interfejsem tekstowym</Summary>
<Description xml:lang="en">This is the top level page for the Lynx software distribution site hosted by the Internet Software Consortium.</Description>
<Description xml:lang="pl">Lynx przeglądarka internetowa pracująca w trybie tekstowym.</Description>
</Source>
</PISI>