--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: vcg: FTBFS on GNU/kFreeBSD: buggy OS detection
- From: Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
- Date: Tue, 20 Mar 2007 16:04:26 +0100
- Message-id: <20070320150426.6007.42494.reportbug@localhost.localdomain>
Package: vcg
Version: 1.30debian-5
Severity: important
Tags: patch
Hi,
currently this package FTBFS on GNU/kFreeBSD since it uses directly the
output of "uname -s" in filenames, although this output can contain
slashes.
The attached patch catches GNU/kFreeBSD as well as GNU(/Hurd) and
make them look like Linux, which allows at least a fine build on
GNU/kFreeBSD.
Cheers,
--
Cyril Brulebois
--- vcg-1.30debian/Makefile 2003-02-20 22:06:27.000000000 +0100
+++ vcg-1.30debian/Makefile 2007-03-20 16:41:33.000000000 +0100
@@ -24,6 +24,10 @@
SHELL = /bin/sh
+# GNU/kFreeBSD and GNU(/Hurd) are like Linux
+UNAME = $(shell uname -s | sed -e 's/GNU\/kFreeBSD/Linux/' | sed -e 's/GNU/Linux/')
+
+
#-------------------------- Rules ------------------------------
#all: stamp-all
@@ -54,7 +58,7 @@
if (test ! -r tMakefile) then \
(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
xmkmf; make | sed -e "s/^make.*//" > x11setup); \
- (cd preconf; cd X11cc`uname -s`; \
+ (cd preconf; cd X11cc$(UNAME); \
/bin/cp tMakefile ../../Make.tmp; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.tmp); \
@@ -67,7 +71,7 @@
if (test ! -r tMakefile) then \
(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
xmkmf; make | sed -e "s/^make.*//" > x11setup); \
- (cd preconf; cd X11gcc`uname -s`; \
+ (cd preconf; cd X11gcc$(UNAME); \
/bin/cp tMakefile ../../Make.tmp; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.tmp); \
@@ -80,7 +84,7 @@
if (test ! -r tMakefile) then \
(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
xmkmf; make | sed -e "s/^make.*//" > x11setup); \
- (cd preconf; cd X11g++`uname -s`; \
+ (cd preconf; cd X11g++$(UNAME); \
/bin/cp tMakefile ../../Make.tmp; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.tmp); \
@@ -93,7 +97,7 @@
if (test ! -r tMakefile) then \
(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
xmkmf; make | sed -e "s/^make.*//" > x11setup); \
- (cd preconf; cd X11c89`uname -s`; \
+ (cd preconf; cd X11c89$(UNAME); \
/bin/cp tMakefile ../../Make.tmp; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.tmp); \
@@ -105,7 +109,7 @@
xvcg_cc_noxmkmf:
if (test ! -r tMakefile) then \
(cd preconf/X11; /bin/cp ../x11setup ../x11setup2 .); \
- (cd preconf; cd X11cc`uname -s`; \
+ (cd preconf; cd X11cc$(UNAME); \
/bin/cp tMakefile ../../Make.tmp; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.tmp); \
@@ -117,7 +121,7 @@
xvcg_gcc_noxmkmf:
if (test ! -r tMakefile) then \
(cd preconf/X11; /bin/cp ../x11setup ../x11setup2 .); \
- (cd preconf; cd X11gcc`uname -s`; \
+ (cd preconf; cd X11gcc$(UNAME); \
/bin/cp tMakefile ../../Make.tmp; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.tmp); \
@@ -129,7 +133,7 @@
xvcg_c89_noxmkmf:
if (test ! -r tMakefile) then \
(cd preconf/X11; /bin/cp ../x11setup ../x11setup2 .); \
- (cd preconf; cd X11c89`uname -s`; \
+ (cd preconf; cd X11c89$(UNAME); \
/bin/cp tMakefile ../../Make.tmp; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.tmp); \
@@ -140,7 +144,7 @@
vcg_gcc:
if (test ! -r tMakefile) then \
- (cd preconf; cd SunVgcc`uname -s`; \
+ (cd preconf; cd SunVgcc$(UNAME); \
/bin/cp tMakefile ../../tMakefile; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.csh); \
@@ -148,7 +152,7 @@
vcg_cc:
if (test ! -r tMakefile) then \
- (cd preconf; cd SunVcc`uname -s`; \
+ (cd preconf; cd SunVcc$(UNAME); \
/bin/cp tMakefile ../../tMakefile; \
/bin/cp globals.h ../../src; \
/bin/cp demo.csh ../../demo/demo.csh); \
@@ -160,29 +164,29 @@
/bin/cp demo/demo.csh preconf/
prepare_x11gcc:
- /bin/cp tMakefile preconf/X11gcc`uname -s`/
- /bin/cp src/globals.h preconf/X11gcc`uname -s`/
- /bin/cp demo/demo.csh preconf/X11gcc`uname -s`/
+ /bin/cp tMakefile preconf/X11gcc$(UNAME)/
+ /bin/cp src/globals.h preconf/X11gcc$(UNAME)/
+ /bin/cp demo/demo.csh preconf/X11gcc$(UNAME)/
prepare_x11cc:
- /bin/cp tMakefile preconf/X11cc`uname -s`/
- /bin/cp src/globals.h preconf/X11cc`uname -s`/
- /bin/cp demo/demo.csh preconf/X11cc`uname -s`/
+ /bin/cp tMakefile preconf/X11cc$(UNAME)/
+ /bin/cp src/globals.h preconf/X11cc$(UNAME)/
+ /bin/cp demo/demo.csh preconf/X11cc$(UNAME)/
prepare_x11c89:
- /bin/cp tMakefile preconf/X11c89`uname -s`/
- /bin/cp src/globals.h preconf/X11c89`uname -s`/
- /bin/cp demo/demo.csh preconf/X11c89`uname -s`/
+ /bin/cp tMakefile preconf/X11c89$(UNAME)/
+ /bin/cp src/globals.h preconf/X11c89$(UNAME)/
+ /bin/cp demo/demo.csh preconf/X11c89$(UNAME)/
prepare_sungcc:
- /bin/cp tMakefile preconf/SunVgcc`uname -s`/
- /bin/cp src/globals.h preconf/SunVgcc`uname -s`/
- /bin/cp demo/demo.csh preconf/SunVgcc`uname -s`/
+ /bin/cp tMakefile preconf/SunVgcc$(UNAME)/
+ /bin/cp src/globals.h preconf/SunVgcc$(UNAME)/
+ /bin/cp demo/demo.csh preconf/SunVgcc$(UNAME)/
prepare_suncc:
- /bin/cp tMakefile preconf/SunVcc`uname -s`/
- /bin/cp src/globals.h preconf/SunVcc`uname -s`/
- /bin/cp demo/demo.csh preconf/SunVcc`uname -s`/
+ /bin/cp tMakefile preconf/SunVcc$(UNAME)/
+ /bin/cp src/globals.h preconf/SunVcc$(UNAME)/
+ /bin/cp demo/demo.csh preconf/SunVcc$(UNAME)/
xvcg vcg: tMakefile
make -f tMakefile
--- End Message ---
--- Begin Message ---
Source: vcg
Source-Version: 1.30debian-6
We believe that the bug you reported is fixed in the latest version of
vcg, which is due to be installed in the Debian FTP archive:
vcg_1.30debian-6.diff.gz
to pool/main/v/vcg/vcg_1.30debian-6.diff.gz
vcg_1.30debian-6.dsc
to pool/main/v/vcg/vcg_1.30debian-6.dsc
vcg_1.30debian-6_i386.deb
to pool/main/v/vcg/vcg_1.30debian-6_i386.deb
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 415586@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matej Vela <vela@debian.org> (supplier of updated vcg 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 11 Apr 2007 11:22:22 +0200
Source: vcg
Binary: vcg
Architecture: source i386
Version: 1.30debian-6
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Matej Vela <vela@debian.org>
Description:
vcg - A Visualization Tool for compiler graphs
Closes: 415586
Changes:
vcg (1.30debian-6) unstable; urgency=low
.
* QA upload.
* debian/uname: Add a script to munge uname output so that the Makefile
uses preconf/X11gccLinux on GNU/kFreeBSD as well. Closes: #415586.
* Conforms to Standards version 3.7.2.
Files:
f86498a2ab11dd75aaefaf04560077b2 597 graphics optional vcg_1.30debian-6.dsc
6853f0704136eb802339f8344b069f66 8392 graphics optional vcg_1.30debian-6.diff.gz
8c0d6489f8be58fede208a60cdea2200 320452 graphics optional vcg_1.30debian-6_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGHKxHqbYs6sQrY8oRAu5VAKCdjuOQmWKUbhA1JQhK9Wg66NDK/QCghJ0c
MP1E6+QjX2uPCEZ7hrJIp5A=
=zPqf
-----END PGP SIGNATURE-----
--- End Message ---