Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534036 - sci-libs/vtk-6.1.0 - webapp_pkg_postinst(): Ebuild did not call webapp_src_install()
Summary: sci-libs/vtk-6.1.0 - webapp_pkg_postinst(): Ebuild did not call webapp_src_in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-30 20:51 UTC by Stephen Bosch
Modified: 2015-01-05 15:02 UTC (History)
2 users (show)

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


Attachments
Set pkg_postinst() inside ebuild (vtk-6.1.0-r2.ebuild,10.12 KB, text/plain)
2015-01-03 15:29 UTC, Stephen Bosch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Bosch 2014-12-30 20:51:32 UTC
emerge of sci-libs/vtk-6.1.0 fails during install phase. Portage reports

* This ebuild did not call webapp_src_install() at the end
* of the src_install() function
* 
* Please log a bug on http://bugs.gentoo.org
* 
* You should use emerge -C to remove this package, as the
* installation is incomplete




Reproducible: Always

Steps to Reproduce:
1. Set USE="-examples -web"
2. emerge -av =sci-libs/vtk-6.1.0::gentoo

Actual Results:  
Build completes successfully, but installation fails with message

>>> Original instance of package unmerged safely.
 * 
 * This ebuild did not call webapp_src_install() at the end
 * of the src_install() function
 * 
 * Please log a bug on http://bugs.gentoo.org
 * 
 * You should use emerge -C to remove this package, as the
 * installation is incomplete
 * 
 * ERROR: sci-libs/vtk-6.1.0::gentoo failed (postinst phase):
 *   Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called pkg_postinst
 *   environment, line 4579:  Called webapp_pkg_postinst
 *   environment, line 6550:  Called die
 * The specific snippet of code:
 *           die "Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org";
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/vtk-6.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/vtk-6.1.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =vtk-6.1.0
 * The complete build log is located at '/var/tmp/portage/sci-libs/vtk-6.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/vtk-6.1.0/temp/environment'.
 * Working directory: '/usr/lib64/python3.3/site-packages'
 * S: '/var/tmp/portage/sci-libs/vtk-6.1.0/work/VTK-6.1.0'
!!! FAILED postinst: 1
>>> Regenerating /etc/ld.so.cache...

>>> Recording sci-libs/vtk::gentoo in "world" favorites file...



Expected Results:  
The installation completes normally without errors.

The build log could not be found on the path specified by portage.

# emerge --info =sci-libs/vtk-6.1.0::gentoo
Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.2
KiB Mem:     8090616 total,   2457404 free
KiB Swap:    3903788 total,   3861452 free
Timestamp of tree: Fri, 26 Dec 2014 19:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo kde tox-overlay science gis testing
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/tox-overlay /var/lib/layman/science /var/lib/layman/gis /usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr emboss encode exif extras faac fam firefox flac fortran gdbm gif gimp glamor gpm gtk hwdb iconv icu ipv6 jpeg kde kdeprefix laptop lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango parport pcre pdf perl png policykit ppds python qt3support qt4 readline rtmp sdl semantic-desktop session spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg taglib tcpd theora threads tiff truetype udev udisks unicode upower usb v4l video vorbis win32codecs wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr nb nb_NO en_GB en_CA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel vesa radeon" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

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

sci-libs/vtk-6.1.0 was built with the following:
USE="X boost doc ffmpeg python qt4 rendering tcl theora tk -R -all-modules (-aqua) -cg -examples -gdal -imaging -java -json -kaapi -mpi -mysql -odbc -offscreen -postgres -smp -tbb -test -views -web -xdmf2" ABI_X86="64" PYTHON_TARGETS="python2_7" VIDEO_CARDS="-nvidia"
Comment 1 Stephen Bosch 2015-01-03 15:29:10 UTC
Created attachment 393072 [details]
Set pkg_postinst() inside ebuild

This ebuild sets pkg_postinst() {
    use web && webapp_pkg_postinst
}

This ebuild is tested working with USE="-web" and incorporates the dependency requirement from bug 533606.
Comment 2 Alexis Ballier gentoo-dev 2015-01-05 15:02:59 UTC
+*vtk-6.1.0-r1 (05 Jan 2015)
+
+  05 Jan 2015; Alexis Ballier <aballier@gentoo.org> +vtk-6.1.0-r1.ebuild:
+  Add missing dep on jsoncpp, bug #533606 by Stephen Bosch; do not set
+  VTK_INSTALL_NO_DEVELOPMENT=ON as this makes it installs only libraries, not
+  headers nor cmake helpers, bug #534750 by Andreas Schäfer; override
+  webapp.eclass exported functions as we want webapp support optional, bug
+  #534036
+


thanks!