Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234030 - app-vim/gentoo-syntax-20080717-r1 breaks /etc/portage/* highlighting
Summary: app-vim/gentoo-syntax-20080717-r1 breaks /etc/portage/* highlighting
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 22:17 UTC by Adam Stylinski
Modified: 2009-03-01 01:50 UTC (History)
3 users (show)

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


Attachments
gentoo.vim diff (gentoo.vim.diff,1.27 KB, patch)
2008-09-08 15:38 UTC, Jimmy.Jazz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Stylinski 2008-08-05 22:17:42 UTC
No syntax highlighting with ~* of vim.  

Reproducible: Always

Steps to Reproduce:
1. vim /etc/portage/*
2. behold the colorless syntax, attempt to do :syntax on and see no difference.

Actual Results:  
no syntax highlighting :(

Expected Results:  
Pretty and colorful syntax highlighting which somehow makes me happier and more satisfied with my life.

Considered making the severity high to be funny, but decided not to.

Portage 2.2_rc4 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.
6.25-gentoo-r6 i686) nptl nptlonly nvidia nvidia% offensive ogg openal opengl op
=================================================================d python qt qt3
System uname: Linux-2.6.25-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with
-glibc2.0rt sse sse2 ssl suexec tcpd theora threads tiff transcode truetype unic
Timestamp of tree: Tue, 29 Jul 2008 04:35:01 +0000cs x264 x86 xml xorg xpm xv xv
app-shells/bash:     3.2_p39="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 c
dev-lang/python:     2.4.4-r13, 2.5.2-r5s1938 es1968 fm801 hda-intel intel8x0 in
dev-python/pycrypto: 2.0.1-r6audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGIN
sys-apps/baselayout: 2.0.0ix dshare dsnoop empty extplug file hooks iec958 ioplu
sys-apps/openrc:     0.2.5er mulaw multi null plug rate route share shm softvol"
sys-apps/sandbox:    1.2.18.1-r3auth_basic auth_digest suexec authn_anon authn_d
sys-devel/autoconf:  2.62-r1uthn_file authz_dbm authz_default authz_groupfile au
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1av_lock dbd deflate
sys-devel/binutils:  2.18-r3xt_filter file_cache filter headers ident imagemap i
sys-devel/gcc-config: 1.4.0-r4em_cache mime mime_magic negotiation proxy proxy_a
sys-devel/libtool:   2.2.4nnect proxy_http rewrite setenvif so speling status un
virtual/os-headers:  2.6.25-r4t_alias" DVB_CARDS="or51132" ELIBC="glibc" INPUT_D
ACCEPT_KEYWORDS="x86 ~x86"ev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz63
CBUILD="i686-pc-linux-gnu"1 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -pipe -fomit-frame-pointer -msse -ms
se2 -mmmx"PFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORT
CHOST="i686-pc-linux-gnu"PRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /u
sr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf
/etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-ph
p5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /
etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -pipe -fomit-frame-pointer -msse -
msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-
orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cuden
ver.edu/gentoo/ ftp://gentoo.mirrors.pair.com/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu
de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://macbox.mshome.net/gentoo-portage"
USE="X a52 a52codec aac aalib acl alsa apache2 asm avi bash-completion berkdb bz
ip2 cd-r cddb cdr cli cpudetection cracklib crypt cscope curl custom-cflags dri
dts dv dvb dvd dvd-r dvdnav dvdr dvdread encode f77 ffmpeg flac fortran gdbm gif
 gpm gs gtk hal iconv ieee1394 imagemagick imlib ipv6 isdnlog jbig joystick jpeg
 jpeg2k kde latin1 libcaca libdvdread libg++ libwww lirc lzo mad matroska midi m
ikmod mjpeg mmx mmxext mp2 mp3 mp4 mpeg mpeg2 mplayer mudflap musepack musicbrai
nz mysql ncurses nls nptl nptlonly nvidia nvidia% offensive ogg openal opengl op
enmp openntpd oss pam pcre pdflib perl php php5 png pnm posix pppd python qt qt3
 qt4 quicktime rar readline real reflection ruby samba sasl sdl session speex sp
ell spl srt sse sse2 ssl suexec tcpd theora threads tiff transcode truetype unic
ode v4l v4l2 vcd vidix vim-syntax vorbis win32codecs x264 x86 xml xorg xpm xv xv
id xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 c
mipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 in
tel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGIN
S="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplu
g ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
 APACHE2_MODULES="actions alias auth_basic auth_digest suexec authn_anon authn_d
bd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile au
thz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate
dir disk_cache env expires ext_filter file_cache filter headers ident imagemap i
nclude info log_config logio mem_cache mime mime_magic negotiation proxy proxy_a
jp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status un
ique_id userdir usertrack vhost_alias" DVB_CARDS="or51132" ELIBC="glibc" INPUT_D
EVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz63
3 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES
="serial" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORT
AGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Adam Stylinski 2008-08-05 22:20:53 UTC
My apologies for the ugly formatting above, here it is in a pastebin:

http://rafb.net/p/GOF02D37.html
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-06 22:28:59 UTC
Which versions of vim-core/vim are these? (`emerge -vp vim-core vim')
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-06 22:39:16 UTC
I can confirm that with 
 =app-editors/vim-7.1.319
 =app-editors/vim-core-7.1.319
the newest app-vim/gentoo-syntax doesn't do highlighting at all in /etc/portage/*
Comment 4 Jimmy.Jazz 2008-09-08 15:38:05 UTC
Created attachment 164932 [details, diff]
gentoo.vim diff

a more lite weight version of 'au BufNewFile,BufRead' for package.{keyword,unmask & co } packages.

package.use-somebackupextension is also supported.
Comment 5 Adam Stylinski 2008-09-11 16:50:04 UTC
(In reply to comment #4)
> Created an attachment (id=164932) [edit]
> gentoo.vim diff
> 
> a more lite weight version of 'au BufNewFile,BufRead' for
> package.{keyword,unmask & co } packages.
> 
> package.use-somebackupextension is also supported.
> 
Yay, that fixed it.  Thank you very much.
Comment 6 Ali Polatel (RETIRED) gentoo-dev 2008-10-06 12:36:48 UTC
Set filetype (:set ft=...) for packages that don't match the patterns in
ftdetect/gentoo.vim or put the patched gentoo.vim under ~/.vim/ftdetect/
Comment 7 Andy Kittner 2008-11-02 11:56:58 UTC
May I ask why this is set to WONTFIX?
I agree that the backup-extension stuff in the proposed diff is a user preference
and shouldn't be in the system config, but I can't see a reason for the current behaviour:

 vim /etc/portage/package.use       --> without highlighting
 cd /etc/portage; vim package.use   --> with syntax highlighting

I still believe that this is not intended and got accidentally broken with the
support for subdirectories in /etc/portage, as now there is a / in the autocommand-pattern which disables matching only the basename of the path.
Comment 8 Ben Mellor 2009-03-01 01:50:01 UTC
app-vim/gentoo-syntax-20090220 fixes this issue anyway, so I've switched over to using that.