Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302297 - app-text/sloccount-2.26-r1: don't want to count pascal code
Summary: app-text/sloccount-2.26-r1: don't want to count pascal code
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-26 10:15 UTC by Igor Poboiko
Modified: 2010-02-01 09:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Poboiko 2010-01-26 10:15:49 UTC
When I'm trying to use app-text/sloccount to count source lines of my pascal code, it gives 'SLOC total is zero, no further analysis performed.' as result.


PS sorry for my bad english

Reproducible: Always

Steps to Reproduce:
1. Create any pascal source file or use existing one
2. Run sloccount to count source lines of this file
3. See result

Actual Results:  
It ignores all source lines with pascal code

Expected Results:  
It counts all source lines with pascal code

For example:

$ cat >q.pas <<EOF
begin
  writeln('Hello world!');
end.
EOF

$ sloccount q.pas
Have a non-directory at the top, so creating directory top_dir
Adding /home/eol/devel/sloccount_tests/q.pas to top_dir
Categorizing files.
Computing results.


SLOC    Directory       SLOC-by-Language (Sorted)
0       top_dir         (none)
SLOC total is zero, no further analysis performed.

$ /usr/libexec/sloccount/pascal_count q.pas
3 q.pas
Total:
3

$ emerge  --info app-text/sloccount
Portage 2.2_rc61 (default/linux/x86/10.0/desktop, gcc-4.3.3, glibc-2.11-r1, 2.6.32-gentoo-r2dellvostro1400 i686)
=================================================================                                               
                        System Settings                                                                         
=================================================================                                               
System uname: Linux-2.6.32-gentoo-r2dellvostro1400-i686-Intel-R-_Celeron-R-_CPU_540_@_1.86GHz-with-gentoo-2.0.1 
Timestamp of tree: Tue, 26 Jan 2010 09:30:01 +0000                                                              
app-shells/bash:     4.0_p37                                                                                    
dev-java/java-config: 2.1.10                                                                                    
dev-lang/python:     2.6.4, 3.1.1-r1                                                                            
dev-util/cmake:      2.8.0-r1                                                                                   
sys-apps/baselayout: 2.0.1                                                                                      
sys-apps/openrc:     0.6.0-r1                                                                                   
sys-apps/sandbox:    2.2                                                                                        
sys-devel/autoconf:  2.13, 2.65                                                                                 
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                                                         
sys-devel/binutils:  2.20                                                                                       
sys-devel/gcc-config: 1.4.1                                                                                     
sys-devel/libtool:   2.2.6b                                                                                     
virtual/os-headers:  2.6.30-r1                                                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                                                      
ACCEPT_LICENSE="* -@EULA LOKI-EULA Q3AEULA sun-bcla-java-vm dlj-1.1 PUEL skype-eula"                            
CBUILD="i686-pc-linux-gnu"                                                                                      
CFLAGS="-O2 -march=i686 -pipe"                                                                                  
CHOST="i686-pc-linux-gnu"                                                                                       
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                   
CXXFLAGS="-O2 -march=i686 -pipe"                                                                                                             
DISTDIR="/usr/portage/distfiles"                                                                                                             
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                                             
GENTOO_MIRRORS="http://gentoo.iteam.net.ua/ http://mirror.leaseweb.com/gentoo/ ftp://de-mirror.org/distro/gentoo/"                           
LANG="C"                                                                                                                                     
LC_ALL=""                                                                                                                                    
LDFLAGS="-Wl,--as-needed"                                                                                                                    
LINGUAS="ru en"                                                                                                                              
MAKEOPTS="-j2"                                                                                                                               
PKGDIR="/usr/portage/packages"                                                                                                               
PORTAGE_CONFIGROOT="/"                                                                                                                       
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                            
PORTAGE_TMPDIR="/var/tmp"                                                                                                                    
PORTDIR="/usr/portage"                                                                                                                       
PORTDIR_OVERLAY="/usr/local/portage/layman/kde /usr/local/portage/layman/jmbsvicetto /usr/local/portage/layman/rion /usr/local/portage/layman/qting-edge /usr/local/portage/mine"                                                                                                         
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                               
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr chm cli consolekit cracklib crypt ctype cups curl cxx dbus dcc_video dell djvu dri dts dvd dvdr eds emboss encode evo exif fam fbcon fbcondecor ffmpeg filter firefox flac fortran gdbm geoip gif glib gpm gstreamer hal handbook iconv icq imagemagick ipv6 jabber jpeg jpeg2k kde kipi kontact lame laptop libnotify mad mikmod mjpeg mng modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp openssl oscar pam pcre pdf perl phonon pm-utils png policykit ppds pppd python qt-webkit qt3support qt4 quicktime readline reflection resolvconf samba sdl semantic-desktop session skype smbclient spell spl sql sqlite ssl startup-notification subversion svg sysfs taglib tcpd theora threads thunar tiff truetype unicode usb utf8 v4l v4l2 vcd vim-syntax vnc vorbis wav webkit wicd wifi win32codecs wma x264 x86 xml xmp xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" NETBEANS_MODULES="python ide nb harness" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-text/sloccount-2.26-r1 was built with the following:
USE=""
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-02-01 06:14:39 UTC
That is not a valid Pascal program. Read the 
break_filelist perl that ships with sloccount.

The Pascal file MUST fill one of the following conditions:
- ('program' || 'unit') && 'end.' && 'begin' && ('procedure' || 'function' || 'interface' || 'implementation')
- 'module' && 'end.'
- 'program' && 'begin' & 'end.'

Discuss it with upstream if you have a better set of cases to detect pascal.
Comment 2 Igor Poboiko 2010-02-01 09:32:34 UTC
Ok, thanks for your reply. I thought that sloccount works fine in other distributives (like Ubuntu), so it is Gentoo bug. But now I have checked it and saw that sloccount have same problem in them too.