Your message dated Wed, 26 Mar 2008 16:17:17 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#466827: fixed in sloccount 2.26-3
has caused the Debian Bug report #466827,
regarding sloccount: patch to enhance bison/flex file recognition
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.)
--
466827: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466827
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: sloccount
Version: 2.26-2.1
Severity: wishlist
Tags: patch
attached is a patch that enhances the recognition of bison/flex source files
with .yy/.ll file name extensions and files generated from these input file.
The patch also enhances the recognition of bison/flex generated files from
.y/.l files.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
diff -u sloccount-2.26/break_filelist sloccount-2.26-bison-flex/break_filelist
--- sloccount-2.26/break_filelist 2004-08-01 06:17:28.000000000 +0200
+++ sloccount-2.26-bison-flex/break_filelist 2008-02-20 13:27:10.000000000
+0100
@@ -189,7 +189,9 @@
"awk" => "awk",
"sed" => "sed",
"y" => "yacc",
+ "yy" => "yacc",
"l" => "lex",
+ "ll" => "lex",
"makefile" => "makefile",
"sql" => "sql",
"php" => "php", "php3" => "php", "php4" => "php", "php5" => "php",
@@ -850,6 +852,12 @@
if (($firstline =~ [EMAIL PROTECTED],.]\\"@) &&
$filename =~ [EMAIL PROTECTED](c|cpp|C|cxx|cc)$@) {return "not";}
+ # Make some more tests for Bison-generated files
+ if ($firstline =~ [EMAIL PROTECTED] Bison parser, made by GNU Bison@) {
+ print "Note: found bison-generated file $filename\n"
+ if $noisy;
+ return "auto";
+ }
if (!($firstline =~ [EMAIL PROTECTED]@)) {return "";} # No script indicator
here.
@@ -990,6 +998,37 @@
return "auto";
}
}
+ if ($basename =~ m/\.tab\.[ch]{2}$/) {
+ $possible_bison = $file_to_examine;
+ $possible_bison =~ s/\.tab\.[ch]{2}$/\.yy/;
+ if (-s "$possible_bison") {
+ print "Note: found bison-generated file $file_to_examine\n"
+ if $noisy;
+ return "auto";
+ }
+ }
+
+ # Flex may generate arbitraty files. Try to be a bit clever about the
+ # generated file. (Flex generates only C/C++ files - no header files.)
+ if ($basename =~ m/.c$/) {
+ $possible_flex = $file_to_examine;
+ $possible_flex =~ s/.c$/\.l/;
+ if (-s "$possible_flex") {
+ print "Note: found flex-generated file $file_to_examine\n"
+ if $noisy;
+ return "auto";
+ }
+ }
+ if ($basename =~ m/.cc$/) {
+ $possible_flex = $file_to_examine;
+ $possible_flex =~ s/.cc$/\.ll/;
+ if (-s "$possible_flex") {
+ print "Note: found flex-generated file $file_to_examine\n"
+ if $noisy;
+ return "auto";
+ }
+ }
+
# If there's a corresponding ".MASTER" file, treat this file
# as automatically-generated derivative. This handles "exmh".
--- End Message ---
--- Begin Message ---
Source: sloccount
Source-Version: 2.26-3
We believe that the bug you reported is fixed in the latest version of
sloccount, which is due to be installed in the Debian FTP archive:
sloccount_2.26-3.diff.gz
to pool/main/s/sloccount/sloccount_2.26-3.diff.gz
sloccount_2.26-3.dsc
to pool/main/s/sloccount/sloccount_2.26-3.dsc
sloccount_2.26-3_i386.deb
to pool/main/s/sloccount/sloccount_2.26-3_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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sandro Tosi <[EMAIL PROTECTED]> (supplier of updated sloccount 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.7
Date: Sun, 23 Mar 2008 19:07:22 +0100
Source: sloccount
Binary: sloccount
Architecture: source i386
Version: 2.26-3
Distribution: unstable
Urgency: low
Maintainer: Sandro Tosi <[EMAIL PROTECTED]>
Changed-By: Sandro Tosi <[EMAIL PROTECTED]>
Description:
sloccount - programs for counting physical source lines of code (SLOC)
Closes: 273477 273479 281293 379448 414656 462392 465855 466827
Changes:
sloccount (2.26-3) unstable; urgency=low
.
* Adopting package (Closes: #465855)
* Acknowledging NMU (Closes: #414656)
* debian/control
- set myself as maintainer
- bump Standards-Version to 3.7.3
- added Homepage field
- removed capitalization from short description
- long description paragraphs reformat
- fix spelling of Tcl in long description
- set debhelper build-dep version to 5
- added dpatch build-dep
- include Erlang in long description languages list
* debian/compat
- added with value 5
* debian/copyright
- upstream author indented with 4 spaces
- clear separation of copyright and license
- fixed copyright notice
- fixed license note
- added additional copyright notices for file with different ones
- added location of GPL license on debian system
* debian/rules
- removed DH_COMPAT
- removed configure target since unused
- removed commented dh_* calls
- doesn't ignore clean error anymore
- removed unneeded dh_* calls
- integration of debian/dirs
- added dpatch stuff
- added manpage installation for executables using generic_count
- added manpage installation for counting executables (Closes: #273479,
#273477)
* debian/watch
- added (thanks to DEHS)
* debian/sloccount.doc-base
- fixed section and abstract
* debian/dirs
- removed
* debian/patches/01_restore_pristine_code.dpatch
- added to restore pristine upstream code
* debian/patches/10_fix_manpage.dpatch
- fix manpage hyphen useage (lintian warning)
* debian/patches/20_bts462392_erlang_support.dpatch
- added support to Erlang; thanks to Michael Gebetsroither; (Closes:
#462392)
* debian/patches/30_bts466827_enhance_bison_flex.dpatch
- enhance bison/flex support; thanks to Ronald Aigner; (Closes: #466827)
* debian/patches/40_bts281293_ignore_autotools_files.dpatch
- ignore autotools generated files; thanks to Ronald Aigner; (Closes:
#281293)
* debian/patches/50_bts379448_ruby_recognize.dpatch
- recognize ruby script from shebang; thanks to Ronald Aigner; (Closes:
#379448)
* debian/generic_count.1
- added to be used by script calling generic_count
* debian/X_count.1
- added to be used by a set of SLOCCount binaries
Files:
fa236c79a0b7b5982f5b8907f817ebcc 623 devel optional sloccount_2.26-3.dsc
858376857a3b804169cd0ec8af09a9c9 35182 devel optional sloccount_2.26-3.diff.gz
26f87f5b6f9fd44d6670e41ddf10ccd6 113516 devel optional
sloccount_2.26-3_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFH6nTWpdwBkPlyvgMRApntAJ93wa6F9Fd21k4l+AljK8twWQj+GACeI+vN
AyhDBjEgT38biimKfvtkzGs=
=jHyJ
-----END PGP SIGNATURE-----
--- End Message ---