Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2011-01-09 Thread Simon McVittie
On Tue, 04 Jan 2011 at 10:40:52 +, Mark Brown wrote:
 On Mon, Jan 03, 2011 at 09:48:38PM +0100, Jakub Wilk wrote:
  -   dh_installmanpages -a
  +   dh_installman -a $(shell find -type f -name '*.[0-9]')
 
 ...if you're going to do the conversion why not do it properly?

Hopefully the patch below is better? It's also available from
http://git.debian.org/?p=users/smcv/qa/tendra.git which also has some
minor lintian fixes as separate commits.

(I can't help wondering how useful this compiler remains without support for
non-i386 architectures, though; perhaps it's time to consider removing it
from testing?)

Regards,
S

commit e0f44a65a1891e113255fea6b9c7493675d905bc
Author: Simon McVittie s...@debian.org
Date:   2011-01-09 18:36:29 +

Port from dh_installmanpages to dh_installman, avoiding a FTBFS caused by 
file(1) thinking one man page is Fortran source code (Closes: #608179)

diff --git a/debian/changelog b/debian/changelog
index a28db6d..03ce8d8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tendra (4.1.2-18.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Port from dh_installmanpages to dh_installman, avoiding a FTBFS caused
+by file(1) thinking one man page is Fortran source code (Closes: #608179)
+
+ -- Simon McVittie s...@debian.org  Sun, 09 Jan 2011 17:36:26 +
+
 tendra (4.1.2-18) unstable; urgency=low
 
   * The kernel team have decided to stop shipping page.h (closes: #479978).
diff --git a/debian/rules b/debian/rules
index 5dd386c..a86300e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -44,7 +44,7 @@ binary-arch: build install
dh_installdocs -a
dh_installexamples -a
dh_installmenu -a
-   dh_installmanpages -a
+   dh_installman -a
mv debian/tendra/usr/bin/tcc debian/tendra/usr/bin/tendracc
mv debian/tendra/usr/share/man/man1/tcc.1 
debian/tendra/usr/share/man/man1/tendracc.1
rm debian/tendra/usr/bin/trans debian/tendra/usr/share/man/man1/trans.1
diff --git a/debian/tendra.manpages b/debian/tendra.manpages
new file mode 100644
index 000..d798a77
--- /dev/null
+++ b/debian/tendra.manpages
@@ -0,0 +1,14 @@
+src/producers/c/tdfc2.1
+src/producers/cpp/tcpplus.1
+src/tools/disp/disp.1
+src/tools/pl/pl.1
+src/tools/tcc/tcc.1
+src/tools/tcc/tccenv.5
+src/tools/tcc/tchk.1
+src/tools/tld/tld.1
+src/tools/tnc/tnc.1
+src/tools/tspec/tspec.1
+src/utilities/calculus/calculus.1
+src/utilities/lexi/lexi.1
+src/utilities/sid/sid.1
+src/installers/80x86/linux/trans.1



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2011-01-09 Thread Mark Brown
On Sun, Jan 09, 2011 at 07:00:31PM +, Simon McVittie wrote:

 Hopefully the patch below is better? It's also available from
 http://git.debian.org/?p=users/smcv/qa/tendra.git which also has some
 minor lintian fixes as separate commits.

Yes, that's a lot less hideous.  I've actually got an equivalent fix
sitting locally, I'm just waiting for my i386 chroot to gurn through
stuff (actually I'm going to have dinner and hopefully it'll be done
before I get back but hey).

 (I can't help wondering how useful this compiler remains without support for
 non-i386 architectures, though; perhaps it's time to consider removing it
 from testing?)

It's useful as a lint tool even without the backends; one of these days
I may actually get around to getting it to build without the compiler
bit.



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2011-01-09 Thread Mark Brown
On Sun, Jan 09, 2011 at 07:00:31PM +, Simon McVittie wrote:

 Hopefully the patch below is better? It's also available from
 http://git.debian.org/?p=users/smcv/qa/tendra.git which also has some
 minor lintian fixes as separate commits.

BTW, some things regarding the git tree:

- You need to say which branch to look at; things like git pull need
  this.
- Please always share changes via e-mail as well as git; this allows for
  code review.
- Please don't mix release critical bug fixes in with random other
  changes.

Thanks,
Mark



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2011-01-04 Thread Mark Brown
On Mon, Jan 03, 2011 at 09:48:38PM +0100, Jakub Wilk wrote:

 Or, better, stop using dh_installmanpages. It's been deprecated for over  
 6 years for very good reasons.

It wasn't visibly deprecated immediately, I think the warnings have only
been on for this release or something.

 See the attached patch.

Err...

 - dh_installmanpages -a
 + dh_installman -a $(shell find -type f -name '*.[0-9]')

...if you're going to do the conversion why not do it properly?



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2011-01-03 Thread Jakub Wilk

* Mark Brown broo...@sirena.org.uk, 2010-12-31, 17:46:
Clearly this used to work in the past. Putting the block in place so 
the bugs are linked, but clearly we can bodge around this. If we're 
going to bodge, though, it's probably more useful to look at the man 
page and figure out how to tune it to make file happy as that's likely 
to involve figuring out the ultimate bug with file.


Or, better, stop using dh_installmanpages. It's been deprecated for over 
6 years for very good reasons.


See the attached patch.

--
Jakub Wilk
diff -u tendra-4.1.2/debian/rules tendra-4.1.2/debian/rules
--- tendra-4.1.2/debian/rules
+++ tendra-4.1.2/debian/rules
@@ -44,7 +44,7 @@
 	dh_installdocs -a
 	dh_installexamples -a
 	dh_installmenu -a
-	dh_installmanpages -a
+	dh_installman -a $(shell find -type f -name '*.[0-9]')
 	mv debian/tendra/usr/bin/tcc debian/tendra/usr/bin/tendracc
 	mv debian/tendra/usr/share/man/man1/tcc.1 debian/tendra/usr/share/man/man1/tendracc.1
 	rm debian/tendra/usr/bin/trans debian/tendra/usr/share/man/man1/trans.1


Processed: Re: Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-31 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tag 608179 patch
Bug #608179 [src:tendra] tendra: FTBFS: mv: cannot stat 
`debian/tendra/usr/share/man/man1/tcc.1': No such file or directory
Added tag(s) patch.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
608179: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608179
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-31 Thread Cyril Brulebois
tag 608179 patch
thanks

Mark Brown broo...@debian.org (28/12/2010):
 Thanks.  This looks like debhelper messed up and hasn't copied the man
 page for the compiler in.

It looks like that's due to dh_installmanpages's relying on “file -z”
to check it's indeed a manpage, which seems to fail here for that
file:
| nob...@kitty:~/tendra-4.1.2$ file -z src/tools/tcc/tcc.1
| src/tools/tcc/tcc.1: FORTRAN program

The attached patch seems to work around this issue, tagging
accordingly.

KiBi.
--- tendra-4.1.2/debian/rules
+++ tendra-4.1.2/debian/rules
@@ -45,6 +45,11 @@
 	dh_installexamples -a
 	dh_installmenu -a
 	dh_installmanpages -a
+	# Hotfix for #608179:
+	if [ ! -e debian/tendra/usr/share/man/man1/tcc.1 ]; then \
+		echo dh_installmanpages missed tcc.1, installing manually; \
+		install -p -m644 src/tools/tcc/tcc.1 debian/tendra/usr/share/man/man1/tcc.1; \
+	fi
 	mv debian/tendra/usr/bin/tcc debian/tendra/usr/bin/tendracc
 	mv debian/tendra/usr/share/man/man1/tcc.1 debian/tendra/usr/share/man/man1/tendracc.1
 	rm debian/tendra/usr/bin/trans debian/tendra/usr/share/man/man1/trans.1


signature.asc
Description: Digital signature


Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-31 Thread Mark Brown
clone 608179
reassign -1 file
retitle -1 file: Fails to identify some man pages correctly
block 608179 -1
kthxbye

Clearly this used to work in the past. Putting the block in place so the bugs 
are linked, but clearly we can bodge around this. If we're going to bodge, 
though, it's probably more useful to look at the man page and figure out how to 
tune it to make file happy as that's likely to involve figuring out the 
ultimate bug with file.

In any case, I'll look at this tomorrow.

On 31 Dec 2010, at 17:36, Cyril Brulebois wrote:

 tag 608179 patch
 thanks
 
 Mark Brown broo...@debian.org (28/12/2010):
 Thanks.  This looks like debhelper messed up and hasn't copied the man
 page for the compiler in.
 
 It looks like that's due to dh_installmanpages's relying on “file -z”
 to check it's indeed a manpage, which seems to fail here for that
 file:
 | nob...@kitty:~/tendra-4.1.2$ file -z src/tools/tcc/tcc.1
 | src/tools/tcc/tcc.1: FORTRAN program
 
 The attached patch seems to work around this issue, tagging
 accordingly.
 
 KiBi.
 tendra+608179.diff




--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed (with 1 errors): Re: Processed (with 4 errors): Re: Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-31 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 clone 608179 -1
Bug#608179: tendra: FTBFS: mv: cannot stat 
`debian/tendra/usr/share/man/man1/tcc.1': No such file or directory
Bug 608179 cloned as bug 608515.

 reassign -1 file
Bug #608515 [src:tendra] tendra: FTBFS: mv: cannot stat 
`debian/tendra/usr/share/man/man1/tcc.1': No such file or directory
Bug reassigned from package 'src:tendra' to 'file'.
Bug No longer marked as found in versions tendra/4.1.2-18.
 retitle -1 file: Fails to identify some man pages correctly
Bug #608515 [file] tendra: FTBFS: mv: cannot stat 
`debian/tendra/usr/share/man/man1/tcc.1': No such file or directory
Changed Bug title to 'file: Fails to identify some man pages correctly' from 
'tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No 
such file or directory'
 block 608179 -1
Unknown command or malformed arguments to command.

 kthxbye
Stopping processing here.

Please contact me if you need assistance.
-- 
608515: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608515
608179: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608179
-1: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=-1
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-28 Thread Jakub Wilk

Source: tendra
Version: 4.1.2-18
Severity: serious
Justification: fails to build from source

tendra fails to build from source in a clean sid i386 chroot. Tail of 
the build log:


| dh_installmanpages -a
| dh_installmanpages: This program is deprecated, switch to dh_installman.
| dh_installmanpages: Compatibility levels before 5 are deprecated.
| mv debian/tendra/usr/bin/tcc debian/tendra/usr/bin/tendracc
| mv debian/tendra/usr/share/man/man1/tcc.1 
debian/tendra/usr/share/man/man1/tendracc.1
| mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or 
directory
| make: *** [binary-arch] Error 1

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-28 Thread Mark Brown
On Tue, Dec 28, 2010 at 12:31:53PM +0100, Jakub Wilk wrote:

 tendra fails to build from source in a clean sid i386 chroot. Tail of  
 the build log:

It would be helpful to provide the full build log; in general when
reporting build issues you should always link to the full build log in
the report.



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-28 Thread Jakub Wilk

* Mark Brown broo...@debian.org, 2010-12-28, 15:25:
tendra fails to build from source in a clean sid i386 chroot. Tail of 
the build log:


It would be helpful to provide the full build log


Attached.

--
Jakub Wilk


tendra_4.1.2-18_i386.build.gz
Description: Binary data


Bug#608179: tendra: FTBFS: mv: cannot stat `debian/tendra/usr/share/man/man1/tcc.1': No such file or directory

2010-12-28 Thread Mark Brown
On Tue, Dec 28, 2010 at 04:59:17PM +0100, Jakub Wilk wrote:
 * Mark Brown broo...@debian.org, 2010-12-28, 15:25:

 It would be helpful to provide the full build log

 Attached.

Thanks.  This looks like debhelper messed up and hasn't copied the man
page for the compiler in.



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org