Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352809 - sys-devel/clang: scan-build utility is not Prefix-compatible
Summary: sys-devel/clang: scan-build utility is not Prefix-compatible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 10:43 UTC by Lionel Orry
Modified: 2011-01-26 17:50 UTC (History)
1 user (show)

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


Attachments
Diff between the ebuilds generated by ecopy and the final versions (clang_manual_modifs.diff,4.38 KB, patch)
2011-01-26 10:45 UTC, Lionel Orry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lionel Orry 2011-01-26 10:43:54 UTC
Some paths are hardcoded in the scan-build utility of the clang static analyzer. These paths are already set by the ebuild, but in a non prefix-compliant way. I attempted to solve it.

Here are the steps done to port the ebuilds :

1. ecopy for the atoms '=sys-devel/clang-2.7-r4', '=sys-devel/clang-2.8-r3' and '=sys-devel/clang-9999'

2. Manual modification of the 'sed' command to include the ${EPREFIX} variable, see patch attached

3. In the case of clang-9999.ebuild, remove the ~arch keyword which IMO should not be present

4. I could only have time to test the clang-2.8-r3 version, but the change is trivial and similar for others ebuilds.

Reproducible: Always

Steps to Reproduce:
1. launch the scan-build utility from the Prefix to analyze a project
Actual Results:  
At the end, when generating the report html files, the tool will issue an error telling it cannot find 'sorttable.js'


Expected Results:  
the files sorttable.js and scanview.css should be correctly located and copied to the report folder
Comment 1 Lionel Orry 2011-01-26 10:45:30 UTC
Created attachment 260756 [details, diff]
Diff between the ebuilds generated by ecopy and the final versions

I am not sure about the KEYWORD content removal from clang-9999.ebuild, but I'll let the smart people correct me if I'm wrong :)
Comment 2 Lionel Orry 2011-01-26 10:51:02 UTC
Portage 2.2.01.17680-prefix (prefix/linux/x86, gcc-4.5.2, unavailable, 2.6.32.19-163.fc12.i686.PAE i686)
=================================================================
System uname: Linux-2.6.32.19-163.fc12.i686.PAE-i686-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-fedora-12-Constantine
Timestamp of tree: Wed, 26 Jan 2011 09:41:14 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.5-r2, 2.7.1-r00.1
dev-util/cmake:      2.8.1-r2
sys-devel/autoconf:  2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.51.0.11
sys-devel/gcc:       4.2.4-r01.2, 4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.4
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo_prefix enlightenment efl
ACCEPT_KEYWORDS="~x86 ~x86-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/lorry/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/home/lorry/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/lorry/gentoo/"
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="/home/lorry/gentoo/var/tmp"
PORTDIR="/home/lorry/gentoo/usr/portage"
PORTDIR_OVERLAY="/home/lorry/gentoo/var/lib/layman/enlightenment /home/lorry/gentoo/var/lib/layman/efl"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X afterimage bash-completion berkdb bzip2 cairo cli cracklib crypt curl cxx dbus dri eet epdf fontconfig fortran gdbm gif git gnutls graphviz gstreamer gtk hal iconv ipv6 jpeg libnotify mercurial mmx modules mp3 mp4 mudflap ncurses nls nptl nptlonly ogg openmp pcre perl png poppler postscript pppd prefix pulseaudio python readline ruby sdl session sqlite3 sse sse2 ssl subversion svg sysfs tcpd thumbnails tiff tk truetype unicode vim-syntax vorbis weather x86 xcb xdg xorg xpm xscreensaver xterm-color 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Fabian Groffen gentoo-dev 2011-01-26 17:50:23 UTC
The 9999 ebuild has KEYWORDS="" for me, ecopy adds it because it's stupid.  On a sidenote, clang was already prefix-aware, so no ecopy necessary.

I have committed your patch, thanks!