Your message dated Sat, 30 Mar 2013 02:47:50 +0000
with message-id <[email protected]>
and subject line Bug#700290: fixed in pbuilder 0.215
has caused the Debian Bug report #700290,
regarding pbuilder: clang support
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
700290: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700290
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pbuilder
Severity: wishlist
Tags: patch
X-Debbugs-CC: [email protected]

Hi,

 I've made a tiny patch for clang support in pbuilder, it runs with
 "--with-clang" option. It would make build check in clang easier,
 and encourage maintainers to do that.

 Could you check and apply it, please?


-- 
Regards,

 Hideki Yamane     henrich @ debian.or.jp/org
 http://wiki.debian.org/HidekiYamane
diff -Nru pbuilder-0.213/bash_completion.d/pbuilder pbuilder-0.213+nmu1/bash_completion.d/pbuilder
--- pbuilder-0.213/bash_completion.d/pbuilder	2012-03-25 14:53:45.000000000 +0900
+++ pbuilder-0.213+nmu1/bash_completion.d/pbuilder	2013-02-11 14:21:58.000000000 +0900
@@ -60,7 +60,7 @@
                 --aptconfdir --timeout --override-config  --binary-arch \
                 --preserve-buildplace --bindmounts --debug --twice --autocleanaptcache \
                 --compressprog --debootstrapopts --save-after-login --save-after-exec \
-                --debootstrap' \
+                --debootstrap --with-clang' \
                 -- "$cur" ) )
             if [[ $prev = @(--aptcache|--hookdir) ]]; then
                 # Optionally provide a directory
diff -Nru pbuilder-0.213/debian/changelog pbuilder-0.213+nmu1/debian/changelog
--- pbuilder-0.213/debian/changelog	2012-10-08 08:30:05.000000000 +0900
+++ pbuilder-0.213+nmu1/debian/changelog	2013-02-11 15:01:07.000000000 +0900
@@ -1,3 +1,13 @@
+pbuilder (0.213+nmu1) UNRELEASED; urgency=low
+
+  [ Hideki Yamane ]
+  * Non-maintainer upload.
+  * add "--with-clang" option to build your package with clang.
+    It would replace GCC-4.7 by default, you can specify it any version
+    with GCC_VERSION environment variable
+
+ -- Hideki Yamane <[email protected]>  Mon, 11 Feb 2013 14:22:38 +0900
+
 pbuilder (0.213) unstable; urgency=low
 
   [ Beatrice Torracca ]
diff -Nru pbuilder-0.213/pbuilder-buildpackage pbuilder-0.213+nmu1/pbuilder-buildpackage
--- pbuilder-0.213/pbuilder-buildpackage	2012-03-13 17:25:15.000000000 +0900
+++ pbuilder-0.213+nmu1/pbuilder-buildpackage	2013-02-11 15:18:41.000000000 +0900
@@ -97,6 +97,9 @@
 executehooks "D"
 trap saveaptcache_umountproc_cleanbuildplace_trap exit sighup sigpipe
 checkbuilddep "$PACKAGENAME"
+if [ "$CLANG" = "yes" ]; then
+    setup_clang
+fi
 save_aptcache
 trap umountproc_cleanbuildplace_trap exit sighup sigpipe
 
diff -Nru pbuilder-0.213/pbuilder-buildpackage-funcs pbuilder-0.213+nmu1/pbuilder-buildpackage-funcs
--- pbuilder-0.213/pbuilder-buildpackage-funcs	2012-03-31 13:51:11.000000000 +0900
+++ pbuilder-0.213+nmu1/pbuilder-buildpackage-funcs	2013-02-11 16:44:51.000000000 +0900
@@ -112,3 +112,22 @@
         export CCACHE_DIR="$CCACHEDIR"
     fi
 }
+
+function setup_clang() {
+    # set appropriate GCC version.
+    if [ -z $GCC_VERSION ]; then
+	    GCC_VERSION="4.7"
+    fi
+
+    $CHROOTEXEC usr/bin/apt-get -y "${APTGETOPT[@]}" install clang
+
+    echo -e "\e[33mReplace gcc, g++ & cpp by clang\e[m"
+    for compiler in gcc-"$GCC_VERSION" cpp-"$GCC_VERSION" g++-"$GCC_VERSION"
+    do
+	$CHROOTEXEC rm /usr/bin/$compiler &&
+	$CHROOTEXEC ln -s /usr/bin/clang /usr/bin/$compiler 
+    done
+
+    echo -e "\e[33mCheck if gcc, g++ & cpp are actually clang\e[m"
+    $CHROOTEXEC usr/bin/gcc --version| grep clang > /dev/null || exit 1
+}
diff -Nru pbuilder-0.213/pbuilder-checkparams pbuilder-0.213+nmu1/pbuilder-checkparams
--- pbuilder-0.213/pbuilder-checkparams	2012-03-09 07:54:41.000000000 +0900
+++ pbuilder-0.213+nmu1/pbuilder-checkparams	2013-02-11 14:20:54.000000000 +0900
@@ -260,6 +260,10 @@
 	    TWICE="yes"
 	    shift;
 	    ;;
+	--with-clang)
+	    CLANG="yes"
+	    shift;
+	    ;;
 	--) # end of processing for this
 	    shift;
 	    break;
diff -Nru pbuilder-0.213/pbuilder-modules pbuilder-0.213+nmu1/pbuilder-modules
--- pbuilder-0.213/pbuilder-modules	2012-03-31 13:50:46.000000000 +0900
+++ pbuilder-0.213+nmu1/pbuilder-modules	2013-02-11 14:51:33.000000000 +0900
@@ -79,6 +79,7 @@
  --debootstrapopts [debootstrap options]
  --save-after-login/--save-after-exec
  --debootstrap [debootstrap|cdebootstrap]
+ --with-clang
 
 pdebuild-specific pbuilder-options:
  --pbuilderroot [command to obtain root privilege for pbuilder] 
diff -Nru pbuilder-0.213/pbuilder.8 pbuilder-0.213+nmu1/pbuilder.8
--- pbuilder-0.213/pbuilder.8	2012-03-09 07:54:41.000000000 +0900
+++ pbuilder-0.213+nmu1/pbuilder.8	2013-02-11 14:35:27.000000000 +0900
@@ -534,6 +534,11 @@
 properly.  The resulting packages are the ones from the second build.
 
 .TP
+.BI "\-\-with\-clang"
+Build the package with clang, instead of gcc.
+Also you should use A10clang hook file in example.
+
+.TP
 .BI "\-\-preserve\-buildplace"
 Do not clean the
 .B "\-\-buildplace"

--- End Message ---
--- Begin Message ---
Source: pbuilder
Source-Version: 0.215

We believe that the bug you reported is fixed in the latest version of
pbuilder, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Junichi Uekawa <[email protected]> (supplier of updated pbuilder package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 30 Mar 2013 11:06:05 +0900
Source: pbuilder
Binary: pbuilder pbuilder-uml
Architecture: source amd64 all
Version: 0.215
Distribution: unstable
Urgency: low
Maintainer: Debian pbuilder maintenance team 
<[email protected]>
Changed-By: Junichi Uekawa <[email protected]>
Description: 
 pbuilder   - personal package builder for Debian packages
 pbuilder-uml - user-mode-linux version of pbuilder
Closes: 700290 702102 702811
Changes: 
 pbuilder (0.215) unstable; urgency=low
 .
   * Do not try to use /dev/shm if /run/shm is not present. (closes: #702811, 
#702102)
   * Add clang support hook script from Hideki Yamane. (closes: #700290)
Checksums-Sha1: 
 2157cb989a086846a968feac298803bb29b000b3 1187 pbuilder_0.215.dsc
 8fa888a05d88bdfe655c2a87d054083ae3691c27 940580 pbuilder_0.215.tar.gz
 1ab9b6b73ff063e5722e11b68d7adf70cf3ca4de 44096 pbuilder-uml_0.215_amd64.deb
 ba3189509fe0f63a77c94d267de8815062cdee17 391692 pbuilder_0.215_all.deb
Checksums-Sha256: 
 48e2985fb34c9fb5a5cf418c5c48846a6fdfc8ea84a5dedc16c39ab9bf0a6e99 1187 
pbuilder_0.215.dsc
 8a090dd3ad58e6e1ee0a30200ebdebd3334d12da51cc8922403060128e39272f 940580 
pbuilder_0.215.tar.gz
 013e56432c969ab8a63f903f077a29532c7b675d783a25897508b0d4903edc73 44096 
pbuilder-uml_0.215_amd64.deb
 efc342efe0dd3104706b14b2933637bb70334e0629e2326eea94af1fcdbdb833 391692 
pbuilder_0.215_all.deb
Files: 
 119216a53d7fc139426329455361b087 1187 devel extra pbuilder_0.215.dsc
 6dbfa4780141acc91b0b69ec2caed92f 940580 devel extra pbuilder_0.215.tar.gz
 aaff8478078d1dae68c763b48b76aa86 44096 devel extra pbuilder-uml_0.215_amd64.deb
 7c79b0937860ea9219fac7e86a13e76f 391692 devel extra pbuilder_0.215_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFRVk/E2Dd9TugeVcERAlYbAJ4nRJREO2vhwJXhrmQK1rk6Krz3LgCfdwJd
C1pZ/aV0QyXX8FpfGszuhFY=
=cTzE
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to