lgrind (dev-tex/lgrind) requires a syntax definition file, lgrindef. Gentoo stores this in a non-default location. The result is that upon installation, lgrind works properly for root but fails to find lgrindef for non-root users. This bug seems closely related to bug #35097. That bug was marked fixed 18 months ago due to an upstream fix. Reproducible: Always Steps to Reproduce: Actual Results: bens@plan9 $ lgrind -s When specifying a language case is insignificant. You can use the name of the language, or, where available, one of the synonyms in parantheses. Thus the following are legal and mark Tcl/Tk, Pascal and Fortran input, respectively: lgrind -ltcl/tk ... lgrind -lpaSCAL ... lgrind -lf ... The list of languages currently available in your lgrindef file: cannot find lgrindef file `' Expected Results: plan9 ~ # lgrind -s When specifying a language case is insignificant. You can use the name of the language, or, where available, one of the synonyms in parantheses. Thus the following are legal and mark Tcl/Tk, Pascal and Fortran input, respectively: lgrind -ltcl/tk ... lgrind -lpaSCAL ... lgrind -lf ... The list of languages currently available in your lgrindef file: Ada MLisp (Emacs Mock Lisp) Asm SML/NJ (ML) Asm68 Scheme (scm) BASIC model Batch (bat) Modula2 (mod2, m2) C Pascal (pas, p, bp) C++ (CC) PERL (pl) csh PostScript (ps) FORTRAN (f77, f) PROLOG Gnuplot Python (py) Icon RATFOR IDL RLaB ISP Russell Java SAS Kimwitu++ (kimw) SDL LaTeX sh LDL SICStus Lex src Linda SQL make Tcl/Tk (tcl, tk) MASM VisualBasic (vbasic) MATLAB VMSasm Mercury yacc (y) # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.1 1-hardened-r15 i686) ================================================================= System uname: 2.6.11-hardened-r15 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r1, 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.8.1-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -fomit-f rame-pointer -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/ 3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kd e/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xk b /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/conf ig/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /us r/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -fomit -frame-pointer -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks fixpackages prelink sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo" LDFLAGS=" -Wl,-O1 -Wl,--enable-new-dtags" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X Xaw3d aac aalib acl afs aim alsa apache2 apm ared atlas auctex audiof ile avi bash-completion berkdb bitmap-fonts blas bzlib cdparanoia cdr commercial crypt cups curl dga directfb divx4linux dlloader doc dvd dvdread edl emacs embo ss encode esd exif fam fbcon ffmpeg fftw firefox fla flac foomaticdb fortran fre etype ftp gb gd gdbm ggi gif ginac gmp gpm gstreamer gtk gtk2 guile hardened har denedphp icq imagemagick imap imlib ipv6 jabber jack java jikes jit jpeg junit k erberos krb4 ladcca lcms ldap libcaca libg++ libwww mad matroska mbox mikmod mim e ming mjpeg mmx mmx2 mmxext mng motif mozsvg mp3 mpeg msn musepack mysql ncurse s network nls nptl nptlonly offensive ogg oggvorbis opengl oscar pam pcmcia pdfl ib perl pic pie plotutils png pnp posix python quicktime readline real samba sdl session silc slang softmmu speex spell sse sse2 ssl svg svgalib sysvipc tcpd te tex theora tidy tiff truetype truetype-fonts type1-fonts udev usb videos vorbis win32codecs wmf wxwindows xanim xine xinerama xml xml2 xmms xpm xv xvid yahoo zl ib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, MAKEOPTS
Not very surprising if you consider the gcc line used to compile it : gcc -O2 -DDEFSFILE=\"\" -DVERSION=\"\" -c lgrind.c so it tries to open "" as lgrindef... The attached patch fixes it (apply it against the ebuild). Regards, Alexandre
Created attachment 72639 [details, diff] Ptahc for finding lgrindef
Created attachment 144958 [details] Ebuild updated per the previous patch I wasn't able to get the patch to apply correctly, so I made the suggested changes manually and it works. This ebuild does not appear to have a maintainer...please let me know if it does, otherwise I will take it to the Sunrise and/or Scince overlay. Thanks, Alexandre!
I had the same problem. This patched worked for me.
actually, i think i fixed that also with the latest revision of lgrind