pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rustc: add broken package for rustc-1.9.0



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun Jul 3 17:06:57 2016 +0200
Changeset:	eaed3de161ebf3d247e533e9bb10a93cb8a48021

Modified Files:
	Makefile
Added Files:
	rustc/DESCR
	rustc/Makefile
	rustc/TODO
	rustc/distinfo
	rustc/patches/patch-src_llvm_utils_buildit_build__llvm

Log Message:
rustc: add broken package for rustc-1.9.0

Breakage see below.
Possible solutions:
* first part looks like -I problem
* snapshot: either build a NetBSD snapshot on Linux,
  or use Linux binary to build snapshot in Linux emulation on NetBSD

=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Building for rustc-1.9.0
cfg: version 1.9.0-dev
cfg: build triple x86_64-unknown-netbsd
cfg: host triples x86_64-unknown-netbsd
cfg: target triples x86_64-unknown-netbsd
cfg: host for x86_64-unknown-netbsd is x86_64
cfg: os for x86_64-unknown-netbsd is unknown-netbsd
cfg: no good valgrind for x86_64-unknown-netbsd
cfg: disabling valgrind run-pass tests
fetch: x86_64-unknown-netbsd/stage0/bin/rustc
compile: x86_64-unknown-netbsd/rustllvm/ExecutionEngineWrapper.o
In file included from /scratch/wip/rust/work/rustc-1.9.0/src/llvm/include/llvm/ADT/ArrayRef.h:13:0,
                 from /scratch/wip/rust/work/rustc-1.9.0/src/llvm/include/llvm/IR/IRBuilder.h:18,
                 from /scratch/wip/rust/work/rustc-1.9.0/src/rustllvm/rustllvm.h:11,
                 from /scratch/wip/rust/work/rustc-1.9.0/src/rustllvm/ExecutionEngineWrapper.cpp:11:
/scratch/wip/rust/work/rustc-1.9.0/src/llvm/include/llvm/ADT/Hashing.h:48:36: fatal error: llvm/Support/DataTypes.h: No such file or directory
compilation terminated.
gmake: *** [/scratch/wip/rust/work/rustc-1.9.0/mk/rustllvm.mk:60: x86_64-unknown-netbsd/rustllvm/ExecutionEngineWrapper.o] Error 1
gmake: *** Waiting for unfinished jobs....
Traceback (most recent call last):
  File "/scratch/wip/rust/work/rustc-1.9.0/src/etc/get-snapshot.py", line 78, in <module>
    main(sys.argv)
  File "/scratch/wip/rust/work/rustc-1.9.0/src/etc/get-snapshot.py", line 60, in main
    snap = determine_curr_snapshot(triple)
  File "/scratch/wip/rust/work/rustc-1.9.0/src/etc/snapshot.py", line 302, in determine_curr_snapshot
    (platform, rev))
Exception: no snapshot file found for platform netbsd-x86_64, rev 7b95b5c
gmake: *** [/scratch/wip/rust/work/rustc-1.9.0/mk/stage0.mk:18: x86_64-unknown-netbsd/stage0/bin/rustc] Error 1
*** Error code 2

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=eaed3de161ebf3d247e533e9bb10a93cb8a48021

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 rustc/DESCR                                        | 11 ++++++++
 rustc/Makefile                                     | 31 ++++++++++++++++++++++
 rustc/TODO                                         | 31 ++++++++++++++++++++++
 rustc/distinfo                                     |  7 +++++
 .../patch-src_llvm_utils_buildit_build__llvm       | 15 +++++++++++
 6 files changed, 96 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index b270d92..833cea3 100644
--- a/Makefile
+++ b/Makefile
@@ -3685,6 +3685,7 @@ SUBDIR+=	ruby-xmpp4r
 SUBDIR+=	ruby-yaml_waml
 SUBDIR+=	runit
 SUBDIR+=	rust
+SUBDIR+=	rustc
 SUBDIR+=	rygel
 SUBDIR+=	s3cmd
 SUBDIR+=	s3funnel
diff --git a/rustc/DESCR b/rustc/DESCR
new file mode 100644
index 0000000..63987af
--- /dev/null
+++ b/rustc/DESCR
@@ -0,0 +1,11 @@
+Rust is a curly-brace, block-structured expression language. It
+visually resembles the C language family, but differs significantly
+in syntactic and semantic details. Its design is oriented toward
+concerns of "programming in the large", that is, of creating and
+maintaining boundaries - both abstract and operational - that
+preserve large-system integrity, availability and concurrency.
+
+It supports a mixture of imperative procedural, concurrent actor,
+object-oriented and pure functional styles. Rust also supports
+generic programming and metaprogramming, in both static and dynamic
+styles.
diff --git a/rustc/Makefile b/rustc/Makefile
new file mode 100644
index 0000000..41278f2
--- /dev/null
+++ b/rustc/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.5 2014/07/30 13:33:55 schmonz Exp $
+
+DISTNAME=	rustc-1.9.0-src
+PKGNAME=	${DISTNAME:S/-src//}
+CATEGORIES=	lang
+MASTER_SITES=	http://static.rust-lang.org/dist/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.rust-lang.org/
+COMMENT=	Safe, concurrent, practical language
+LICENSE=	mit OR apache-2.0
+
+BUILD_DEPENDS+=	curl-[0-9]*:../../www/curl
+
+PYTHON_VERSIONS_ACCEPTED=	27 # as of 1.9.0
+
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--prefix=${PREFIX} \
+		--mandir=${PREFIX}/${PKGMANDIR}
+USE_LANGUAGES=	c c++
+GCC_REQD=	4.7 4.8
+USE_TOOLS+=	gmake perl
+
+WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//}
+
+# for guidance: http://www.ntecs.de/blog/2014/07/29/rust-ported-to-dragonflybsd/
+# XXX problem with libtool wrapper
+# XXX needs python during build
+
+.include "../../lang/python/tool.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/rustc/TODO b/rustc/TODO
new file mode 100644
index 0000000..c94ddae
--- /dev/null
+++ b/rustc/TODO
@@ -0,0 +1,31 @@
+=> Bootstrap dependency digest>=20010302: found digest-20160304
+===> Building for rustc-1.9.0
+cfg: version 1.9.0-dev
+cfg: build triple x86_64-unknown-netbsd
+cfg: host triples x86_64-unknown-netbsd
+cfg: target triples x86_64-unknown-netbsd
+cfg: host for x86_64-unknown-netbsd is x86_64
+cfg: os for x86_64-unknown-netbsd is unknown-netbsd
+cfg: no good valgrind for x86_64-unknown-netbsd
+cfg: disabling valgrind run-pass tests
+fetch: x86_64-unknown-netbsd/stage0/bin/rustc
+compile: x86_64-unknown-netbsd/rustllvm/ExecutionEngineWrapper.o
+In file included from /scratch/wip/rust/work/rustc-1.9.0/src/llvm/include/llvm/ADT/ArrayRef.h:13:0,
+                 from /scratch/wip/rust/work/rustc-1.9.0/src/llvm/include/llvm/IR/IRBuilder.h:18,
+                 from /scratch/wip/rust/work/rustc-1.9.0/src/rustllvm/rustllvm.h:11,
+                 from /scratch/wip/rust/work/rustc-1.9.0/src/rustllvm/ExecutionEngineWrapper.cpp:11:
+/scratch/wip/rust/work/rustc-1.9.0/src/llvm/include/llvm/ADT/Hashing.h:48:36: fatal error: llvm/Support/DataTypes.h: No such file or directory
+compilation terminated.
+gmake: *** [/scratch/wip/rust/work/rustc-1.9.0/mk/rustllvm.mk:60: x86_64-unknown-netbsd/rustllvm/ExecutionEngineWrapper.o] Error 1
+gmake: *** Waiting for unfinished jobs....
+Traceback (most recent call last):
+  File "/scratch/wip/rust/work/rustc-1.9.0/src/etc/get-snapshot.py", line 78, in <module>
+    main(sys.argv)
+  File "/scratch/wip/rust/work/rustc-1.9.0/src/etc/get-snapshot.py", line 60, in main
+    snap = determine_curr_snapshot(triple)
+  File "/scratch/wip/rust/work/rustc-1.9.0/src/etc/snapshot.py", line 302, in determine_curr_snapshot
+    (platform, rev))
+Exception: no snapshot file found for platform netbsd-x86_64, rev 7b95b5c
+gmake: *** [/scratch/wip/rust/work/rustc-1.9.0/mk/stage0.mk:18: x86_64-unknown-netbsd/stage0/bin/rustc] Error 1
+*** Error code 2
+
diff --git a/rustc/distinfo b/rustc/distinfo
new file mode 100644
index 0000000..527f1d2
--- /dev/null
+++ b/rustc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.4 2014/07/03 03:11:31 schmonz Exp $
+
+SHA1 (rustc-1.9.0-src.tar.gz) = a698496c5244bbb5b2332b70f239f5af93752cce
+RMD160 (rustc-1.9.0-src.tar.gz) = 8ff733691ae3df739d780a7236186f4ca3e0d442
+SHA512 (rustc-1.9.0-src.tar.gz) = bb23d529daaea17cd6358057ad7c219b1bf2206331a9813520f9e3a519698f6d274a6c25f579dab9e8e48fe0c6e51e7eb473885cb1fb65128e715e06778b62f7
+Size (rustc-1.9.0-src.tar.gz) = 25859714 bytes
+SHA1 (patch-src_llvm_utils_buildit_build__llvm) = ec9bd4a28541a8cfd0a33cae2ae5d097116ac4de
diff --git a/rustc/patches/patch-src_llvm_utils_buildit_build__llvm b/rustc/patches/patch-src_llvm_utils_buildit_build__llvm
new file mode 100644
index 0000000..faf07bc
--- /dev/null
+++ b/rustc/patches/patch-src_llvm_utils_buildit_build__llvm
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix unportable test operator.
+
+--- src/llvm/utils/buildit/build_llvm.orig	2016-05-23 16:30:08.000000000 +0000
++++ src/llvm/utils/buildit/build_llvm
+@@ -227,7 +227,7 @@ cd $DIR/obj-llvm || exit 1
+ 
+ # Install the tree into the destination directory.
+ make $JOBS_FLAG $COMMON_MAKEFLAGS UNIVERSAL_ARCH="$HOSTS" install
+-if ! test $? == 0 ; then
++if ! test $? = 0 ; then
+     echo "error: LLVM 'make install' failed!"
+     exit 1
+ fi 


Home | Main Index | Thread Index | Old Index