Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398121 - x11-terms/aterm[background] failes to install /usr/bin/aterm libpng14 issue
Summary: x11-terms/aterm[background] failes to install /usr/bin/aterm libpng14 issue
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-08 04:55 UTC by Robert Larson
Modified: 2012-01-30 16:34 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 Robert Larson 2012-01-08 04:55:08 UTC
I ran updates on my machine about 2 days ago, and it upgraded from aterm-1.0.1-r1 to aterm-1.0.1-r2.  The last time that portage touched aterm was back in april, when I rebuilt my machine from scratch.  I just rebooted my machine today, so all of my terms were closed out and upon rebooting wouldn't re-open.  When I looked into it, there doesn't seem to be any aterm in /usr/bin.  I tried uninstalling, reinstalling, masking 'r2', and downgrading to 'r1' - all with no success.

Every time I ran 'which', it indicated that it couldn't find the executable, so I would then run 'equery files aterm' and this was always the output:

[code]
/usr
/usr/bin
/usr/share
/usr/share/doc
/usr/share/doc/aterm-1.0.1-r1
/usr/share/doc/aterm-1.0.1-r1/ChangeLog.bz2
/usr/share/doc/aterm-1.0.1-r1/FAQ.bz2
/usr/share/doc/aterm-1.0.1-r1/README.Unix98PTY.bz2
/usr/share/doc/aterm-1.0.1-r1/README.greek.bz2
/usr/share/doc/aterm-1.0.1-r1/README.menu.bz2
/usr/share/doc/aterm-1.0.1-r1/README.thai.bz2
/usr/share/doc/aterm-1.0.1-r1/README.xvt.bz2
/usr/share/doc/aterm-1.0.1-r1/menu
/usr/share/doc/aterm-1.0.1-r1/menu/example.menu.bz2
/usr/share/doc/aterm-1.0.1-r1/menu/jedmenu.sl.bz2
/usr/share/doc/aterm-1.0.1-r1/menu/menu.bz2
/usr/share/doc/aterm-1.0.1-r1/menu/rxvt.menu.bz2
/usr/share/doc/aterm-1.0.1-r1/menu/terminal.menu.bz2
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/aterm.1.bz2
[/code]

I tried re-syncing portage, removing the distfile and the binpkg, and re-emerging.

Finally, I tried re-emerging with --ignore-default-opts (should have thought of this sooner).

Apparently several errors appeared during build and install (yet portage didn't report or bail out on it) all to the tune of this:

[code]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng14
collect2: ld returned 1 exit status
make[1]: *** [aterm] Error 1
[/code]

I checked the log for the upgrade/install of libpng (1.5) during the same update, and sure enough, there's a message:

[quote]
WARN: postinst
Old versions of installed libraries were detected on your system.
In order to avoid breaking packages that depend on these old libs,
the libraries are not being removed.  You need to run revdep-rebuild
in order to remove these old dependencies.  If you do not have this
helper program, simply emerge the 'gentoolkit' package.

  # revdep-rebuild --library '/usr/lib64/libpng14.so.14'

Once you've finished running revdep-rebuild, it should be safe to
delete the old libraries.  Here is a copy & paste for the lazy:
  # rm '/usr/lib64/libpng14.so.14'
[/quote]


So, the issues _appear_ to be as follows:
 - Aterm isn't setup to build with anything but libpng-1.4, and
 - The aterm ebuild doesn't seem to handle errors.


Reproducible: Didn't try




Here's my emerge --info:

Portage 2.1.10.41 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.2.0-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.2.0-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P7350_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sun, 08 Jan 2012 03:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt"
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.3/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=6 --load-average=3.0"
FEATURES="assume-digests binpkg-logs candy ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.iawnet.sandia.gov/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ http://mirror.usu.edu/mirrors/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apng avahi background berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus demo dga dia dri dts dvb dvd dvdr emboss encode escreen exif extras fam ffmpeg firefox flac fortran gd gdbm gdu gif gimp gpm gtk gzip hddtemp high-ints iax iconv icu ieee1394 imlib iostats irc jabber java jingle jpeg jpeg2k ladspa lame lcms ldap libcaca libnotify live logrotate lua mad math mdnsresponder-compat mixer mmx mng mod_irc mod_muc mod_pubsub mod_python modperl modules mongrel mozdevelop mozdom moznocompose moznoirc moznomail mp3 mp4 mpeg mplayer mudflap multilib multiprocess multiuser mysql ncurses network nls nptl nptlonly nsplugin nvidia odbc odk offensive ogg openal opengl openmp pam pango pcmcia pcre pdf perl php png policykit ppds pppd pulseaudio python qt3support qt4 rar rdesktop readline regex replaygain rss ruby sdl sensord server session sftp sid skins sndfile sockets socks5 sound sox spell sql sse sse2 ssl startup-notification statistics stream subversion svg swig sysfs tcpd texteffect themes threads tiff truetype udev unicode usb v4l v4l2 vim vim-syntax vnc vorbis wav wavpack wifi winpopup wma x264 xcb xcf xine xinerama xml xmlrpc xmms2 xorg xscreensaver xulrunner xv xvid xvmc yahoo zip zlib zsh-completion" ALSA_CARDS="hda-intel" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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 ubx" 

INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robert Larson 2012-01-15 17:58:33 UTC
After doing some digging, I came to find the following:

1.  Libpng's site says this: "Apps that compiled against libpng 1.4 without warnings about deprecated features should happily compile against 1.5, too."

2.  Extracting the aterm source and grep-ing for 'lpng14' showed no results, so it was being pulled in from somewhere else during configuration.

3.  After running ./configure on the source, LIB_AFTERIMAGE gets set in several places and contains "lpng14", so it appears to be an issue with the install of afterstep still using libpng 1.4.

4.  Dropping "x11-wm/afterstep ~<arch>" into /etc/portage/package.keywords, upgrading afterstep, and reinstalling aterm fixed this problem.  (Hurray!)


With that aside, there's still the issue of aterm not failing during the compilation phase.
Comment 2 Robert Larson 2012-01-15 18:03:37 UTC
Almost forgot to mention: the version of afterstep that I was using was 2.2.9, and by adding the keywords and upgrading, I'm now at 2.2.11.

The issue should be replicable if you set the 'png' USE flag, emerge libpng >=1.5, afterstep =2.2.9, and then aterm.
Comment 3 Michael Weber (RETIRED) gentoo-dev 2012-01-29 02:32:28 UTC
The afterstep rebuild should have been triggered by the
revdep-rebuild --library /usr/lib64/libpng14.so.14
which is suggested at the libpng-1.5 emerge.

Did you remove /usr/lib64/libpng14.so.14 ?

I've some evidence that even if you run this this revdep-rebuild, it doesn't hit.
I think the right command should have been "revdep-rebuild --library libpng14.so.14".

Anyway, the link problem "-lpng14 missing" only occurs w/ an broken afterstep installation. Please take a look at "revdep-rebuild --ignore -- --ask" from time to time.
Comment 4 Robert Larson 2012-01-30 16:34:20 UTC
Yeah, I'm surprised that I overlooked putting that in the comments...  I definitely ran revdep-rebuild several times.  I can verify - it did not rebuild afterstep.

That --ignore option is pretty handy.  I've been doing it the old fashioned 'rm -rf' way for a while, it's good to know there's a cleaner way to go about it now!  Thanks!