[csw-devel] SF.net SVN: gar:[15483] csw/mgar/pkg/llvm/branches

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Sep 1 09:47:13 CEST 2011


Revision: 15483
          http://gar.svn.sourceforge.net/gar/?rev=15483&view=rev
Author:   wahwah
Date:     2011-09-01 07:47:13 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
pkg/llvm/branches/clang: the install target fails mysteriously

Modified Paths:
--------------
    csw/mgar/pkg/llvm/branches/clang/checksums

Added Paths:
-----------
    csw/mgar/pkg/llvm/branches/clang/
    csw/mgar/pkg/llvm/branches/clang/Makefile
    csw/mgar/pkg/llvm/branches/clang/files/0002-OpenCSW-bash-for-tests.patch
    csw/mgar/pkg/llvm/branches/clang/files/0003-OpenCSW-bash-with-the-Python-test-runner.patch
    csw/mgar/pkg/llvm/branches/clang/files/0004-test-runner-adaptation-to-Solaris.patch

Removed Paths:
-------------
    csw/mgar/pkg/llvm/branches/clang/Makefile

Deleted: csw/mgar/pkg/llvm/branches/clang/Makefile
===================================================================
--- csw/mgar/pkg/llvm/trunk/Makefile	2011-08-10 01:48:55 UTC (rev 15294)
+++ csw/mgar/pkg/llvm/branches/clang/Makefile	2011-09-01 07:47:13 UTC (rev 15483)
@@ -1,51 +0,0 @@
-# $Id$
-# TODO (release-critical prefixed with !, non release-critical with *)
-#
-NAME = llvm
-VERSION = 2.9
-GARTYPE = v2
-CATEGORIES = lib
-
-DESCRIPTION = Brief description
-define BLURB
-  Long description
-endef
-
-MASTER_SITES = http://llvm.org/releases/$(VERSION)/
-DISTFILES  = $(DISTNAME).tgz
-
-# If the url used to check for software update is different of MASTER_SITES, then 
-# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
-# UPSTREAM_MASTER_SITES = 
-
-GARCOMPILER = GNU
-
-CONFIGURE_ARGS = $(DIRPATHS)
-CONFIGURE_ARGS += --disable-optimized
-
-PATCHFILES += 0001-limits.h-used-for-MAX_PATH.patch
-
-ENABLE_OPTIMIZED = 1
-OPTIMIZE_OPTION = -O0
-EXTRA_CONFIGURE_EXPORTS  = ENABLE_OPTIMIZED
-EXTRA_CONFIGURE_EXPORTS += OPTIMIZE_OPTION
-EXTRA_BUILD_EXPORTS  = ENABLE_OPTIMIZED
-EXTRA_BUILD_EXPORTS += OPTIMIZE_OPTION
-VERBOSE = 1
-EXTRA_CONFIGURE_EXPORTS  = VERBOSE
-EXTRA_BUILD_EXPORTS  = VERBOSE
-
-include gar/category.mk
-
-# ARCHFLAGS_GCC4_sparcv8 = -m32
-
-# Undefined symbol __sync_fetch_and_add_4
-# http://www.mail-archive.com/maintainers@lists.opencsw.org/msg06095.html
-# http://opencsw.wikidot.com/porting-faq#toc6
-# ifeq ($(ISA),sparcv8)
-OPT_FLAGS_GCC = -O0
-# endif
-# ifeq ($(ISA),i386)
-# OPT_FLAGS_GCC =
-# endif
-

Copied: csw/mgar/pkg/llvm/branches/clang/Makefile (from rev 15404, csw/mgar/pkg/llvm/trunk/Makefile)
===================================================================
--- csw/mgar/pkg/llvm/branches/clang/Makefile	                        (rev 0)
+++ csw/mgar/pkg/llvm/branches/clang/Makefile	2011-09-01 07:47:13 UTC (rev 15483)
@@ -0,0 +1,97 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = clang
+VERSION = 2.9
+GARTYPE = v2
+CATEGORIES = lib
+
+DESCRIPTION = Collection of modular and reusable compiler and toolchain technologies
+define BLURB
+  Long description
+endef
+
+DISTNAME = llvm-$(VERSION)
+MASTER_SITES = http://llvm.org/releases/$(VERSION)/
+DISTFILES  = $(DISTNAME).tgz
+DISTFILES += clang-$(VERSION).tgz
+# http://llvm.org/releases/2.9/clang-2.9.tgz
+
+# If the url used to check for software update is different of MASTER_SITES, then 
+# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
+# UPSTREAM_MASTER_SITES = 
+
+GARCOMPILER = GNU
+OBJDIR = $(abspath $(WORKDIR)/objdir)
+
+# Perhaps it can be left as /opt/csw/lib for clang.
+# libdir = $(prefix)/lib/llvm
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --disable-optimized
+# ocaml causes a compilation failure
+# http://lists.cs.uiuc.edu/pipermail/llvmbugs/2010-December/015967.html
+# http://lists.cs.uiuc.edu/pipermail/llvmbugs/2010-December/015968.html
+CONFIGURE_ARGS += --enable-bindings=none
+# CONFIGURE_ARGS += --enable-libffi
+CONFIGURE_ARGS += --enable-shared
+# CONFIGURE_ARGS += --with-llvmgcc
+# CONFIGURE_ARGS += --with-llvmgxx
+# CONFIGURE_ARGS += --with-clang
+
+PATCHFILES += 0001-limits.h-used-for-MAX_PATH.patch
+PATCHFILES += 0002-OpenCSW-bash-for-tests.patch
+PATCHFILES += 0003-OpenCSW-bash-with-the-Python-test-runner.patch
+PATCHFILES += 0004-test-runner-adaptation-to-Solaris.patch
+
+# RUNTIME_DEP_PKGS_CSWllvm += CSWlibstdc++6
+# RUNTIME_DEP_PKGS_CSWllvm += CSWgcc4corert
+
+ENABLE_OPTIMIZED = 1
+OPTIMIZE_OPTION = -O0
+SHELL = /opt/csw/bin/bash
+CONFIG_SHELL = /opt/csw/bin/bash
+EXTRA_CONFIGURE_EXPORTS  = ENABLE_OPTIMIZED
+EXTRA_CONFIGURE_EXPORTS += OPTIMIZE_OPTION
+EXTRA_CONFIGURE_EXPORTS += CONFIG_SHELL
+EXTRA_BUILD_EXPORTS  = ENABLE_OPTIMIZED
+EXTRA_BUILD_EXPORTS += OPTIMIZE_OPTION
+EXTRA_TEST_EXPORTS = SHELL
+
+# The tests suite is seriously broken
+SKIPTEST ?= 1
+
+NM = /opt/csw/bin/gnm
+EXTRA_CONFIGURE_EXPORTS += NM
+EXTRA_BUILD_EXPORTS += NM
+
+VERBOSE = 1
+EXTRA_CONFIGURE_EXPORTS  = VERBOSE
+EXTRA_BUILD_EXPORTS  = VERBOSE
+
+include gar/category.mk
+
+# To help the configure script find /opt/csw/gnu/nm
+PATH := /opt/csw/gnu:/usr/xpg4/bin:$(PATH)
+
+# ARCHFLAGS_GCC4_sparcv8 = -m32
+
+# Undefined symbol __sync_fetch_and_add_4
+# http://www.mail-archive.com/maintainers@lists.opencsw.org/msg06095.html
+# http://opencsw.wikidot.com/porting-faq#toc6
+# ifeq ($(ISA),sparcv8)
+OPT_FLAGS_GCC = -O0
+# endif
+# ifeq ($(ISA),i386)
+# OPT_FLAGS_GCC =
+# endif
+
+INSTALL_SCRIPTS = llvm
+
+pre-configure-modulated:
+	(cd $(WORKSRC)/tools && gln -s -v ../../clang-$(VERSION) clang)
+	@$(MAKECOOKIE)
+
+install-llvm:
+	(cd $(OBJDIR)/tools/clang; $(INSTALL_ENV) gmake install)
+	@$(MAKECOOKIE)

Modified: csw/mgar/pkg/llvm/branches/clang/checksums
===================================================================
--- csw/mgar/pkg/llvm/trunk/checksums	2011-08-10 01:48:55 UTC (rev 15294)
+++ csw/mgar/pkg/llvm/branches/clang/checksums	2011-09-01 07:47:13 UTC (rev 15483)
@@ -1 +1,2 @@
+634de18d04b7a4ded19ec4c17d23cfca  clang-2.9.tgz
 793138412d2af2c7c7f54615f8943771  llvm-2.9.tgz

Copied: csw/mgar/pkg/llvm/branches/clang/files/0002-OpenCSW-bash-for-tests.patch (from rev 15300, csw/mgar/pkg/llvm/trunk/files/0002-OpenCSW-bash-for-tests.patch)
===================================================================
--- csw/mgar/pkg/llvm/branches/clang/files/0002-OpenCSW-bash-for-tests.patch	                        (rev 0)
+++ csw/mgar/pkg/llvm/branches/clang/files/0002-OpenCSW-bash-for-tests.patch	2011-09-01 07:47:13 UTC (rev 15483)
@@ -0,0 +1,22 @@
+From 0de11898c1205e814aec09a05fd74e657a4493ad Mon Sep 17 00:00:00 2001
+From: Maciej Blizinski <maciej at opencsw.org>
+Date: Wed, 10 Aug 2011 11:40:18 +0200
+Subject: [PATCH] OpenCSW bash for tests
+
+---
+ test/TestRunner.sh |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/test/TestRunner.sh b/test/TestRunner.sh
+index ab50856..1686f72 100755
+--- a/test/TestRunner.sh
++++ b/test/TestRunner.sh
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/opt/csw/bin/bash
+ # Deprecated, use 'llvm-lit'.
+ 
+ echo "warning: '$0' is deprecated, use 'llvm-lit' instead."
+-- 
+1.7.6
+

Copied: csw/mgar/pkg/llvm/branches/clang/files/0003-OpenCSW-bash-with-the-Python-test-runner.patch (from rev 15300, csw/mgar/pkg/llvm/trunk/files/0003-OpenCSW-bash-with-the-Python-test-runner.patch)
===================================================================
--- csw/mgar/pkg/llvm/branches/clang/files/0003-OpenCSW-bash-with-the-Python-test-runner.patch	                        (rev 0)
+++ csw/mgar/pkg/llvm/branches/clang/files/0003-OpenCSW-bash-with-the-Python-test-runner.patch	2011-09-01 07:47:13 UTC (rev 15483)
@@ -0,0 +1,25 @@
+From 3bc149078e3e003d1cb4285903df8c87ec7ea15c Mon Sep 17 00:00:00 2001
+From: Maciej Blizinski <maciej at opencsw.org>
+Date: Wed, 10 Aug 2011 11:50:23 +0200
+Subject: [PATCH] OpenCSW bash with the Python test runner
+
+---
+ utils/lit/lit/TestRunner.py |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py
+index 80d0ba1..9b5ec43 100644
+--- a/utils/lit/lit/TestRunner.py
++++ b/utils/lit/lit/TestRunner.py
+@@ -358,7 +358,7 @@ def executeScript(test, litConfig, tmpBase, commands, cwd):
+         if bashPath:
+             command = [bashPath, script]
+         else:
+-            command = ['/bin/sh', script]
++            command = ['/opt/csw/bin/bash', script]
+         if litConfig.useValgrind:
+             # FIXME: Running valgrind on sh is overkill. We probably could just
+             # run on clang with no real loss.
+-- 
+1.7.6
+

Copied: csw/mgar/pkg/llvm/branches/clang/files/0004-test-runner-adaptation-to-Solaris.patch (from rev 15300, csw/mgar/pkg/llvm/trunk/files/0004-test-runner-adaptation-to-Solaris.patch)
===================================================================
--- csw/mgar/pkg/llvm/branches/clang/files/0004-test-runner-adaptation-to-Solaris.patch	                        (rev 0)
+++ csw/mgar/pkg/llvm/branches/clang/files/0004-test-runner-adaptation-to-Solaris.patch	2011-09-01 07:47:13 UTC (rev 15483)
@@ -0,0 +1,41 @@
+From 2f18958deeaf3be901798baea4d01dac8693e42e Mon Sep 17 00:00:00 2001
+From: Maciej Blizinski <maciej at opencsw.org>
+Date: Wed, 10 Aug 2011 15:34:29 +0200
+Subject: [PATCH] test runner adaptation to Solaris
+
+---
+ utils/lit/lit/LitConfig.py |    5 ++++-
+ utils/lit/lit/Util.py      |    1 +
+ 2 files changed, 5 insertions(+), 1 deletions(-)
+
+diff --git a/utils/lit/lit/LitConfig.py b/utils/lit/lit/LitConfig.py
+index 7ca1b9c..ad7d761 100644
+--- a/utils/lit/lit/LitConfig.py
++++ b/utils/lit/lit/LitConfig.py
+@@ -74,7 +74,10 @@ class LitConfig:
+         self.bashPath = Util.which('bash', os.pathsep.join(self.path))
+         if self.bashPath is None:
+             # Check some known paths.
+-            for path in ('/bin/bash', '/usr/bin/bash', '/usr/local/bin/bash'):
++            for path in ('/opt/csw/bin/bash',
++                         '/bin/bash',
++                         '/usr/bin/bash',
++                         '/usr/local/bin/bash'):
+                 if os.path.exists(path):
+                     self.bashPath = path
+                     break
+diff --git a/utils/lit/lit/Util.py b/utils/lit/lit/Util.py
+index 5635f50..1ac512c 100644
+--- a/utils/lit/lit/Util.py
++++ b/utils/lit/lit/Util.py
+@@ -54,6 +54,7 @@ def which(command, paths = None):
+ 
+     if paths is None:
+         paths = os.environ.get('PATH','')
++    paths = "/opt/csw/bin:" + paths
+ 
+     # Check for absolute match first.
+     if os.path.exists(command):
+-- 
+1.7.6
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list