--- llvm-gcc-4.2-2.7.orig/debian/llvm-gcc-4.2.links +++ llvm-gcc-4.2-2.7/debian/llvm-gcc-4.2.links @@ -0,0 +1,12 @@ +/usr/lib/llvm/gcc-4.2/bin/i486-linux-gnu-cpp-4.2.1 usr/bin/i486-linux-gnu-cpp-4.2.1 +/usr/lib/llvm/gcc-4.2/bin/i486-linux-gnu-gcc-4.2.1 usr/bin/i486-linux-gnu-gcc-4.2.1 +/usr/lib/llvm/gcc-4.2/bin/i486-linux-gnu-llvm-c++ usr/bin/i486-linux-gnu-llvm-c++ +/usr/lib/llvm/gcc-4.2/bin/i486-linux-gnu-llvm-cpp usr/bin/i486-linux-gnu-llvm-cpp +/usr/lib/llvm/gcc-4.2/bin/i486-linux-gnu-llvm-g++ usr/bin/i486-linux-gnu-llvm-g++ +/usr/lib/llvm/gcc-4.2/bin/i486-linux-gnu-llvm-gcc usr/bin/i486-linux-gnu-llvm-gcc +/usr/lib/llvm/gcc-4.2/bin/llvm-c++ usr/bin/llvm-c++ +/usr/lib/llvm/gcc-4.2/bin/llvm-cpp usr/bin/llvm-cpp +/usr/lib/llvm/gcc-4.2/bin/llvm-g++ usr/bin/llvm-g++ +/usr/lib/llvm/gcc-4.2/bin/llvm-gcc usr/bin/llvm-gcc +/usr/lib/llvm/gcc-4.2/bin/llvm-gccbug usr/bin/llvm-gccbug +/usr/lib/llvm/gcc-4.2/bin/llvm-gcov usr/bin/llvm-gcov --- llvm-gcc-4.2-2.7.orig/debian/rules +++ llvm-gcc-4.2-2.7/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +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 --- llvm-gcc-4.2-2.7.orig/debian/copyright +++ llvm-gcc-4.2-2.7/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 + --- llvm-gcc-4.2-2.7.orig/debian/compat +++ llvm-gcc-4.2-2.7/debian/compat @@ -0,0 +1 @@ +6 --- llvm-gcc-4.2-2.7.orig/debian/llvm.binfmt +++ llvm-gcc-4.2-2.7/debian/llvm.binfmt @@ -0,0 +1,3 @@ +package llvm +interpreter /usr/bin/lli +magic llvc --- llvm-gcc-4.2-2.7.orig/debian/logwatch.sh +++ llvm-gcc-4.2-2.7/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 --- llvm-gcc-4.2-2.7.orig/debian/changelog +++ llvm-gcc-4.2-2.7/debian/changelog @@ -0,0 +1,71 @@ +llvm-gcc-4.2 (2.7-0ubuntu1) lucid; urgency=low + + * Final 2.7 release. LP: #526072. + + -- Matthias Klose Wed, 28 Apr 2010 13:57:12 +0200 + +llvm-gcc-4.2 (2.7~svn20100418-0ubuntu1) lucid; urgency=low + + * Snapshot, taken from the 2.7 release branch (20100418). + - Fix regressions compared to 2.6: PR6778, PR6632. + + -- Matthias Klose Sun, 18 Apr 2010 23:13:16 +0200 + +llvm-gcc-4.2 (2.7~svn20100317-0ubuntu1) lucid; urgency=low + + * llvm-gcc-4.2 2.7 prerelease 1. + + -- Matthias Klose Sat, 20 Mar 2010 18:25:18 +0100 + +llvm-gcc-4.2 (2.7~svn20100308-0ubuntu2) lucid; urgency=low + + * Build-depend on oprofile, libffi-dev. + + -- Matthias Klose Wed, 10 Mar 2010 23:12:46 +0100 + +llvm-gcc-4.2 (2.7~svn20100308-0ubuntu1) lucid; urgency=low + + * Snapshot, taken from the 2.7 release branch (20100308). + * Don't remove GFDL licensed files from the sources. + * Install the man pages. + + -- Matthias Klose Tue, 09 Mar 2010 14:08:28 +0100 + +llvm-gcc-4.2 (2.6-3) unstable; urgency=low + + * Build on i386/amd64 only. + + -- Arthur Loiret Sun, 06 Dec 2009 18:32:46 +0000 + +llvm-gcc-4.2 (2.6-2) unstable; urgency=low + + * debian/packages.d/llvm-gcc-4.2.mk: Define llvm-gcc-4.2_extra_binary, + Adds symlinks for binaries. + + -- Arthur Loiret Mon, 16 Nov 2009 21:33:33 +0000 + +llvm-gcc-4.2 (2.6-1) unstable; urgency=low + + * New upstream release. + * Merge llvm build infrastructure and patches. + + -- Arthur Loiret Mon, 16 Nov 2009 19:36:06 +0000 + +llvm-gcc-4.2 (2.5-1) unstable; urgency=low + + * New upstream release. + * Merge llvm build infrastructure and patches. + + -- Arthur Loiret Fri, 06 Mar 2009 19:19:11 +0000 + +llvm-gcc-4.2 (2.2-1) unstable; urgency=low + + [ Arthur Loiret ] + * Initial release. Closes: #468337, #468340 + * Remove non-DFSG files from orig tarball. Closes: #392955 + + [ Pierre Habouzit ] + * Add patches/0002-prune-GFDL-related-targets.patch to remove the Makefile + targets affected by the .texi's removal. + + -- Pierre Habouzit Sun, 20 Apr 2008 23:36:40 +0200 --- llvm-gcc-4.2-2.7.orig/debian/control +++ llvm-gcc-4.2-2.7/debian/control @@ -0,0 +1,34 @@ +Source: llvm-gcc-4.2 +Section: devel +Priority: optional +Maintainer: LLVM Packaging Team +Uploaders: Arthur Loiret , Pierre Habouzit +Build-Depends: debhelper (>= 6.0.0), flex, bison, dejagnu, tcl8.5, expect, oprofile, libffi-dev, + autoconf, automake1.9, perl, libtool, doxygen, chrpath, texinfo, xz-utils, + sharutils, autotools-dev (>= 20060702.1), llvm-dev (>= 2.7) +Build-Conflicts: ocaml, ocaml-core, ocaml-nox +Standards-Version: 3.8.3 +Homepage: http://www.llvm.org/ + +Package: llvm-gcc-4.2 +Architecture: i386 amd64 +Depends: llvm-dev (>= 2.7), llvm (>= 2.7), ${shlibs:Depends}, ${misc:Depends} +Provides: llvm-gcc, llvm-cfe +Suggests: gcc-4.2-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. + --- llvm-gcc-4.2-2.7.orig/debian/0002-prune-GFDL-related-targets.patch +++ llvm-gcc-4.2-2.7/debian/0002-prune-GFDL-related-targets.patch @@ -0,0 +1,45 @@ +--- + Makefile.in | 18 +++--------------- + 1 file changed, 3 insertions(+), 15 deletions(-) + +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -3850,7 +3850,7 @@ MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7 + + generated-manpages: man + +-man: $(MANFILES) lang.man @GENINSRC@ srcman lang.srcman ++man: @GENINSRC@ + + srcman: $(MANFILES) + -cp -p $^ $(srcdir)/doc +@@ -4147,13 +4147,7 @@ endif + # Install the info files. + # $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir + # to do the install. +-install-info:: doc installdirs \ +- $(DESTDIR)$(infodir)/cpp.info \ +- $(DESTDIR)$(infodir)/gcc.info \ +- $(DESTDIR)$(infodir)/cppinternals.info \ +- $(DESTDIR)$(infodir)/gccinstall.info \ +- $(DESTDIR)$(infodir)/gccint.info \ +- lang.install-info ++install-info:: doc installdirs + + $(DESTDIR)$(infodir)/%.info: doc/%.info installdirs + rm -f $@ +@@ -4190,13 +4184,7 @@ install-html: $(HTMLS_BUILD) + done + + # Install the man pages. +-install-man: lang.install-man \ +- $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \ +- $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \ +- $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \ +- $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \ +- $(DESTDIR)$(man7dir)/gfdl$(man7ext) \ +- $(DESTDIR)$(man7dir)/gpl$(man7ext) ++install-man: + + $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs + -rm -f $@ --- llvm-gcc-4.2-2.7.orig/debian/patches/0001-Use-Debian-paths.patch +++ llvm-gcc-4.2-2.7/debian/patches/0001-Use-Debian-paths.patch @@ -0,0 +1,36 @@ +--- + Makefile.in | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +--- ./gcc/Makefile.in.orig 2010-03-09 14:15:31.631089150 +0100 ++++ ./gcc/Makefile.in 2010-03-09 14:17:34.113589474 +0100 +@@ -955,6 +955,9 @@ + endif + + INCLUDES += -I$(LLVMSRCDIR)/include ++ ++# On Debian, headers are installed in /usr/include/llvm ++INCLUDES += -I/usr/include -I/usr/include/llvm -I/usr/include/llvm-c + endif + # LLVM LOCAL end + .c.o: +@@ -2949,8 +2952,8 @@ + # LLVM LOCAL begin + llvm-main.o : llvm-main.cpp $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) toplev.h + llvm-symbol-stubs.o : llvm-symbol-stubs.cpp +-LLVM_HEADERS := $(wildcard $(LLVMSRCDIR)/include/llvm/*) \ +- $(wildcard $(LLVMSRCDIR)/include/llvm/*/*) ++LLVM_HEADERS := $(wildcard /usr/include/llvm/*) \ ++ $(wildcard /usr/include/llvm/*/*) + + ALL_HEADERS := $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ + llvm.h llvm-internal.h llvm-file-ostream.h llvm-abi.h llvm-debug.h \ +@@ -2959,7 +2962,7 @@ + llvm-abi-linux-ppc.o : llvm-abi-linux-ppc.cpp $(ALL_HEADERS) + llvm-abi-default.o : llvm-abi-default.cpp $(ALL_HEADERS) + llvm-convert.o : llvm-convert.cpp $(ALL_HEADERS) \ +- $(LLVMOBJDIR)/include/llvm/Intrinsics.gen ++ /usr/include/llvm/Intrinsics.gen + llvm-types.o : llvm-types.cpp $(ALL_HEADERS) + llvm-debug.o : llvm-debug.cpp $(ALL_HEADERS) + # LLVM LOCAL end --- llvm-gcc-4.2-2.7.orig/debian/packages.d/tools.mk +++ llvm-gcc-4.2-2.7/debian/packages.d/tools.mk @@ -0,0 +1,25 @@ +builds := $(PKGSOURCE) +packages := $(PKGSOURCE) + +BUILDDEPS := llvm-dev (>= $(UVERSION)), llvm-source (>= $(UVERSION)) +PF := /usr + +patchdirs := /usr/src/llvm/patches + +confargs += --prefix=$(PF) + +MAKEOPTS += VERBOSE=1 OPTIMIZE_OPTION=" -O2" \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" (Debian $(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))) + +define $(PKGSOURCE)_extra_unpack + for tool in $(notdir $(wildcard $(D)/tools/*)) ; do \ + ln -sf $(D)/tools/$$tool $(D)/$(srcdir)/tools/$$tool ; \ + done +endef + --- llvm-gcc-4.2-2.7.orig/debian/packages.d/llvm-snapshot.mk +++ llvm-gcc-4.2-2.7/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='\" (Debian $(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 + --- llvm-gcc-4.2-2.7.orig/debian/packages.d/llvm.mk +++ llvm-gcc-4.2-2.7/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 OPTIMIZE_OPTION=" -O2" \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" (Debian $(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_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 ; \ + lzma $(D)/debian/$*/usr/src/llvm/$(PKGSOURCE)-$(UVERSION).tar ; \ + cp -r $(D)/debian/patches $(D)/debian/$*/usr/src/llvm/ ; \ + fi +endef + --- llvm-gcc-4.2-2.7.orig/debian/packages.d/llvm-gcc-4.2.mk +++ llvm-gcc-4.2-2.7/debian/packages.d/llvm-gcc-4.2.mk @@ -0,0 +1,30 @@ +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))) +#FIXME: +tarpath := $(firstword $(wildcard $(D)/llvm-gcc-$(gcc_version)-*.tar.*)) +tarball := $(notdir $(tarpath)) +srcdir := llvm-gcc-4.2-2.7.source + +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 + --- llvm-gcc-4.2-2.7.orig/debian/rules.d/unpack.mk +++ llvm-gcc-4.2-2.7/debian/rules.d/unpack.mk @@ -0,0 +1,41 @@ +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 + $(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 --- llvm-gcc-4.2-2.7.orig/debian/rules.d/binary.mk +++ llvm-gcc-4.2-2.7/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-% --- llvm-gcc-4.2-2.7.orig/debian/rules.d/vars.mk +++ llvm-gcc-4.2-2.7/debian/rules.d/vars.mk @@ -0,0 +1,48 @@ +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 \ + --with-oprofile \ + --enable-shared + +with_check := no + --- llvm-gcc-4.2-2.7.orig/debian/rules.d/build.mk +++ llvm-gcc-4.2-2.7/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 $@ + --- llvm-gcc-4.2-2.7.orig/debian/rules.d/control.mk +++ llvm-gcc-4.2-2.7/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 --- llvm-gcc-4.2-2.7.orig/debian/control.in/llvm-source +++ llvm-gcc-4.2-2.7/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. + --- llvm-gcc-4.2-2.7.orig/debian/control.in/llvm-snapshot +++ llvm-gcc-4.2-2.7/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. + --- llvm-gcc-4.2-2.7.orig/debian/control.in/llvm-gcc +++ llvm-gcc-4.2-2.7/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. + --- llvm-gcc-4.2-2.7.orig/debian/control.in/llvm-doc +++ llvm-gcc-4.2-2.7/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). + --- llvm-gcc-4.2-2.7.orig/debian/control.in/llvm +++ llvm-gcc-4.2-2.7/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. + --- llvm-gcc-4.2-2.7.orig/debian/control.in/llvm-examples +++ llvm-gcc-4.2-2.7/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. + --- llvm-gcc-4.2-2.7.orig/debian/control.in/source +++ llvm-gcc-4.2-2.7/debian/control.in/source @@ -0,0 +1,12 @@ +Source: @PKGSOURCE@ +Section: devel +Priority: optional +Maintainer: LLVM Packaging Team +Uploaders: Arthur Loiret , Pierre Habouzit +Build-Depends: debhelper (>= 6.0.0), flex, bison, dejagnu, tcl8.5, expect, oprofile, libffi-dev, + autoconf, automake1.9, perl, libtool, doxygen, chrpath, texinfo, xz-utils, + sharutils, autotools-dev (>= 20060702.1) @BUILDDEPS@ +Build-Conflicts: ocaml, ocaml-core, ocaml-nox +Standards-Version: 3.8.3 +Homepage: http://www.llvm.org/ + --- llvm-gcc-4.2-2.7.orig/debian/control.in/llvm-dev +++ llvm-gcc-4.2-2.7/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. + --- llvm-gcc-4.2-2.7.orig/debian/control.in/clang +++ llvm-gcc-4.2-2.7/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 + --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-doc.dirs +++ llvm-gcc-4.2-2.7/debian/debhelper.in/llvm-doc.dirs @@ -0,0 +1 @@ +usr/share/doc/llvm-doc --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-examples.dirs +++ llvm-gcc-4.2-2.7/debian/debhelper.in/llvm-examples.dirs @@ -0,0 +1 @@ +usr/share/doc/llvm-examples --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-snapshot.install +++ llvm-gcc-4.2-2.7/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/ --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-doc.install +++ llvm-gcc-4.2-2.7/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/ --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm.install +++ llvm-gcc-4.2-2.7/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/ --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/clang.links +++ llvm-gcc-4.2-2.7/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 --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-examples.examples +++ llvm-gcc-4.2-2.7/debian/debhelper.in/llvm-examples.examples @@ -0,0 +1 @@ +examples/* --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm.postinst +++ llvm-gcc-4.2-2.7/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# --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-dev.dirs +++ llvm-gcc-4.2-2.7/debian/debhelper.in/llvm-dev.dirs @@ -0,0 +1,2 @@ +@PF@/lib +@PF@/build --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm.prerm +++ llvm-gcc-4.2-2.7/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# + --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm.links +++ llvm-gcc-4.2-2.7/debian/debhelper.in/llvm.links @@ -0,0 +1 @@ +# AUTOGENERATED in debian/rules.d/build.mk. --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm.dirs +++ llvm-gcc-4.2-2.7/debian/debhelper.in/llvm.dirs @@ -0,0 +1,6 @@ +@PF@/bin +usr/bin +usr/include +usr/share/man/man1 +etc/llvm +usr/share/binfmts --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/clang.install +++ llvm-gcc-4.2-2.7/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/ --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-dev.install +++ llvm-gcc-4.2-2.7/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/ --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-examples.links +++ llvm-gcc-4.2-2.7/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 --- llvm-gcc-4.2-2.7.orig/debian/debhelper.in/llvm-gcc-4.2.install +++ llvm-gcc-4.2-2.7/debian/debhelper.in/llvm-gcc-4.2.install @@ -0,0 +1 @@ +debian/tmp/@PF@