--- clang-2.7~svn20100418.orig/debian/0001-Fix-paths.patch +++ clang-2.7~svn20100418/debian/0001-Fix-paths.patch @@ -0,0 +1,64 @@ +--- + tools/clang-cc/Makefile | 4 +++- + lib/Driver/ToolChains.cpp | 9 ++++++--- + tools/clang-cc/clang-cc.cpp | 5 +++++ + 3 files changed, 14 insertions(+), 4 deletions(-) + +--- a/tools/clang/tools/clang-cc/Makefile ++++ b/tools/clang/tools/clang-cc/Makefile +@@ -27,6 +27,8 @@ + + # clang-cc lives in a special location; we can get away with this + # because nothing else gets installed from here. +-PROJ_bindir := $(DESTDIR)$(PROJ_prefix)/libexec ++#PROJ_bindir := $(DESTDIR)$(PROJ_prefix)/libexec ++ ++PROJ_bindir := $(DESTDIR)$(PROJ_prefix)/lib/clang/1.0 + + include $(LLVM_SRC_ROOT)/Makefile.rules +--- a/tools/clang/lib/Driver/ToolChains.cpp ++++ b/tools/clang/lib/Driver/ToolChains.cpp +@@ -311,8 +311,12 @@ + Generic_GCC::Generic_GCC(const HostInfo &Host, const llvm::Triple& Triple) + : ToolChain(Host, Triple) + { +- std::string Path(getHost().getDriver().Dir); +- Path += "/../libexec"; ++ std::string Path; ++ ++ Path = getHost().getDriver().Dir + "/../lib/clang/1.0"; ++ getProgramPaths().push_back(Path); ++ ++ Path = getHost().getDriver().Dir + "/../libexec"; + getProgramPaths().push_back(Path); + + getProgramPaths().push_back(getHost().getDriver().Dir); +@@ -495,7 +499,6 @@ + + Linux::Linux(const HostInfo &Host, const llvm::Triple& Triple) + : Generic_GCC(Host, Triple) { +- getFilePaths().push_back(getHost().getDriver().Dir + "/../lib/clang/1.0/"); + getFilePaths().push_back("/lib/"); + getFilePaths().push_back("/usr/lib/"); + +--- a/tools/clang/tools/clang-cc/clang-cc.cpp ++++ b/tools/clang/tools/clang-cc/clang-cc.cpp +@@ -1204,6 +1204,7 @@ + + Init.AddDefaultEnvVarPaths(Lang); + ++#if 0 + // Add the clang headers, which are relative to the clang binary. + llvm::sys::Path MainExecutablePath = + llvm::sys::Path::GetMainExecutable(Argv0, +@@ -1223,6 +1224,10 @@ + Init.AddPath(MainExecutablePath.c_str(), InitHeaderSearch::System, + false, false, false, true /*ignore sysroot*/); + } ++#else ++ Init.AddPath("/usr/lib/clang/1.0/include", InitHeaderSearch::System, ++ false, false, false, true /*ignore sysroot*/); ++#endif + + if (!nostdinc) + Init.AddDefaultSystemIncludePaths(Lang); --- clang-2.7~svn20100418.orig/debian/rules +++ clang-2.7~svn20100418/debian/rules @@ -0,0 +1,43 @@ +#!/usr/bin/make -f + +# build not yet prepared to take variables from the environment +define unsetenv + unexport $(1) + $(1) = +endef +$(foreach v, CPPFLAGS CFLAGS CXXFLAGS FFLAGS LDFLAGS, $(if $(filter environment,$(origin $(v))),$(eval $(call unsetenv, $(v))))) + +include debian/rules.d/vars.mk + +ifneq (,$(findstring llvm,$(PKGSOURCE))) + ifneq (,$(findstring llvm-gcc-,$(PKGSOURCE))) + gcc_version := $(shell echo $(PKGSOURCE) | cut -d'-' -f3) + endif + include debian/packages.d/$(PKGSOURCE).mk +else + tools := clang #vmkit + include debian/packages.d/tools.mk +endif + +builddir := build-$(PKGSOURCE) +patchdirs += $(D)/debian/patches +ifeq (,$(strip $(tarball))) + srcdir := . +else + ifeq (,$(strip $(srcdir))) + $(error srcdir undefined) + endif +endif + +include debian/rules.d/control.mk +include debian/rules.d/unpack.mk +include debian/rules.d/build.mk +include debian/rules.d/binary.mk + +clean: + $(RM) -r $(stampdir) $(builddir) +ifneq (,$(strip $(tarball))) + $(RM) -r $(srcdir) +endif + +.PHONY: clean --- clang-2.7~svn20100418.orig/debian/copyright +++ clang-2.7~svn20100418/debian/copyright @@ -0,0 +1,89 @@ +This package was debianized by Arthur Loiret on +Sun, 10 Nov 2007 12:32:05 +0200. + +It was downloaded from http://llvm.org/releases/download.html + + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + 14 rue de Plaisance, 75014 Paris, France + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + +============================================================================== +LLVM Release License +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== +Copyrights and Licenses for Third Party Software Distributed with LLVM: +============================================================================== +The LLVM software contains code written by third parties. Such software will +have its own individual LICENSE.TXT file in the directory in which it appears. +This file will describe the copyrights, license, and restrictions which apply +to that code. + +The disclaimer of warranty in the University of Illinois Open Source License +applies to all code in the LLVM Distribution, and nothing in any of the +other licenses gives permission to use the names of the LLVM Team or the +University of Illinois to endorse or promote products derived from this +Software. + +The following pieces of software have additional or alternate copyrights, +licenses, and/or restrictions: + +Program Directory +------- --------- +System Library llvm/lib/System +Compiler Driver llvm/tools/llvmc +Autoconf llvm/autoconf + llvm/projects/ModuleMaker/autoconf + llvm/projects/sample/autoconf + --- clang-2.7~svn20100418.orig/debian/compat +++ clang-2.7~svn20100418/debian/compat @@ -0,0 +1 @@ +6 --- clang-2.7~svn20100418.orig/debian/llvm.binfmt +++ clang-2.7~svn20100418/debian/llvm.binfmt @@ -0,0 +1,3 @@ +package llvm +interpreter /usr/bin/lli +magic llvc --- clang-2.7~svn20100418.orig/debian/logwatch.sh +++ clang-2.7~svn20100418/debian/logwatch.sh @@ -0,0 +1,104 @@ +#! /bin/sh + +# script to trick the build daemons and output something, if there is +# still test/build activity + +# $1: primary file to watch. if there is activity on this file, we do nothing +# $2+: files to watch to look for activity despite no output in $1 +# if the files are modified or are newly created, then the message +# is printed on stdout. +# if nothing is modified, don't output anything (so the buildd timeout +# hits). + +pidfile=logwatch.pid +timeout=3600 +message='\nlogwatch still running\n' + +usage() +{ + echo >&2 "usage: `basename $0` [-p ] [-t ] [-m ]" + echo >&2 " [ ...]" + exit 1 +} + +while [ $# -gt 0 ]; do + case $1 in + -p) + pidfile=$2 + shift + shift + ;; + -t) + timeout=$2 + shift + shift + ;; + -m) + message="$2" + shift + shift + ;; + -*) + usage + ;; + *) + break + esac +done + +[ $# -gt 0 ] || usage + +logfile="$1" +shift +otherlogs="$@" + +cleanup() +{ + rm -f $pidfile + exit 0 +} + +#trap cleanup 0 1 3 15 + +echo $$ > $pidfile + +update() +{ + _logvar=$1 + _othervar=$2 + + # logfile may not exist yet + if [ -r $logfile ]; then + _logtail="`tail -10 $logfile | md5sum` $f" + else + _logtail="does not exist: $logfile" + fi + eval $_logvar="'$_logtail'" + + _othertails='' + for f in $otherlogs; do + if [ -r $f ]; then + _othertails="$_othertails `tail -10 $f | md5sum` $f" + else + _othertails="$_othertails does not exist: $f" + fi + done + eval $_othervar="'$_othertails'" +} + +update logtail othertails +while true; do + sleep $timeout + update newlogtail newothertails + if [ "$logtail" != "$newlogtail" ]; then + # there is still action in the primary logfile. do nothing. + logtail="$newlogtail" + elif [ "$othertails" != "$newothertails" ]; then + # there is still action in the other log files, so print the message + /bin/echo -e $message + othertails="$newothertails" + else + # nothing changed in the other log files. maybe a timeout ... + : + fi +done --- clang-2.7~svn20100418.orig/debian/changelog +++ clang-2.7~svn20100418/debian/changelog @@ -0,0 +1,69 @@ +clang (2.7~svn20100418-0ubuntu2) lucid; urgency=low + + * Set clang version to 1.1. + * Add clang compatibility link in /usr/lib/clang/1.1/bin. + * Don't build --with-oprofile. + * Build-depend on llvm-dev (>= 2.7~svn20100418-0ubuntu2). + + -- Matthias Klose Fri, 23 Apr 2010 00:58:04 +0200 + +clang (2.7~svn20100418-0ubuntu1) lucid; urgency=low + + * Snapshot, taken from the 2.7 release branch (20100418). + - Fixed regressions compared to 2.6: PR6660/6168, PR 6725. + + -- Matthias Klose Sun, 18 Apr 2010 22:42:43 +0200 + +clang (2.7~svn20100330-0ubuntu1) lucid; urgency=low + + * Snapshot, taken from the 2.7 release branch (20100330). + + -- Matthias Klose Tue, 30 Mar 2010 16:52:44 +0200 + +clang (2.7~svn20100317-0ubuntu1) lucid; urgency=low + + * clang 2.7 prerelease 1. + + -- Matthias Klose Sat, 20 Mar 2010 18:10:42 +0100 + +clang (2.7~svn20100308-0ubuntu4) lucid; urgency=low + + * Build-depend on oprofile. + + -- Matthias Klose Wed, 10 Mar 2010 23:05:12 +0100 + +clang (2.7~svn20100308-0ubuntu3) lucid; urgency=low + + * Build-depend on libffi-dev. + * Build-depend on tcl8.5 instead of tcl8.4. + + -- Matthias Klose Wed, 10 Mar 2010 16:25:34 +0100 + +clang (2.7~svn20100308-0ubuntu2) lucid; urgency=low + + * Fix build failure on ARM. + + -- Matthias Klose Wed, 10 Mar 2010 14:28:17 +0100 + +clang (2.7~svn20100308-0ubuntu1) lucid; urgency=low + + * Snapshot, taken from the 2.7 release branch (20100308). + * On ARM default to cortex-a8 for code generation. + * Configure with --disable-assertions. + + -- Matthias Klose Mon, 08 Mar 2010 17:33:18 +0100 + +clang (2.7~svn20100221-0ubuntu1) lucid; urgency=low + + * Snapshot, taken from the trunk (20100221). + * Merge packaging with llvm-2.7~svn20100221. + + -- Matthias Klose Sun, 21 Feb 2010 20:13:45 +0100 + +clang (2.6-1) unstable; urgency=low + + * Initial release, based on llvm-2.6 packaging. Closes: #459325. + * Use for example `clang -emit-llvm -c file.c && llvm-ld file.o'. + + -- Arthur Loiret Sun, 06 Dec 2009 18:33:53 +0000 + --- clang-2.7~svn20100418.orig/debian/control +++ clang-2.7~svn20100418/debian/control @@ -0,0 +1,53 @@ +Source: clang +Section: devel +Priority: optional +Maintainer: Ubuntu Core developers +XSBC-Original-Maintainer: LLVM Packaging Team +Uploaders: Arthur Loiret , Pierre Habouzit +Build-Depends: debhelper (>= 6.0.0), flex, bison, dejagnu, tcl8.5, expect,, oprofile, + autoconf, automake1.9, perl, libtool, doxygen, chrpath, texinfo, xz-utils, libffi-dev, + sharutils, autotools-dev (>= 20060702.1), llvm-dev (>= 2.7~svn20100418-0ubuntu2), llvm-dev (>= 2.7~svn20100418), llvm-source (>= 2.7~svn20100418) +Build-Conflicts: ocaml, ocaml-core, ocaml-nox +Standards-Version: 3.8.3 +Homepage: http://www.llvm.org/ + +Package: clang +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: llvm-dev +Description: Low-Level Virtual Machine (LLVM), C language family frontend + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + Clang project is a new C, C++, Objective C and Objective C++ front-end + for the LLVM compiler. Some of its goals include the following: + . + End-User Features: + . + * Fast compiles and low memory use + * Expressive diagnostics (examples) + * GCC compatibility + . + Utility and Applications: + . + * Modular library based architecture + * Support diverse clients (refactoring, static analysis, code + generation, etc) + * Allow tight integration with IDEs + * Use the LLVM 'BSD' License + . + Internal Design and Implementation: + . + * A real-world, production quality compiler + * A simple and hackable code base + * A single unified parser for C, Objective C, C++, and Objective C++ + * Conformance with C/C++/ObjC and their variants + --- clang-2.7~svn20100418.orig/debian/ubuntu-clang-arm-default.patch +++ clang-2.7~svn20100418/debian/ubuntu-clang-arm-default.patch @@ -0,0 +1,54 @@ +--- ./tools/clang/lib/Driver/Tools.cpp~ 2010-03-08 16:21:37.242335583 +0100 ++++ ./tools/clang/lib/Driver/Tools.cpp 2010-03-09 12:36:41.512335311 +0100 +@@ -202,6 +202,38 @@ + D.Diag(clang::diag::err_drv_I_dash_not_supported) << A->getAsString(Args); + } + ++/* We need a better way of testing for this, but for now, this is all ++ we can do. */ ++// This selects the minimum architecture level required. ++#define __ARM_ARCH__ 3 ++ ++#if defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__) ++# undef __ARM_ARCH__ ++# define __ARM_ARCH__ 4 ++#endif ++ ++#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) \ ++ || defined(__ARM_ARCH_5E__) || defined(__ARM_ARCH_5TE__) \ ++ || defined(__ARM_ARCH_5TEJ__) ++# undef __ARM_ARCH__ ++# define __ARM_ARCH__ 5 ++#endif ++ ++#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \ ++ || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \ ++ || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) \ ++ || defined(__ARM_ARCH_6M__) ++# undef __ARM_ARCH__ ++# define __ARM_ARCH__ 6 ++#endif ++ ++#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \ ++ || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \ ++ || defined(__ARM_ARCH_7EM__) ++# undef __ARM_ARCH__ ++# define __ARM_ARCH__ 7 ++#endif ++ + /// getARMTargetCPU - Get the (LLVM) name of the ARM cpu we are targetting. + // + // FIXME: tblgen this. +@@ -253,7 +285,12 @@ + } + + // Otherwise return the most base CPU LLVM supports. ++#if __ARM_ARCH__ >= 7 ++ // Ubuntu default for lucid ++ return "cortex-a8"; ++#else + return "arm7tdmi"; ++#endif + } + + /// getLLVMArchSuffixForARM - Get the LLVM arch name to use for a particular --- clang-2.7~svn20100418.orig/debian/patches/0001-Fix-paths.patch +++ clang-2.7~svn20100418/debian/patches/0001-Fix-paths.patch @@ -0,0 +1,11 @@ +--- ./tools/clang/lib/Driver/ToolChains.cpp~ 2010-03-08 16:21:37.242335583 +0100 ++++ ./tools/clang/lib/Driver/ToolChains.cpp 2010-04-22 19:03:58.694836423 +0200 +@@ -895,7 +895,7 @@ + + Linux::Linux(const HostInfo &Host, const llvm::Triple& Triple) + : Generic_GCC(Host, Triple) { +- getFilePaths().push_back(getDriver().Dir + "/../lib/clang/1.0/"); ++ getFilePaths().push_back(getDriver().Dir + "/../lib/clang/1.1/"); + getFilePaths().push_back("/lib/"); + getFilePaths().push_back("/usr/lib/"); + --- clang-2.7~svn20100418.orig/debian/packages.d/tools.mk +++ clang-2.7~svn20100418/debian/packages.d/tools.mk @@ -0,0 +1,33 @@ +builds := $(PKGSOURCE) +packages := $(PKGSOURCE) + +BUILDDEPS := llvm-dev (>= $(UVERSION)), llvm-source (>= $(UVERSION)) +PF := /usr + +patchdirs := /usr/src/llvm/patches + +confargs += --prefix=$(PF) + +MAKEOPTS += VERBOSE=1 \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" (Ubuntu $(VERSION))\"'" \ + ONLY_TOOLS="$(PKGSOURCE)" + +tarpath := $(firstword $(wildcard $(D)/llvm-$(UVERSION)*.tar.* \ + /usr/src/llvm/llvm-$(UVERSION)*.tar.*)) +tarball := $(notdir $(tarpath)) +srcdir := $(subst -dfsg,,$(subst .tar$(suffix $(tarball)),,$(tarball))) +# FIXME +srcdir := llvm-2.7 + +define $(PKGSOURCE)_extra_unpack + for tool in $(notdir $(wildcard $(D)/tools/*)) ; do \ + ln -sf $(D)/tools/$$tool $(D)/$(srcdir)/tools/$$tool ; \ + done +endef + +define clang_extra_binary + if test "x$*" = "xclang" ; then \ + dh_link -pclang /usr/bin/clang /usr/lib/clang/1.1/bin/clang; \ + fi +endef + --- clang-2.7~svn20100418.orig/debian/packages.d/llvm-snapshot.mk +++ clang-2.7~svn20100418/debian/packages.d/llvm-snapshot.mk @@ -0,0 +1,31 @@ +builds := llvm-core llvm-tools +packages := llvm-snapshot + +PF := /usr/lib/llvm-snapshot + +confargs += --prefix=$(PF) + +MAKEOPTS += VERBOSE=1 OPTIMIZE_OPTION=" -O2" \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" (Ubuntu $(VERSION))\"'" + +check_archs := amd64 i386 ia64 powerpc s390 sparc kfreebsd-i386 kfreebsd-amd64 +ifneq (,$(filter $(DEB_HOST_ARCH),$(check_archs))) + with_check := yes +endif + +define llvm-snapshot_extra_binary + if test "x$*" = "xllvm-snapshot" ; then \ + sed -r 's/^(my\s+\$$LLVM_SRC_ROOT\s+=\s+q)\{(.*)\}\;$$/\1\{$(subst /,\/,$(PF))\/build\}\;/' \ + -i $(D)/debian/$*/$(PF)/bin/llvm-config ; \ + sed -r 's/^(my\s+\$$LLVM_OBJ_ROOT\s+=\s+q)\{(.*)\}\;$$/\1\{$(subst /,\/,$(PF))\/build\}\;/' \ + -i $(D)/debian/$*/$(PF)/bin/llvm-config ; \ + sed -r 's/^(LLVM_SRC_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$*/$(PF)/build/Makefile.config ; \ + sed -r 's/^(LLVM_OBJ_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$*/$(PF)/build/Makefile.config ; \ + sed -r "s/^(ac_pwd\=)'.*'$$/\1'$(subst /,\/,$(PF))\/build'/" \ + -i $(D)/debian/$*/$(PF)/build/config.status ; \ + find $(D)/debian/$* -type f -name "LICENSE.TXT" | xargs rm -f ; \ + fi +endef + --- clang-2.7~svn20100418.orig/debian/packages.d/llvm.mk +++ clang-2.7~svn20100418/debian/packages.d/llvm.mk @@ -0,0 +1,55 @@ +builds := llvm-core llvm-tools +packages := llvm llvm-dev llvm-doc llvm-examples llvm-source + +ifneq (,$(findstring $(DEB_HOST_GNU_CPU),ia64 mips mipsel)) + $(error Unsupported processor) +endif + +confargs += --prefix=$(PF) + +MAKEOPTS += VERBOSE=1 \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" (Ubuntu $(VERSION))\"'" + +check_archs := amd64 armel i386 ia64 powerpc s390 sparc kfreebsd-i386 kfreebsd-amd64 +ifneq (,$(filter $(DEB_HOST_ARCH),$(check_archs))) + with_check := yes +endif + +define llvm_extra_binary + if test "x$*" = "xllvm" ; then \ + $(RM) $(D)/debian/$*.links ; \ + for i in $$(ls $(D)/debian/tmp/$(PF)/bin); do \ + echo "$(PF)/bin/$$i usr/bin/$$i" >> $(D)/debian/$*.links ; \ + done ; \ + sed -r 's/^(my\s+\$$LLVM_SRC_ROOT\s+=\s+q)\{(.*)\}\;$$/\1\{$(subst /,\/,$(PF))\/build\}\;/' \ + -i $(D)/debian/$*/$(PF)/bin/llvm-config ; \ + sed -r 's/^(my\s+\$$LLVM_OBJ_ROOT\s+=\s+q)\{(.*)\}\;$$/\1\{$(subst /,\/,$(PF))\/build\}\;/' \ + -i $(D)/debian/$*/$(PF)/bin/llvm-config ; \ + fi +endef + +define llvm-dev_extra_binary + if test "x$*" = "xllvm-dev" ; then\ + sed -r 's/^(LLVM_SRC_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$*/$(PF)/build/Makefile.config ; \ + sed -r 's/^(LLVM_OBJ_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$*/$(PF)/build/Makefile.config ; \ + sed -r "s/^(ac_pwd\=)'.*'$$/\1'$(subst /,\/,$(PF))\/build'/" \ + -i $(D)/debian/$*/$(PF)/build/config.status ; \ + chmod 644 $(D)/debian/$*/$(PF)/build/Makefile* ; \ + find $(D)/debian/$* -type f -name "LICENSE.TXT" | xargs rm -f ; \ + fi +endef + +define llvm-source_extra_binary + if test "x$*" = "xllvm-source" ; then \ + rm -rf $(D)/debian/$*/usr/src/llvm ; \ + mkdir -p $(D)/debian/$*/usr/src/llvm ; \ + cp -f ../$(PKGSOURCE)_$(UVERSION).orig.tar.gz \ + $(D)/debian/$*/usr/src/llvm/$(PKGSOURCE)-$(UVERSION).tar.gz ; \ + gunzip $(D)/debian/$*/usr/src/llvm/$(PKGSOURCE)-$(UVERSION).tar.gz ; \ + xz $(D)/debian/$*/usr/src/llvm/$(PKGSOURCE)-$(UVERSION).tar ; \ + cp -r $(D)/debian/patches $(D)/debian/$*/usr/src/llvm/ ; \ + fi +endef + --- clang-2.7~svn20100418.orig/debian/packages.d/llvm-gcc-4.2.mk +++ clang-2.7~svn20100418/debian/packages.d/llvm-gcc-4.2.mk @@ -0,0 +1,26 @@ +builds := llvm-gcc +packages := llvm-gcc + +BUILDDEPS := llvm-dev (>= $(UVERSION)) + +confargs += \ + --prefix=$(PF)/gcc-$(gcc_version) \ + --enable-languages=c,c++ --program-prefix=llvm- \ + --enable-llvm=/usr/lib/llvm \ + --enable-threads --disable-nls --disable-shared \ + --disable-multilib + +tarpath := $(firstword $(wildcard $(D)/llvm-gcc-$(gcc_version)-$(UVERSION)*.tar.* \ + /usr/src/llvm/llvm-gcc-$(gcc_version)-$(UVERSION)*.tar.*)) +tarball := $(notdir $(tarpath)) +srcdir := $(subst -dfsg,,$(subst .tar$(suffix $(tarball)),,$(tarball))) + +define llvm-gcc-4.2_extra_binary + if test "x$*" = "xllvm-gcc-4.2" ; then \ + $(RM) $(D)/debian/$*.links ; \ + for i in $$(ls $(D)/debian/tmp/$(PF)/gcc-$(gcc_version)/bin); do \ + echo "$(PF)/gcc-$(gcc_version)/bin/$$i usr/bin/$$i" >> $(D)/debian/$*.links ; \ + done ; \ + fi +endef + --- clang-2.7~svn20100418.orig/debian/rules.d/unpack.mk +++ clang-2.7~svn20100418/debian/rules.d/unpack.mk @@ -0,0 +1,44 @@ +unpack: $(unpack-stamp) +$(unpack-stamp): $(addprefix $(unpack-stamp)-,$(tarball)) + mkdir -p $(@D) + touch $@ + +$(unpack-stamp)-%: + -mkdir $(stampdir) 2>/dev/null + $(RM) -r $(srcdir) + case $(tarball) in \ + *.bz2) tar -x --bzip2 -f $(tarpath);; \ + *.gz) tar -x --gzip -f $(tarpath);; \ + *.lzma) lzcat $(tarpath) | tar -x -f -;; \ + *.xz) xzcat $(tarpath) | tar -x -f -;; \ + *) false;; \ + esac + if [ -d llvm-2.7~svn* ]; then \ + mv llvm-2.7~svn* llvm-2.7; \ + fi + $(call $(PKGSOURCE)_extra_unpack) + touch $@ + +patch: $(patch-stamp) +$(patch-stamp): $(unpack-stamp) + for patchdir in $(patchdirs) ; do \ + set -e ; test -e $(patch-stamp) || \ + (cd $(srcdir) ; for i in $$(ls -1 $$patchdir/*.patch || :) ; do \ + echo "Applying patch: $$i" && patch -p1 < $$i 2>&1 | sed -r 's/(.*)/\t\1/g' ; \ + done) ; \ + done + touch $@ + +unpatch: + test -d $(srcdir) || mkdir $(srcdir) + for patchdir in $(patchdirs) ; do \ + set -e ; ! test -e $(patch-stamp) || \ + (cd $(srcdir) ; for i in $$(ls -1r $$patchdir/*.patch || :) ; do \ + echo "Reverting patch: $$i" && patch -p1 -R < $$i 2>&1 | sed -r 's/(.*)/\t\1/g' ; \ + done) ; \ + done + $(RM) $(patch-stamp) + +clean: unpatch + +.PHONY: clean unpack patch unpatch --- clang-2.7~svn20100418.orig/debian/rules.d/binary.mk +++ clang-2.7~svn20100418/debian/rules.d/binary.mk @@ -0,0 +1,50 @@ +binary-indep binary-arch: $(build-stamp) $(install-stamp) +binary-arch: $(addprefix $(binary-stamp)-,$(packages_arch)) +binary-indep: $(addprefix $(binary-stamp)-,$(packages_indep)) +binary: binary-arch binary-indep + dh_install --list-missing 2>&1 + +debhelper-%: + $(foreach f,$(notdir $(wildcard $(D)/debian/debhelper.in/$*.*)),\ + sed -e "s;@PF@;$(PF);g" \ + -e "s;@GCC_VERSION@;$(GCC_VERSION);g" \ + -e "s;@LLVM_VERSION@;$(LLVM_VERSION);g" \ + $(D)/debian/debhelper.in/$f > $(D)/debian/$f &&) : + +clean: clean-debhelper +clean-debhelper: clean-common + $(RM) $(addprefix debian/,$(notdir $(wildcard $(D)/debian/debhelper.in/*))) + +.PHONY: clean clean-debhelper + +$(binary-stamp)-%: debhelper-% + @echo Building package: $* + dh_testdir + dh_testroot + dh_installchangelogs -p$* + dh_installdocs -p$* + dh_installexamples -p$* + dh_installman -p$* + dh_installmime -p$* + dh_install -p$* + for dir in lib libexec bin ; \ + do for i in $$(find $(D)/debian/$*/$(PF)/$$dir 2>/dev/null || echo -n) ; \ + do if objdump -p $$i 2>/dev/null | grep RPATH 2>&1 >/dev/null ; \ + then echo "Removing hardcoded path library from $$i" ; \ + chrpath -d $$i || true ; \ + fi ; \ + done ; \ + done + $(call $*_extra_binary) + dh_link -p$* + dh_strip -p$* + dh_compress -p$* + dh_fixperms -p$* + dh_installdeb -p$* + dh_shlibdeps -p$* + dh_gencontrol -p$* + dh_md5sums -p$* + dh_builddeb -p$* + touch $@ + +.PHONY: binary binary-arch binary-indep debhelper-% --- clang-2.7~svn20100418.orig/debian/rules.d/vars.mk +++ clang-2.7~svn20100418/debian/rules.d/vars.mk @@ -0,0 +1,51 @@ +DISTRIBUTION := $(shell dpkg-parsechangelog | grep ^Distribution | sed -e 's/^Distribution: //') +PKGSOURCE := $(shell dpkg-parsechangelog | grep ^Source | sed -e 's/^Source: //') +VERSION := $(shell dpkg-parsechangelog | grep ^Version | sed -e 's/^Version: //') +#UVERSION := $(shell echo $(VERSION) | cut -d'~' -f1 | cut -d'-' -f1) +UVERSION := $(shell echo $(VERSION) | cut -d'-' -f1) +PF := /usr/lib/llvm +D := $(CURDIR) + +$(foreach x,$(shell dpkg-architecture | sed -e 's/=/?=/'),$(eval $x)) + +stampdir := $(D)/debian/stamps +control-stamp := $(stampdir)/control-stamp +unpack-stamp := $(stampdir)/unpack-stamp +patch-stamp := $(stampdir)/patch-stamp +configure-stamp := $(stampdir)/configure-stamp +build-stamp := $(stampdir)/build-stamp +check-stamp := $(stampdir)/check-stamp +install-stamp := $(stampdir)/install-stamp +binary-stamp := $(stampdir)/binary-stamp + +packages_indep := $(strip $(shell dh_listpackages -i 2>/dev/null)) +packages_all := $(strip $(shell dh_listpackages -s 2>/dev/null)) +packages_arch := $(filter-out $(packages_indep),$(packages_all)) + +NJOBS := 1 +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +else + # disabled + ifeq (0,1) + NCPUS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1) + NJOBS := $(shell if test $(NCPUS) -gt 1; then echo `expr $(NCPUS) + 1`; \ + else echo $(NCPUS); fi) + endif +endif + +confargs := \ + --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --enable-pic \ + --enable-optimized \ + --enable-libffi \ + --enable-debug-symbols \ + --disable-assertions \ + --enable-shared + +#ifneq (,$(filter $(DEB_HOST_ARCH), armel)) +# confargs += --with-extra-options=-marm +#endif + +with_check := no + --- clang-2.7~svn20100418.orig/debian/rules.d/build.mk +++ clang-2.7~svn20100418/debian/rules.d/build.mk @@ -0,0 +1,64 @@ +configure: $(configure-stamp) +$(configure-stamp): $(addprefix $(configure-stamp)-,$(builds)) + touch $@ + +build: $(build-stamp) +$(build-stamp): $(addprefix $(build-stamp)-,$(builds)) + touch $@ + +do_check := $(if $(findstring yes,$(with_check)),$(check-stamp),) + +install: $(install-stamp) +$(install-stamp): $(do_check) $(addprefix $(install-stamp)-,$(builds)) + touch $@ + +check: $(check-stamp) +$(check-stamp): + chmod +x $(D)/debian/logwatch.sh + -debian/logwatch.sh -t 900 -p $(D)/debian/logwatch.pid \ + -m '\ntestsuite still running ...\n' \ + $(D)/debian/log-check \ + & + @echo BEGIN-testsuite + -$(MAKE) -C $(builddir) check 2>&1 | tee $(D)/debian/log-check + @echo END-testsuite + touch $@ + +clean: clean-common +clean-common: + dh_testdir + dh_testroot + dh_clean + $(RM) $(D)/debian/log-check $(D)/debian/logwatch.pid + $(RM) log-* missing + +.PHONY: configure build install check clean clean-common + +# GENERIC ------------------- +$(configure-stamp)-%: $(unpack-stamp) $(patch-stamp) + -mkdir -p $(builddir) 2>/dev/null + cd $(builddir) && \ + ../$(srcdir)/configure $(confargs) + $(call $*_extra_configure) + touch $@ +$(build-stamp)-%: $(configure-stamp)-% + $(MAKE) -j$(NJOBS) -C $(builddir) $(MAKEOPTS) + $(call $*_extra_build) + touch $@ +$(install-stamp)-%: $(build-stamp)-% + $(MAKE) -C $(builddir) $(MAKEOPTS) install DESTDIR=$(D)/debian/tmp + $(call $*_extra_install) + touch $@ + +# llvm ---------------------- +$(configure-stamp)-llvm-%: $(configure-stamp-llvm) + touch $@ +$(build-stamp)-llvm-core: $(configure-stamp)-llvm + $(MAKE) -j$(NJOBS) -C $(builddir) $(MAKEOPTS) ONLY_TOOLS="" + touch $@ +$(build-stamp)-llvm-tools: $(configure-stamp)-llvm + $(MAKE) -j$(NJOBS) -C $(builddir) $(MAKEOPTS) + touch $@ +$(install-stamp)-llvm-%: $(build-stamp)-llvm-% $(install-stamp)-llvm + touch $@ + --- clang-2.7~svn20100418.orig/debian/rules.d/control.mk +++ clang-2.7~svn20100418/debian/rules.d/control.mk @@ -0,0 +1,17 @@ +ifneq (,$(strip $(BUILDDEPS))) + BUILDDEPS:=, $(BUILDDEPS) +endif + +debian/control: + @echo Regenerating control file... + sed -e "s/@PKGSOURCE@/$(PKGSOURCE)/g" \ + -e "s/ *@BUILDDEPS@/$(BUILDDEPS)/g" \ + -e "s/@UVERSION@/$(UVERSION)/g" \ + -e "s/@GCC_VERSION@/$(gcc_version)/g" \ + $@.in/source $(addprefix $@.in/,$(packages)) > $@ + +control: debian/control + +clean: control + +.PHONY: clean control debian/control --- clang-2.7~svn20100418.orig/debian/control.in/llvm-source +++ clang-2.7~svn20100418/debian/control.in/llvm-source @@ -0,0 +1,17 @@ +Package: llvm-source +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Low-Level Virtual Machine (LLVM), source code + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + This package contains the llvm source code. + --- clang-2.7~svn20100418.orig/debian/control.in/llvm-snapshot +++ clang-2.7~svn20100418/debian/control.in/llvm-snapshot @@ -0,0 +1,18 @@ +Package: llvm-snapshot +Architecture: any +Suggests: llvm-doc +Depends: binfmt-support, ${shlibs:Depends}, ${misc:Depends} +Description: a SNAPSHOT of the Low-Level Virtual Machine (LLVM) + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + This package is a SNAPSHOT taken from the upstream SVN. + --- clang-2.7~svn20100418.orig/debian/control.in/llvm-gcc +++ clang-2.7~svn20100418/debian/control.in/llvm-gcc @@ -0,0 +1,22 @@ +Package: llvm-gcc-@GCC_VERSION@ +Architecture: i386 amd64 +Depends: llvm-dev (>= @UVERSION@), llvm (>= @UVERSION@), ${shlibs:Depends}, ${misc:Depends} +Provides: llvm-gcc, llvm-cfe +Suggests: gcc-@GCC_VERSION@-doc +Description: Low-Level Virtual Machine (LLVM), C/C++ front-end + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + This is only a utility package that contains the C/C++ front-end + used by the compiler, and was created in order to reduce the overall + size of the compiler package itself. Please install the 'llvm' + package to install the actual compiler. + --- clang-2.7~svn20100418.orig/debian/control.in/llvm-doc +++ clang-2.7~svn20100418/debian/control.in/llvm-doc @@ -0,0 +1,18 @@ +Package: llvm-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Description: Low-Level Virtual Machine (LLVM), documentation + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + This package contains all documentation (extensive). + --- clang-2.7~svn20100418.orig/debian/control.in/llvm +++ clang-2.7~svn20100418/debian/control.in/llvm @@ -0,0 +1,28 @@ +Package: llvm +Architecture: any +Suggests: llvm-doc +Depends: binfmt-support, ${shlibs:Depends}, ${misc:Depends} +Recommends: llvm-dev +Description: Low-Level Virtual Machine (LLVM) + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + The strengths of the LLVM infrastructure are its extremely + simple design (which makes it easy to understand and use), + source-language independence, powerful mid-level optimizer, automated + compiler debugging support, extensibility, and its stability and + reliability. LLVM is currently being used to host a wide variety of + academic research projects and commercial projects. LLVM includes C + and C++ front-ends (based on GCC 4.0.1), a front-end for a Forth-like + language (Stacker), a young scheme front-end, and Java support is + in development. LLVM can generate code for X86, SparcV9, PowerPC, + or it can emit C code. + --- clang-2.7~svn20100418.orig/debian/control.in/llvm-examples +++ clang-2.7~svn20100418/debian/control.in/llvm-examples @@ -0,0 +1,19 @@ +Package: llvm-examples +Section: doc +Architecture: all +Depends: ${misc:Depends}, llvm-dev (>= ${source:Version}), llvm-dev (<< ${source:Version}+c~) +Description: Low-Level Virtual Machine (LLVM), examples + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + This package contains examples for using LLVM, both in developing + extensions to LLVM and in using it to compile code. + --- clang-2.7~svn20100418.orig/debian/control.in/source +++ clang-2.7~svn20100418/debian/control.in/source @@ -0,0 +1,13 @@ +Source: @PKGSOURCE@ +Section: devel +Priority: optional +Maintainer: Ubuntu Core developers +XSBC-Original-Maintainer: LLVM Packaging Team +Uploaders: Arthur Loiret , Pierre Habouzit +Build-Depends: debhelper (>= 6.0.0), flex, bison, dejagnu, tcl8.5, expect,, oprofile, + autoconf, automake1.9, perl, libtool, doxygen, chrpath, texinfo, xz-utils, libffi-dev, + sharutils, autotools-dev (>= 20060702.1), llvm-dev (>= 2.7~svn20100418-0ubuntu2) @BUILDDEPS@ +Build-Conflicts: ocaml, ocaml-core, ocaml-nox +Standards-Version: 3.8.3 +Homepage: http://www.llvm.org/ + --- clang-2.7~svn20100418.orig/debian/control.in/llvm-dev +++ clang-2.7~svn20100418/debian/control.in/llvm-dev @@ -0,0 +1,21 @@ +Package: llvm-dev +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, llvm (>= ${binary:Version}) +Provides: llvm-libs +Conflicts: llvm-libs +Replaces: llvm-libs, llvm (<< 2.2-3) +Description: Low-Level Virtual Machine (LLVM), libraries and headers + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + This package provides the libraries and headers to develop applications + using llvm. + --- clang-2.7~svn20100418.orig/debian/control.in/clang +++ clang-2.7~svn20100418/debian/control.in/clang @@ -0,0 +1,40 @@ +Package: clang +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: llvm-dev +Description: Low-Level Virtual Machine (LLVM), C language family frontend + The Low-Level Virtual Machine (LLVM) is a collection of libraries and + tools that make it easy to build compilers, optimizers, Just-In-Time + code generators, and many other compiler-related programs. LLVM + uses a single, language-independent virtual instruction set both + as an offline code representation (to communicate code between + compiler phases and to run-time systems) and as the compiler internal + representation (to analyze and transform programs). This persistent + code representation allows a common set of sophisticated compiler + techniques to be applied at compile-time, link-time, install-time, + run-time, or "idle-time" (between program runs). + . + Clang project is a new C, C++, Objective C and Objective C++ front-end + for the LLVM compiler. Some of its goals include the following: + . + End-User Features: + . + * Fast compiles and low memory use + * Expressive diagnostics (examples) + * GCC compatibility + . + Utility and Applications: + . + * Modular library based architecture + * Support diverse clients (refactoring, static analysis, code + generation, etc) + * Allow tight integration with IDEs + * Use the LLVM 'BSD' License + . + Internal Design and Implementation: + . + * A real-world, production quality compiler + * A simple and hackable code base + * A single unified parser for C, Objective C, C++, and Objective C++ + * Conformance with C/C++/ObjC and their variants + --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-doc.dirs +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-doc.dirs @@ -0,0 +1 @@ +usr/share/doc/llvm-doc --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-examples.dirs +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-examples.dirs @@ -0,0 +1 @@ +usr/share/doc/llvm-examples --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-snapshot.install +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-snapshot.install @@ -0,0 +1,13 @@ +debian/tmp/@PF@/bin/* @PF@/bin/ +debian/tmp/@PF@/lib/* @PF@/lib/ +debian/tmp/@PF@/include/* @PF@/include/ + +debian/tmp/@PF@/docs/llvm/html usr/share/doc/llvm-snapshot/ +debian/tmp/@PF@/docs/llvm/ps usr/share/doc/llvm-snapshot/ + +build-llvm/Makefile.common @PF@/build/ +build-llvm/Makefile.config @PF@/build/ +build-llvm/config.status @PF@/build/ +Makefile.rules @PF@/build/ +configure @PF@/build/ +autoconf/ @PF@/build/ --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-doc.install +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-doc.install @@ -0,0 +1,2 @@ +debian/tmp/@PF@/docs/llvm/html usr/share/doc/llvm-doc/ +debian/tmp/@PF@/docs/llvm/ps usr/share/doc/llvm-doc/ --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm.install +++ clang-2.7~svn20100418/debian/debhelper.in/llvm.install @@ -0,0 +1,3 @@ +debian/tmp/@PF@/bin/* @PF@/bin/ +debian/tmp/@PF@/share/man/man1/* usr/share/man/man1/ +debian/llvm.binfmt usr/share/binfmts/ --- clang-2.7~svn20100418.orig/debian/debhelper.in/clang.links +++ clang-2.7~svn20100418/debian/debhelper.in/clang.links @@ -0,0 +1,2 @@ +usr/share/man/man1/clang.1.gz usr/share/man/man1/llvm-clang.1.gz +@PF@/bin/clang @PF@/bin/llvm-clang --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-examples.examples +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-examples.examples @@ -0,0 +1 @@ +examples/* --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm.postinst +++ clang-2.7~svn20100418/debian/debhelper.in/llvm.postinst @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if test "$1" = "configure"; then + if test -x /usr/sbin/update-binfmts; then + update-binfmts --import llvm.binfmt || true + fi +fi + +#DEBHELPER# --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-dev.dirs +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-dev.dirs @@ -0,0 +1,2 @@ +@PF@/lib +@PF@/build --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm.prerm +++ clang-2.7~svn20100418/debian/debhelper.in/llvm.prerm @@ -0,0 +1,11 @@ +#!/bin/sh -e + +if test "$1" = "remove"; then + if test -x /usr/sbin/update-binfmts; then + update-binfmts --package llvm \ + --remove llvm /usr/bin/lli || true + fi +fi + +#DEBHELPER# + --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm.links +++ clang-2.7~svn20100418/debian/debhelper.in/llvm.links @@ -0,0 +1 @@ +# AUTOGENERATED in debian/rules.d/build.mk. --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm.dirs +++ clang-2.7~svn20100418/debian/debhelper.in/llvm.dirs @@ -0,0 +1,6 @@ +@PF@/bin +usr/bin +usr/include +usr/share/man/man1 +etc/llvm +usr/share/binfmts --- clang-2.7~svn20100418.orig/debian/debhelper.in/clang.install +++ clang-2.7~svn20100418/debian/debhelper.in/clang.install @@ -0,0 +1,3 @@ +debian/tmp/@PF@/lib/clang @PF@/lib/ +debian/tmp/@PF@/bin/clang @PF@/bin/ +debian/tmp/@PF@/share/man/man1/clang.1 usr/share/man/man1/ --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-dev.install +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-dev.install @@ -0,0 +1,9 @@ +debian/tmp/@PF@/lib/* @PF@/lib/ +debian/tmp/@PF@/include/* usr/include/ + +build-llvm/Makefile.common @PF@/build/ +build-llvm/Makefile.config @PF@/build/ +build-llvm/config.status @PF@/build/ +Makefile.rules @PF@/build/ +configure @PF@/build/ +autoconf/ @PF@/build/ --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-examples.links +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-examples.links @@ -0,0 +1,3 @@ +@PF@/build/Makefile.common usr/share/doc/llvm-examples/Makefile.common +@PF@/build/Makefile.config usr/share/doc/llvm-examples/Makefile.config +@PF@/build/Makefile.rules usr/share/doc/llvm-examples/Makefile.rules --- clang-2.7~svn20100418.orig/debian/debhelper.in/llvm-gcc-4.2.install +++ clang-2.7~svn20100418/debian/debhelper.in/llvm-gcc-4.2.install @@ -0,0 +1 @@ +debian/tmp/@PF@