--- clang-2.8.orig/debian/rules +++ clang-2.8/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +include debian/rules.d/vars.mk + +ifneq (,$(findstring llvm,$(PKGNAME))) + ifneq (,$(findstring llvm-gcc-,$(PKGNAME))) + gcc_version := $(shell echo $(PKGNAME) | cut -d'-' -f3) + endif + include debian/packages.d/$(PKGNAME).mk +else + tools := clang #vmkit + include debian/packages.d/tools.mk +endif + +patchdirs += $(D)/debian/patches +$(foreach build,$(builds),$(eval \ + $(build)_builddir ?= build-$(build))) +ifeq (,$(strip $(tarball))) + srcdir := . +else + ifeq (,$(strip $(srcdir))) + $(error undefined srcdir) + endif +endif + +define pkgname + $(shell cat $(D)/debian/control.in/$1 | awk '/^Package: / {print $$2}' | \ + sed -e 's/@UVERSION@/$(UVERSION)/;s/@GCC_VERSION@/$(gcc_version)/;s/@PKG_VERSION@/$(pkg_version)/') +endef + +define buildof + $(foreach build,$(builds),$(if $(filter $1,$($(build)_packages)),$(build),)) +endef + +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) $(foreach build,$(builds),$($(build)_builddir)) +ifneq (,$(strip $(tarball))) + $(RM) -r $(srcdir) +endif + $(RM) -r $(D)/debian/ccache + find utils -name '*.py[co]' | xargs rm -f + +.PHONY: clean --- clang-2.8.orig/debian/copyright +++ clang-2.8/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.8.orig/debian/compat +++ clang-2.8/debian/compat @@ -0,0 +1 @@ +6 --- clang-2.8.orig/debian/llvm.binfmt +++ clang-2.8/debian/llvm.binfmt @@ -0,0 +1,3 @@ +package llvm +interpreter /usr/bin/lli-2.8 +magic llvc --- clang-2.8.orig/debian/logwatch.sh +++ clang-2.8/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.8.orig/debian/changelog +++ clang-2.8/debian/changelog @@ -0,0 +1,108 @@ +clang (2.8-0ubuntu1) maverick; urgency=low + + * LLVM-2.8 final release. LP: #632727. + + -- Matthias Klose Wed, 06 Oct 2010 13:53:54 +0200 + +clang (2.8~20100921-0ubuntu1) maverick; urgency=low + + * Snapshot, taken from the 2.8 release branch (20100921). + * Require the 2.8~20100921 llvm sources as a build dependency. + + -- Matthias Klose Tue, 21 Sep 2010 15:13:58 +0200 + +clang (2.8~20100911-0ubuntu1) maverick; urgency=low + + * Snapshot, taken from the 2.8 release branch (20100911). + + -- Matthias Klose Mon, 13 Sep 2010 10:04:24 +0200 + +clang (2.8~20100907-0ubuntu1) maverick; urgency=low + + * Snapshot, taken from the 2.8 release branch (20100907). + + -- Matthias Klose Tue, 07 Sep 2010 14:58:05 +0200 + +clang (2.7-0ubuntu2) maverick; urgency=low + + * Build-depend on the versioned llvm-2.7 packages. + + -- Matthias Klose Tue, 01 Jun 2010 17:09:39 +0200 + +clang (2.7-0ubuntu1) lucid; urgency=low + + * Final 2.7 release. LP: #526072. + * debian/debhelper.in/clang.install: Ship scan-build and ccc-analyzer. + LP: #549680. + + -- Matthias Klose Wed, 28 Apr 2010 13:35:09 +0200 + +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.8.orig/debian/control +++ clang-2.8/debian/control @@ -0,0 +1,54 @@ +Source: clang +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, + autoconf, automake1.9, perl, libtool, doxygen, chrpath, texinfo, + sharutils, autotools-dev (>= 20060702.1), libffi-dev (>= 3.0.9), + lsb-release, patchutils, diffstat, xz-utils, llvm-2.8-dev (>= 2.8), llvm-2.8-source (>= 2.8) +Build-Conflicts: oprofile, ocaml, ocaml-nox +Standards-Version: 3.9.1 +Homepage: http://www.llvm.org/ +Vcs-Bzr: https://bazaar.launchpad.net/~pkg-llvm/+junk/llvm-2.8-ubuntu + +Package: clang +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: llvm-2.8-dev, python +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.8.orig/debian/patches/dummy.patch +++ clang-2.8/debian/patches/dummy.patch @@ -0,0 +1,14 @@ +--- + README.txt | 1 + + 1 file changed, 1 insertion(+) + +--- a/tools/clang/README.txt.orig 2010-09-07 13:23:58.719692386 +0000 ++++ b/tools/clang/README.txt 2010-09-07 13:24:16.799692477 +0000 +@@ -2,6 +2,7 @@ + // C Language Family Front-end + //===----------------------------------------------------------------------===// + ++ + Welcome to Clang. This is a compiler front-end for the C family of languages + (C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM + compiler infrastructure project. --- clang-2.8.orig/debian/packages.d/tools.mk +++ clang-2.8/debian/packages.d/tools.mk @@ -0,0 +1,45 @@ +builds := $(PKGNAME) + +ifeq (,$(filter $(PKGNAME),$(tools))) + $(error unsupported tool) +endif + +BUILDDEPS := \ + llvm-$(UVERSION)-dev (>= $(dev_version)), llvm-$(UVERSION)-source (>= $(dev_version)) +BUILDCONFLICTS := ocaml, ocaml-nox + +PF := /usr + +patchdirs := /usr/src/llvm-$(UVERSION)/patches + +export CCACHE_READONLY=1 + +$(PKGNAME)_packages := $(PKGNAME) + +$(PKGNAME)_confargs := $(confargs) \ + --prefix=$(PF) --disable-assertions \ + --enable-shared \ + --enable-optimized --with-optimize-option=' $(opt_flags)' --enable-pic --enable-libffi + +$(PKGNAME)_MAKEOPTS := $(MAKEOPTS) \ + VERBOSE=1 \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" ($(OS) $(VERSION))\"'" \ + ONLY_TOOLS="$(PKGNAME)" + +# FIXME: Should separe MAJOR/UVERSION. +tarpath := $(firstword $(wildcard $(D)/llvm-$(UVERSION)*.tar.* \ + /usr/src/llvm-$(UVERSION)/llvm-$(UVERSION)*.tar.*)) +tarball := $(notdir $(tarpath)) +srcdir := $(subst -dfsg,,$(subst .tar$(suffix $(tarball)),,$(tarball))) + +define $(PKGNAME)_extra_unpack + rm -rf $(D)/debian/ccache ; \ + if test -f $(PF)/lib/llvm-$(UVERSION)/build/ccache.$(DEB_HOST_ARCH).tar.lzma ; then \ + lzcat $(PF)/lib/llvm-$(UVERSION)/build/ccache.$(DEB_HOST_ARCH).tar.lzma | tar -C $(D)/debian -x -f - ; \ + fi ; \ + test ! "x$(srcdir)" = "x." || exit 1 ; \ + for tool in $(notdir $(wildcard $(D)/tools/*)) ; do \ + rm -rf $(D)/$(srcdir)/tools/$$tool ; \ + ln -sf $(D)/tools/$$tool $(D)/$(srcdir)/tools/$$tool ; \ + done +endef --- clang-2.8.orig/debian/packages.d/llvm-snapshot.mk +++ clang-2.8/debian/packages.d/llvm-snapshot.mk @@ -0,0 +1,56 @@ +builds := llvm + +BUILDDEPS := ocaml-nox (>= 3.11.2), ocaml-best-compilers | ocaml-nox, \ + dh-ocaml (>= 0.9.1) + +PF := /usr/lib/llvm-snapshot + +include /usr/share/ocaml/ocamlvars.mk + +llvm_packages := llvm-snapshot + +# assertions are not disabled for snapshot builds +llvm_confargs := $(confargs) \ + --prefix=$(PF) \ + --enable-optimized --with-optimize-option=' $(opt_flags)' --enable-pic --enable-libffi \ + --with-ocaml-libdir=$(OCAML_STDLIB_DIR)/llvm-$(UVERSION) + +llvm_MAKEOPTS := $(MAKEOPTS) \ + VERBOSE=1 \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" ($(OS) $(VERSION))\"'" + +# run testsuite +llvm_check := yes + +llvm_MAKECHECKOPTS := $(MAKEOPTS) \ + VERBOSE=1 \ + PATH="$(D)/build-llvm/Release/bin:$(srcdir)/test/Scripts:/usr/bin:/bin" + +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/$(strip $(call pkgname,$*))/$(PF)/bin/llvm-config ; \ + sed -r 's/^(my\s+\$$LLVM_OBJ_ROOT\s+=\s+q)\{(.*)\}\;$$/\1\{$(subst /,\/,$(PF))\/build\}\;/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/bin/llvm-config ; \ + sed -r 's/^(LLVM_SRC_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/Makefile.config ; \ + sed -r 's/^(LLVM_OBJ_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/Makefile.config ; \ + sed -r "s/^(ac_pwd\=)'.*'$$/\1'$(subst /,\/,$(PF))\/build'/" \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/config.status ; \ + find $(D)/debian/$(strip $(call pkgname,$*)) -type f -name "LICENSE.TXT" | xargs $(RM) ; \ + if test "x$(llvm_check)" = "xyes" ; then \ + install -m 0644 $(D)/build-llvm/test/testrun.sum \ + $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/ ; \ + echo >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + echo "Compiler version: $(shell $(DEB_HOST_GNU_TYPE)-gcc -dumpversion) (GCC)" \ + >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + echo "Platform: $(DEB_HOST_GNU_TYPE)" \ + >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + echo "configure flags: $(llvm_confargs)" \ + >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + gzip -9nf $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + fi ; \ + fi +endef + --- clang-2.8.orig/debian/packages.d/llvm.mk +++ clang-2.8/debian/packages.d/llvm.mk @@ -0,0 +1,161 @@ +builds := llvm + +# packages which don't need the builds +extra_packages := llvm-source + +ifneq (,$(findstring $(DEB_HOST_GNU_CPU),ia64)) + $(error unsupported processor) +endif + +BUILDDEPS := \ + ocaml-nox (>= 3.11.2), ocaml-best-compilers | ocaml-nox, \ + dh-ocaml (>= 0.9.1) + + +#ifeq (yes,$(shell dpkg --compare-versions $(VERSION) gt $(UVERSION)-1 && echo yes)) +# llvm-priv-dev_version := $(UVERSION)-$(shell expr $(subst $(UVERSION)-,,$(VERSION)) - 1) +# BUILDDEPS := llvm-$(UVERSION)-priv-dev (>= $(llvm-priv-dev_version)), $(BUILDDEPS) +#endif + +# build with RTTI +export REQUIRES_RTTI=1 + +include /usr/share/ocaml/ocamlvars.mk + +llvm_packages := \ + llvm llvm-runtime llvm-dev \ + libllvm-ocaml-dev \ + llvm-doc llvm-examples + +llvm_confargs := $(confargs) \ + --prefix=$(PF) --disable-assertions \ + --enable-optimized --with-optimize-option=' $(opt_flags)' --enable-pic --enable-libffi \ + --with-ocaml-libdir=$(OCAML_STDLIB_DIR)/llvm-$(UVERSION) + +ifeq ($(with_shared),yes) + llvm_packages := libllvm$(pkg_version) $(llvm_packages) + llvm_confargs += --enable-shared +endif + +llvm_MAKEOPTS := $(MAKEOPTS) \ + VERBOSE=1 \ + DebianOpts="-DLLVM_DEBIAN_INFO='\" ($(OS) $(VERSION))\"'" + +# run testsuite +llvm_check := yes + +llvm_MAKECHECKOPTS := $(MAKEOPTS) \ + VERBOSE=1 \ + PATH="$(D)/build-llvm/Release-Asserts/bin:$(srcdir)/test/Scripts:/usr/bin:/bin" + +ifeq (0,1) +define llvm_extra_unpack + rm -rf $(D)/debian/ccache ; \ + if test -f $(PF)/build/ccache.$(DEB_HOST_ARCH).tar.lzma ; then \ + lzcat $(PF)/build/ccache.$(DEB_HOST_ARCH).tar.lzma | tar -C $(D)/debian -x -f - ; \ + fi ; \ + if ! test "x$$($(DEB_HOST_GNU_TYPE)-g++ --version | head -n 1)" = "x$$(cat $(D)/debian/ccache/version 2>/dev/null)" ; then \ + echo "Clearing the cache." && \ + $(RM) -r $(D)/debian/ccache && \ + mkdir $(D)/debian/ccache && \ + $(DEB_HOST_GNU_TYPE)-g++ --version | head -n 1 > $(D)/debian/ccache/version ; \ + fi ; \ + ccache -c +endef +endif + +define llvm_extra_install + if test "x$*-$(with_shared)" = "xllvm-yes" ; then \ + mv $(D)/debian/tmp-llvm/$(PF)/lib/$(shlib_name).so \ + $(D)/debian/tmp-llvm/usr/lib/$(shlib_name).so.1 ; \ + fi +endef + +define llvm-runtime_extra_binary + if test "x$*" = "xllvm-runtime" ; then \ + mv $(D)/debian/$(strip $(call pkgname,$*))/usr/share/binfmts/llvm.binfmt \ + $(D)/debian/$(strip $(call pkgname,$*))/usr/share/binfmts/llvm-$(UVERSION).binfmt ; \ + fi +endef + +define llvm_extra_binary + if test "x$*" = "xllvm" ; then \ + find $(D)/debian/$(strip $(call pkgname,$*)) ! -type d -name "lli*" ; \ + find $(D)/debian/$(strip $(call pkgname,$*)) ! -type d -name "lli*" | xargs $(RM) ; \ + sed -r 's/^(my\s+\$$LLVM_SRC_ROOT\s+=\s+q)\{(.*)\}\;$$/\1\{$(subst /,\/,$(PF))\/build\}\;/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/bin/llvm-config ; \ + sed -r 's/^(my\s+\$$LLVM_OBJ_ROOT\s+=\s+q)\{(.*)\}\;$$/\1\{$(subst /,\/,$(PF))\/build\}\;/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/bin/llvm-config ; \ + if test "x$(llvm_check)" = "xyes" ; then \ + install -m 0644 $(D)/build-llvm/test/testrun.sum \ + $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/ ; \ + echo >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + echo "Compiler version: $(shell $(DEB_HOST_GNU_TYPE)-gcc -dumpversion) (GCC)" \ + >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + echo "Platform: $(DEB_HOST_GNU_TYPE)" \ + >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + echo "configure flags: $(llvm_confargs)" \ + >> $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + gzip -9nf $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/testrun.sum ; \ + fi ; \ + fi +endef + +define llvm-dev_extra_binary + if test "x$*" = "xllvm-dev" ; then\ + find $(D)/debian/$(strip $(call pkgname,$*)) ! -type d -name "libLLVM-2.8*.so.*" | xargs $(RM) ; \ + for i in llvm llvm-c ; do \ + mv $(D)/debian/$(strip $(call pkgname,$*))/usr/include/$$i \ + $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/include/$$i ; \ + done ; rm -rf $(D)/debian/$(strip $(call pkgname,$*))/usr/include ; \ + for i in $$(ls $(D)/debian/$(strip $(call pkgname,$*))/usr/share/vim/addons/plugin/*.vim 2>/dev/null || echo -n) ; do \ + mv $$i $$(echo $$i | sed -r 's/(\.vim)$$/-2\.7\1/g') ; \ + done ; \ + sed -r 's/^(LLVM_SRC_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/Makefile.config ; \ + sed -r 's/^(LLVM_OBJ_ROOT\s+\:\=\s+\$$\(shell cd).*\; \$$\(PWD\)\)$$/\1 $(subst /,\/,$(PF))\/build \; \$$\(PWD\)\)/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/Makefile.config ; \ + sed -r "s/^(ac_pwd\=)'.*'$$/\1'$(subst /,\/,$(PF))\/build'/" \ + -i $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/config.status ; \ + chmod 644 $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/Makefile* ; \ + find $(D)/debian/$(strip $(call pkgname,$*)) -type f -name "LICENSE.TXT" | xargs $(RM) ; \ + cp $(D)/utils/vim/README $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/README.vim ; \ + cp $(D)/utils/emacs/README $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/README.emacs ; \ + sed -r 's/path-to-llvm\/utils\/emacs/\/usr\/share\/emacs\/site-lisp\/llvm-$(UVERSION)/' \ + -i $(D)/debian/$(strip $(call pkgname,$*))/usr/share/doc/$(strip $(call pkgname,$*))/README.emacs ; \ + fi +endef + +define llvm-priv-dev_extra_binary + if test "x$*" = "xllvm-priv-dev" ; then \ + ccache -c ; \ + cp -r $(D)/debian/ccache $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/ ; \ + cd $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/ && \ + tar cf ccache.$(DEB_HOST_ARCH).tar ccache && \ + lzma --best ccache.$(DEB_HOST_ARCH).tar ; \ + cd $(D) ; \ + $(RM) -r $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/build/ccache ; \ + fi +endef + +# FIXME: Should separe MAJOR/UVERSION. +define llvm-source_extra_binary + if test "x$*" = "xllvm-source" ; then \ + $(RM) -r $(D)/debian/$(strip $(call pkgname,$*))/usr/src/llvm-$(UVERSION) ; \ + mkdir -p $(D)/debian/$(strip $(call pkgname,$*))/usr/src/llvm-$(UVERSION) ; \ + cp -f ../$(PKGNAME)-$(UVERSION)_$(UXVERSION).orig.tar.gz \ + $(D)/debian/$(strip $(call pkgname,$*))/usr/src/llvm-$(UVERSION)/$(PKGNAME)-$(UVERSION).tar.gz ; \ + gunzip $(D)/debian/$(strip $(call pkgname,$*))/usr/src/llvm-$(UVERSION)/$(PKGNAME)-$(UVERSION).tar.gz ; \ + xz $(D)/debian/$(strip $(call pkgname,$*))/usr/src/llvm-$(UVERSION)/$(PKGNAME)-$(UVERSION).tar ; \ + cp -r $(D)/debian/patches $(D)/debian/$(strip $(call pkgname,$*))/usr/src/llvm-$(UVERSION)/ ; \ + fi +endef + +define libllvm-ocaml-dev_extra_binary + if test "x$*" = "xlibllvm-ocaml-dev" ; then \ + dh_ocaml -p$(call pkgname,$*) ; \ + cp $(D)/debian/$(strip $(call pkgname,$*)).META \ + $(D)/debian/$(strip $(call pkgname,$*))/$(OCAML_STDLIB_DIR)/METAS/META.llvm-$(UVERSION) ; \ + fi +endef + --- clang-2.8.orig/debian/packages.d/llvm-gcc-4.2.mk +++ clang-2.8/debian/packages.d/llvm-gcc-4.2.mk @@ -0,0 +1,32 @@ +builds := llvm-gcc + +BUILDDEPS := llvm-$(UVERSION)-dev (>= $(dev_version)) +BUILDCONFLICTS := ocaml, ocaml-nox + +llvm-gcc_packages := llvm-gcc-4.2 + +llvm-gcc_confargs := $(confargs) \ + --prefix=$(PF)/gcc-$(gcc_version) --enable-llvm=$(PF) \ + --enable-languages=c,c++ --program-prefix=llvm- \ + --enable-threads --disable-nls --disable-shared \ + --disable-multilib --with-pic + +check_archs := amd64 i386 +ifneq (,$(filter $(DEB_HOST_ARCH),$(check_archs))) + llvm-gcc_check := yes +endif + +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/$(strip $(call pkgname,$*))/$(PF)/gcc-$(gcc_version)/bin/*-$(gcc_version).* ; \ + for i in $$(ls $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/gcc-$(gcc_version)/bin) ; do \ + echo "$(PF)/gcc-$(gcc_version)/bin/$$i usr/bin/$$i-$(gcc_version)" >> $(D)/debian/$(strip $(call pkgname,$*)).links ; \ + done ; \ + fi +endef + --- clang-2.8.orig/debian/rules.d/unpack.mk +++ clang-2.8/debian/rules.d/unpack.mk @@ -0,0 +1,57 @@ +unpack: $(unpack-stamp) +$(unpack-stamp): $(addprefix $(unpack-stamp)-,$(tarball)) + mkdir -p $(@D) + $(call $(PKGNAME)_extra_unpack) + touch $@ + +$(unpack-stamp)-%: + test -d $(stampdir) || mkdir $(stampdir) + if ! test -z "$(tarball)" ; then \ + $(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 ; \ + fi + touch $@ + +patches := $(foreach patchdir,$(patchdirs),$(wildcard $(patchdir)/*.patch)) + +patches_rev := # nothing +$(foreach patch,$(patches),$(eval patches_rev := $(patch) $(patches_rev))) + +patch: $(patch-stamp) +$(patch-stamp): $(unpack-stamp) + test -d $(stampdir)/patches || mkdir -p $(stampdir)/patches + cd $(srcdir) && for patch in $(patches) ; do \ + test -f "$$patch" || continue; \ + if ! test -f $(stampdir)/patches/$$(echo $$patch | tr "/" "_") ; \ + then echo "Applying patch: $$patch" && patch -p1 < $$patch ; \ + test $$? = 0 || exit 1 ; \ + touch $(stampdir)/patches/$$(echo $$patch | tr "/" "_") ; \ + echo ; \ + fi ; \ + done + touch $@ + +unpatch: + test -d $(stampdir)/patches || mkdir -p $(stampdir)/patches + test -z "$(tarball)" || (test -d $(srcdir) || mkdir $(srcdir)) + cd $(srcdir) && for patch in $(patches_rev) ; do \ + test -f "$$patch" || continue; \ + if test -f $(stampdir)/patches/$$(echo $$patch | tr "/" "_") ; \ + then echo "Reverting patch: $$patch" && patch -p1 -R < $$patch ; \ + test $$? = 0 || exit 1 ; \ + $(RM) $(stampdir)/patches/$$(echo $$patch | tr "/" "_") ; \ + echo ; \ + fi ; \ + done + $(RM) -r $(stampdir)/patches + $(RM) $(patch-stamp) + +clean: unpatch + +.PHONY: clean unpack patch unpatch --- clang-2.8.orig/debian/rules.d/binary.mk +++ clang-2.8/debian/rules.d/binary.mk @@ -0,0 +1,80 @@ +binary-indep binary-arch: $(build-stamp) $(install-stamp) +binary-arch: $(addprefix $(binary-stamp)-,$(subst -$(UVERSION),,$(packages_arch))) +binary-indep: $(addprefix $(binary-stamp)-,$(subst -$(UVERSION),,$(packages_indep))) +binary: binary-arch binary-indep + # TODO: list installed nowhere files + +debhelper-%: + $(foreach f,$(notdir $(wildcard $(D)/debian/debhelper.in/$*.*)),\ + sed -e "s;@PF@;$(PF);g" \ + -e "s;@TMP@;tmp-$(strip $(call buildof,$*));g" \ + -e "s;@BUILD@;build-$(strip $(call buildof,$*));g" \ + -e "s;@UVERSION@;$(UVERSION);g" \ + -e "s;@GCC_VERSION@;$(GCC_VERSION);g" \ + -e "s;@LLVM_VERSION@;$(LLVM_VERSION);g" \ + -e "s/@PKG_VERSION@/$(pkg_version)/g" \ + -e "s/@SHLIB_NAME@/$(shlib_name)/g" \ + -e "s;@OCAML_STDLIB_DIR@;$(OCAML_STDLIB_DIR);g" \ + $(D)/debian/debhelper.in/$f > \ + $(D)/debian/$(strip $(call pkgname,$*))$(strip $(suffix $(f))) \ + &&) : + +clean: clean-debhelper +clean-debhelper: clean-common + $(RM) $(strip $(foreach f,$(notdir $(wildcard $(D)/debian/debhelper.in/*.*)),\ + $(D)/debian/$(strip $(call pkgname,$(shell echo $(basename $(f)) | sed -e 's/\.$$//')))$(strip $(suffix $(f))) \ + )) + +.PHONY: clean clean-debhelper + +$(foreach build,$(builds),$(foreach package,$($(build)_packages),$(eval \ +dependency-$(package): $(install-stamp)-$(build)))) + +$(foreach package,$(extra_packages),$(eval \ +dependency-$(package): $(patch-stamp))) + +$(binary-stamp)-%: dependency-% debhelper-% + @echo Building package: $(call pkgname,$*) + dh_testdir + dh_testroot + dh_installchangelogs -p$(call pkgname,$*) + dh_installdocs -p$(call pkgname,$*) + dh_installexamples -p$(call pkgname,$*) + dh_installman -p$(call pkgname,$*) + dh_installmime -p$(call pkgname,$*) + dh_installdirs -p$(call pkgname,$*) + dh_install -p$(call pkgname,$*) + $(call $*_extra_binary) + for dir in usr/lib $(PF)/lib usr/bin $(PF)/bin ; \ + do for i in $$(find $(D)/debian/$(strip $(call pkgname,$*))/$$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 + if ! test "x$(PF)" = "x/usr" ; then \ + for i in $$(ls $(D)/debian/$(strip $(call pkgname,$*))/$(PF)/bin 2>/dev/null || echo -n); do \ + echo "Adding versioned symlink for binary $(D)/debian/$(PF)/bin/$$i" ; \ + echo "$(PF)/bin/$$i usr/bin/$$i$(SUFFIX)" >> $(D)/debian/$(strip $(call pkgname,$*)).links ; \ + done ; \ + fi + for man in $$(seq 1 8) ; do \ + for i in $$(ls $(D)/debian/$(strip $(call pkgname,$*))/usr/share/man/man$$man/*.$$man 2>/dev/null || echo -n) ; do \ + echo "Adding upstream version to manpage $$i" ; \ + mv $$i $$(echo $$i | sed -r "s/(\.$$man)$$/$(subst .,\.,$(SUFFIX))\1/g") ; \ + done ; \ + done + dh_link -p$(call pkgname,$*) + dh_strip -p$(call pkgname,$*) + dh_compress -p$(call pkgname,$*) + dh_fixperms -p$(call pkgname,$*) + DH_VERBOSE=1 dh_makeshlibs -p$(call pkgname,$*) + DH_VERBOSE=1 dh_shlibdeps -p$(call pkgname,$*) + dh_installdeb -p$(call pkgname,$*) + dh_gencontrol -p$(call pkgname,$*) + dh_md5sums -p$(call pkgname,$*) + dh_builddeb -p$(call pkgname,$*) + touch $@ + +.PHONY: binary binary-arch binary-indep dependency-% debhelper-% --- clang-2.8.orig/debian/rules.d/vars.mk +++ clang-2.8/debian/rules.d/vars.mk @@ -0,0 +1,79 @@ +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: //') +UXVERSION := $(shell echo $(VERSION) | cut -d'-' -f1) +UVERSION := 2.8 +OS := $(shell lsb_release -is) +PF := /usr/lib/llvm-$(UVERSION) +D := $(CURDIR) + +# remove upstream version +PKGNAME := $(subst -$(UVERSION),,$(PKGSOURCE)) + +# for binaries +SUFFIX := $(subst $(PKGNAME),,$(PKGSOURCE)) + +# for the shared lib +ifeq ($(PKGNAME),llvm) + pkg_version := $(shell sed -n "/^PACKAGE_VERSION=/s/.*'\(.*\)'$$/\1/p" configure) + pkg_version := $(subst rc,,$(pkg_version)) +else + pkg_version := $(UVERSION) +endif +shlib_name := libLLVM-$(pkg_version)rc + +# for llvm-gcc and tools +dev_version := $(UVERSION) + +# for tools +export CCACHE_DIR=$(D)/debian/ccache +export PATH=/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin + +$(foreach var,$(shell dpkg-architecture | sed -e 's/=/?=/'),$(eval $(var))) + +opt_flags = -g -O2 +ifneq (,$(findstring $(DEB_HOST_ARCH),armel)) + opt_flags += -marm +endif + +# testsuite +nocheck := no +ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + nocheck := yes +endif + +# shared lib +with_shared := yes +ifneq ($(DEB_HOST_ARCH_OS),linux) + with_shared := no +endif + +stampdir := $(D)/debian/stamps +$(foreach target,control unpack patch configure build check install binary, \ + $(eval $(target)-stamp := $(stampdir)/$(target)-stamp)) + +packages_arch := $(strip $(shell dh_listpackages -a 2>/dev/null)) +packages_indep := $(strip $(shell dh_listpackages -i 2>/dev/null)) +packages_all := $(packages_arch) $(packages_indep) + +NJOBS := 1 +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +else + 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 + +confargs := \ + CC=$(DEB_HOST_GNU_TYPE)-gcc CXX=$(DEB_HOST_GNU_TYPE)-g++ \ + CPP=$(DEB_HOST_GNU_TYPE)-cpp \ + --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) + +# 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))))) + --- clang-2.8.orig/debian/rules.d/build.mk +++ clang-2.8/debian/rules.d/build.mk @@ -0,0 +1,67 @@ +configure: $(configure-stamp) +$(configure-stamp): $(addprefix $(configure-stamp)-,$(builds)) + touch $@ + +build: $(build-stamp) +$(build-stamp): $(addprefix $(build-stamp)-,$(builds)) + touch $@ + +check: $(check-stamp) +$(check-stamp): $(addprefix $(check-stamp)-,$(builds)) + touch $@ + +install: $(install-stamp) +$(install-stamp): $(addprefix $(install-stamp)-,$(builds)) + touch $@ + +clean: clean-common +clean-common: + dh_testdir + dh_testroot + dh_clean + find $(srcdir)/test/Bindings/Ocaml -type f \ + -name "*.o" -or -name "*.cmx" | xargs $(RM) + $(RM) -r $(D)/debian/tmp-* + $(RM) $(D)/test/Bindings/Ocaml/*.cm[io] + $(RM) $(D)/debian/log-check-* $(D)/debian/logwatch-*.pid + $(RM) $(D)/log-* $(D)/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 $@ +$(check-stamp)-%: $(build-stamp)-% + # TODO: fix logwatch script +# chmod +x $(D)/debian/logwatch.sh && \ +# (debian/logwatch.sh -t 900 -p $(D)/debian/logwatch-$*.pid \ +# -m '\ntestsuite still running ...\n' \ +# $($*_builddir)/test/testrun.log \ +# &) + if test "x$(nocheck)-$($(strip $(call buildof,$*))_check)" = "xno-yes" ; then \ + if test "x$($*_check)" = "xyes" ; then \ + $(MAKE) -C $($*_builddir) $($*_MAKECHECKOPTS) check || true ; \ + fi ; \ + fi + $(call $*_extra_check) + touch $@ +$(install-stamp)-%: $(build-stamp)-% $(check-stamp)-% + $(MAKE) -C $($*_builddir) $($*_MAKEOPTS) install DESTDIR=$(D)/debian/tmp-$* + # Fix links that point to install directory + find $(D)/debian/tmp-$* -type l | while read i ; \ + do \ + L=$$(readlink $$i) ; \ + L=$${L##$(D)/debian/tmp-$*} ; \ + ln -sf $$L $$i ; \ + done + $(call $*_extra_install) + touch $@ + --- clang-2.8.orig/debian/rules.d/control.mk +++ clang-2.8/debian/rules.d/control.mk @@ -0,0 +1,36 @@ +$(foreach var,BUILDDEPS BUILDCONFLICTS,$(eval \ + $(if $(strip $($(var))),$(eval $(var) :=, $($(var))),$(eval $(var) :=)))) + +packages := $(foreach build,$(builds),$($(build)_packages)) +packages += $(extra_packages) + +debian/control: + @echo Regenerating control file... + sed -e "s/@PKGSOURCE@/$(PKGSOURCE)/g" \ + -e "s/ *@BUILDDEPS@/$(BUILDDEPS)/g" \ + -e "s/ *@BUILDCONFLICTS@/$(BUILDCONFLICTS)/g" \ + -e "s/@UVERSION@/$(UVERSION)/g" \ + -e "s/@GCC_VERSION@/$(gcc_version)/g" \ + -e "s/@PKG_VERSION@/$(pkg_version)/g" \ + -e "s/ , /, /g" \ + $@.in/source $(addprefix $@.in/,$(packages)) > $@ + +control: debian/control + +diffstats: + @echo Updating diffstats... + for patch in $(D)/debian/patches/*.patch ; do \ + test -f "$$patch" || continue; \ + (echo '---' ; \ + diffstat $${patch} ; \ + echo ; \ + cat $${patch} | awk '/^---$$/ {put=0} /^[a-zA-Z0-9]/ {put=1} /^--- / {put=1} put==1' ; \ + ) > $${patch}T && \ + sed -r '/^Index: /d;/^={67}$$/d' -i $${patch}T ; \ + diff -U 0 $${patch} $${patch}T ; \ + mv -f $${patch}T $${patch} ; \ + done + +clean: control diffstats + +.PHONY: clean control debian/control diffstats --- clang-2.8.orig/debian/control.in/llvm-runtime +++ clang-2.8/debian/control.in/llvm-runtime @@ -0,0 +1,20 @@ +Package: llvm-@UVERSION@-runtime +Architecture: any +Depends: binfmt-support, ${shlibs:Depends}, ${misc:Depends} +Conflicts: llvm (<< 2.7-1) +Replaces: llvm (<< 2.7-1) +Description: Low-Level Virtual Machine (LLVM), bytecode interpreter + 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 minimal required to execute programs in LLVM + format. + --- clang-2.8.orig/debian/control.in/llvm-source +++ clang-2.8/debian/control.in/llvm-source @@ -0,0 +1,17 @@ +Package: llvm-@UVERSION@-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.8.orig/debian/control.in/llvm-snapshot +++ clang-2.8/debian/control.in/llvm-snapshot @@ -0,0 +1,19 @@ +Package: llvm-snapshot +Priority: extra +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.8.orig/debian/control.in/llvm-gcc-4.2 +++ clang-2.8/debian/control.in/llvm-gcc-4.2 @@ -0,0 +1,22 @@ +Package: llvm-gcc-@GCC_VERSION@ +Architecture: i386 amd64 +Depends: llvm-@UVERSION@-dev (>= @UVERSION@), llvm-@UVERSION@ (>= @UVERSION@), ${shlibs:Depends}, ${misc:Depends} +Provides: llvm-gcc +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.8.orig/debian/control.in/llvm-doc +++ clang-2.8/debian/control.in/llvm-doc @@ -0,0 +1,18 @@ +Package: llvm-@UVERSION@-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.8.orig/debian/control.in/libllvm2.8 +++ clang-2.8/debian/control.in/libllvm2.8 @@ -0,0 +1,11 @@ +Package: libllvm@PKG_VERSION@ +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Low-Level Virtual Machine (LLVM), runtime library + 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. + . + This package contains the LLVM runtime library. + --- clang-2.8.orig/debian/control.in/llvm +++ clang-2.8/debian/control.in/llvm @@ -0,0 +1,30 @@ +Package: llvm-@UVERSION@ +Architecture: any +Suggests: llvm-@UVERSION@-doc +Depends: llvm-@UVERSION@-runtime (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Recommends: llvm-@UVERSION@-dev +Conflicts: llvm (<< 2.7-1) +Replaces: llvm (<< 2.7-1) +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.8.orig/debian/control.in/libllvm-ocaml-dev +++ clang-2.8/debian/control.in/libllvm-ocaml-dev @@ -0,0 +1,20 @@ +Package: libllvm-ocaml-@UVERSION@-dev +Section: ocaml +Architecture: any +Suggests: llvm-@UVERSION@-doc +Depends: ${shlibs:Depends}, ${misc:Depends}, ${ocaml:Depends}, llvm-@UVERSION@-dev (= ${binary:Version}) +Provides: ${ocaml:Provides} +Description: Low-Level Virtual Machine (LLVM), bindings for OCaml + 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 OCaml bindings to develop applications using llvm. + --- clang-2.8.orig/debian/control.in/llvm-examples +++ clang-2.8/debian/control.in/llvm-examples @@ -0,0 +1,19 @@ +Package: llvm-@UVERSION@-examples +Section: doc +Architecture: all +Depends: ${misc:Depends}, llvm-@UVERSION@-dev (>= ${source:Version}), llvm-@UVERSION@-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.8.orig/debian/control.in/source +++ clang-2.8/debian/control.in/source @@ -0,0 +1,14 @@ +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, + autoconf, automake1.9, perl, libtool, doxygen, chrpath, texinfo, + sharutils, autotools-dev (>= 20060702.1), libffi-dev (>= 3.0.9), + lsb-release, patchutils, diffstat, xz-utils @BUILDDEPS@ +Build-Conflicts: oprofile @BUILDCONFLICTS@ +Standards-Version: 3.9.1 +Homepage: http://www.llvm.org/ +Vcs-Bzr: https://bazaar.launchpad.net/~pkg-llvm/+junk/llvm-2.8-ubuntu + --- clang-2.8.orig/debian/control.in/llvm-priv-dev +++ clang-2.8/debian/control.in/llvm-priv-dev @@ -0,0 +1,10 @@ +Package: llvm-@UVERSION@-priv-dev +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Low-Level Virtual Machine (LLVM), ccache files + This package contains the ccache files from latest upload. It allows the + tools to build much faster, and prevents llvm from being uselessly built + twice. + . + Do not install unless you intend to build LLVM from sources! + --- clang-2.8.orig/debian/control.in/llvm-dev +++ clang-2.8/debian/control.in/llvm-dev @@ -0,0 +1,19 @@ +Package: llvm-@UVERSION@-dev +Architecture: any +Depends: ${shlibs:Depends}, libffi-dev (>= 3.0.9), ${misc:Depends}, llvm-@UVERSION@ (= ${binary:Version}) +Replaces: 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.8.orig/debian/control.in/clang +++ clang-2.8/debian/control.in/clang @@ -0,0 +1,40 @@ +Package: clang +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: llvm-@UVERSION@-dev, python +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.8.orig/debian/source/format +++ clang-2.8/debian/source/format @@ -0,0 +1 @@ +1.0 --- clang-2.8.orig/debian/debhelper.in/llvm-runtime.links +++ clang-2.8/debian/debhelper.in/llvm-runtime.links @@ -0,0 +1,2 @@ +# AUTOGENERATED in debian/rules.d/binary.mk. +/usr/lib/llvm-2.8 /usr/lib/llvm-2.8rc --- clang-2.8.orig/debian/debhelper.in/llvm-runtime.prerm +++ clang-2.8/debian/debhelper.in/llvm-runtime.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.8.orig/debian/debhelper.in/llvm.manpages +++ clang-2.8/debian/debhelper.in/llvm.manpages @@ -0,0 +1 @@ +debian/@TMP@/@PF@/share/man/man1/* --- clang-2.8.orig/debian/debhelper.in/llvm-gcc-4.2.links +++ clang-2.8/debian/debhelper.in/llvm-gcc-4.2.links @@ -0,0 +1 @@ +# AUTOGENERATED in debian/packages.d/llvm-gc-4.2.mk. --- clang-2.8.orig/debian/debhelper.in/llvm-doc.dirs +++ clang-2.8/debian/debhelper.in/llvm-doc.dirs @@ -0,0 +1 @@ +usr/share/doc/llvm-@UVERSION@-doc --- clang-2.8.orig/debian/debhelper.in/llvm-examples.dirs +++ clang-2.8/debian/debhelper.in/llvm-examples.dirs @@ -0,0 +1 @@ +usr/share/doc/llvm-@UVERSION@-examples --- clang-2.8.orig/debian/debhelper.in/llvm-snapshot.install +++ clang-2.8/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@/Makefile.common @PF@/build/ +@BUILD@/Makefile.config @PF@/build/ +@BUILD@/config.status @PF@/build/ +Makefile.rules @PF@/build/ +configure @PF@/build/ +autoconf/ @PF@/build/ --- clang-2.8.orig/debian/debhelper.in/llvm-dev.links +++ clang-2.8/debian/debhelper.in/llvm-dev.links @@ -0,0 +1,2 @@ +usr/lib/libLLVM-2.8rc.so.1 usr/lib/libLLVM-2.8rc.so +usr/lib/libLLVM-2.8rc.so.1 usr/lib/libLLVM-2.8.so --- clang-2.8.orig/debian/debhelper.in/llvm-doc.install +++ clang-2.8/debian/debhelper.in/llvm-doc.install @@ -0,0 +1,2 @@ +debian/@TMP@/@PF@/docs/llvm/html usr/share/doc/llvm-@UVERSION@-doc/ +debian/@TMP@/@PF@/docs/llvm/ps usr/share/doc/llvm-@UVERSION@-doc/ --- clang-2.8.orig/debian/debhelper.in/llvm-runtime.install +++ clang-2.8/debian/debhelper.in/llvm-runtime.install @@ -0,0 +1,2 @@ +debian/@TMP@/@PF@/bin/lli @PF@/bin/ +debian/llvm.binfmt usr/share/binfmts/ --- clang-2.8.orig/debian/debhelper.in/llvm.install +++ clang-2.8/debian/debhelper.in/llvm.install @@ -0,0 +1 @@ +debian/@TMP@/@PF@/bin/* @PF@/bin/ --- clang-2.8.orig/debian/debhelper.in/libllvm-ocaml-dev.META +++ clang-2.8/debian/debhelper.in/libllvm-ocaml-dev.META @@ -0,0 +1,63 @@ +description = "Low Level Virtual Machine bindings" +version = "@UVERSION@" + +directory = "+llvm" + +archive(byte) = "llvm.cma" +archive(native) = "llvm.cmxa" +linkopts = "-cclib -lstdc++ -cclib -lllvm" + +package "executionengine" +( + requires = "llvm" + version = "@UVERSION@" + archive(native) = "llvm_executionengine.cmxa" + archive(byte) = "llvm_executionengine.cma" + linkopts = "-cclib -lllvm_executionengine" +) + +package "target" +( + requires = "llvm" + version = "@UVERSION@" + archive(native) = "llvm_target.cmxa" + archive(byte) = "llvm_target.cma" + linkopts = "-cclib -lllvm_target" +) + +package "scalar_opts" +( + requires = "llvm llvm.target" + version = "@UVERSION@" + archive(native) = "llvm_scalar_opts.cmxa" + archive(byte) = "llvm_scalar_opts.cma" + linkopts = "-cclib -lllvm_scalar_opts" +) + +package "analysis" +( + requires = "llvm" + version = "@UVERSION@" + archive(native) = "llvm_analysis.cmxa" + archive(byte) = "llvm_analysis.cma" + linkopts = "-cclib -lllvm_analysis" +) + +package "bitwriter" +( + requires = "llvm" + version = "@UVERSION@" + archive(native) = "llvm_bitwriter.cmxa" + archive(byte) = "llvm_bitwriter.cma" + linkopts = "-cclib -lllvm_bitwriter" +) + +package "bitreader" +( + requires = "llvm llvm.bitwriter" + version = "@UVERSION@" + archive(native) = "llvm_bitreader.cmxa" + archive(byte) = "llvm_bitreader.cma" + linkopts = "-cclib -lllvm_bitreader" +) + --- clang-2.8.orig/debian/debhelper.in/clang.links +++ clang-2.8/debian/debhelper.in/clang.links @@ -0,0 +1,5 @@ +usr/share/man/man1/clang.1.gz usr/share/man/man1/llvm-clang.1.gz +usr/share/man/man1/clang.1.gz usr/share/man/man1/clang++.1.gz +@PF@/share/clang/scan-build/scan-build @PF@/bin/scan-build +@PF@/share/clang/scan-view/scan-view @PF@/bin/scan-view +@PF@/bin/clang @PF@/bin/llvm-clang --- clang-2.8.orig/debian/debhelper.in/llvm-examples.examples +++ clang-2.8/debian/debhelper.in/llvm-examples.examples @@ -0,0 +1 @@ +examples/* --- clang-2.8.orig/debian/debhelper.in/libllvm-ocaml-dev.install +++ clang-2.8/debian/debhelper.in/libllvm-ocaml-dev.install @@ -0,0 +1,2 @@ +debian/@TMP@/@OCAML_STDLIB_DIR@/llvm-@UVERSION@ @OCAML_STDLIB_DIR@/ +debian/@TMP@/@PF@/docs/llvm/ocamldoc/html usr/share/doc/libllvm-ocaml-@UVERSION@-dev/ --- clang-2.8.orig/debian/debhelper.in/libllvm-ocaml-dev.dirs +++ clang-2.8/debian/debhelper.in/libllvm-ocaml-dev.dirs @@ -0,0 +1 @@ +@OCAML_STDLIB_DIR@/METAS --- clang-2.8.orig/debian/debhelper.in/llvm-runtime.postinst +++ clang-2.8/debian/debhelper.in/llvm-runtime.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.8.orig/debian/debhelper.in/llvm-dev.dirs +++ clang-2.8/debian/debhelper.in/llvm-dev.dirs @@ -0,0 +1,5 @@ +@PF@/lib +@PF@/build +@PF@/include +usr/share/doc/llvm-@UVERSION@-dev +usr/share/emacs/site-lisp/llvm-@UVERSION@ --- clang-2.8.orig/debian/debhelper.in/llvm.links +++ clang-2.8/debian/debhelper.in/llvm.links @@ -0,0 +1 @@ +# AUTOGENERATED in debian/rules.d/binary.mk. --- clang-2.8.orig/debian/debhelper.in/llvm.dirs +++ clang-2.8/debian/debhelper.in/llvm.dirs @@ -0,0 +1,3 @@ +@PF@/bin +usr/share/man/man1 +usr/share/doc/llvm-@UVERSION@ --- clang-2.8.orig/debian/debhelper.in/llvm-runtime.manpages +++ clang-2.8/debian/debhelper.in/llvm-runtime.manpages @@ -0,0 +1 @@ +debian/@TMP@/@PF@/share/man/man1/lli.* --- clang-2.8.orig/debian/debhelper.in/clang.install +++ clang-2.8/debian/debhelper.in/clang.install @@ -0,0 +1,6 @@ +debian/@TMP@/@PF@/lib/clang @PF@/lib/ +debian/@TMP@/@PF@/bin/clang @PF@/bin/ +debian/@TMP@/@PF@/bin/clang++ @PF@/bin/ +tools/clang/tools/scan-build @PF@/share/clang/ +tools/clang/tools/scan-view @PF@/share/clang/ +debian/@TMP@/@PF@/share/man/man1/clang.1 usr/share/man/man1/ --- clang-2.8.orig/debian/debhelper.in/llvm-dev.install +++ clang-2.8/debian/debhelper.in/llvm-dev.install @@ -0,0 +1,17 @@ +debian/@TMP@/@PF@/lib/* @PF@/lib/ +debian/@TMP@/@PF@/include/* usr/include/ + +@BUILD@/Makefile.common @PF@/build/ +@BUILD@/Makefile.config @PF@/build/ +@BUILD@/config.status @PF@/build/ +Makefile.rules @PF@/build/ +configure @PF@/build/ +autoconf/ @PF@/build/ + +utils/vim/llvm.vim usr/share/vim/addons/plugin/ +utils/vim/tablegen.vim usr/share/vim/addons/plugin/ + +utils/emacs/emacs.el usr/share/emacs/site-lisp/llvm-2.8/ +utils/emacs/llvm-mode.el usr/share/emacs/site-lisp/llvm-2.8/ +utils/emacs/tablegen-mode.el usr/share/emacs/site-lisp/llvm-2.8/ + --- clang-2.8.orig/debian/debhelper.in/llvm-priv-dev.dirs +++ clang-2.8/debian/debhelper.in/llvm-priv-dev.dirs @@ -0,0 +1 @@ +@PF@/build --- clang-2.8.orig/debian/debhelper.in/libllvm2.8.install +++ clang-2.8/debian/debhelper.in/libllvm2.8.install @@ -0,0 +1 @@ +debian/@TMP@/usr/lib/libLLVM-2.8rc.so.1 usr/lib --- clang-2.8.orig/debian/debhelper.in/libllvm-ocaml-dev.doc-base +++ clang-2.8/debian/debhelper.in/libllvm-ocaml-dev.doc-base @@ -0,0 +1,8 @@ +Document: libllvm-ocaml-@UVERSION@-dev-ocamldoc-api-reference +Title: Llvm OCamldoc API Reference +Abstract: API reference manual for libllvm-ocaml-dev (generated via OCamldoc) +Section: Programming/OCaml + +Format: HTML +Index: /usr/share/doc/libllvm-ocaml-@UVERSION@-dev/html/index.html +Files: /usr/share/doc/libllvm-ocaml-@UVERSION@-dev/html/* --- clang-2.8.orig/debian/debhelper.in/llvm-examples.links +++ clang-2.8/debian/debhelper.in/llvm-examples.links @@ -0,0 +1,3 @@ +@PF@/build/Makefile.common usr/share/doc/llvm-@UVERSION@-examples/Makefile.common +@PF@/build/Makefile.config usr/share/doc/llvm-@UVERSION@-examples/Makefile.config +@PF@/build/Makefile.rules usr/share/doc/llvm-@UVERSION@-examples/Makefile.rules --- clang-2.8.orig/debian/debhelper.in/llvm-gcc-4.2.install +++ clang-2.8/debian/debhelper.in/llvm-gcc-4.2.install @@ -0,0 +1 @@ +debian/@TMP@/@PF@/* @PF@/