Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After Unemerge Binary is still in /usr/bin directory WTF ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Vegan
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2007
Posts: 133

PostPosted: Thu May 10, 2007 4:28 pm    Post subject: After Unemerge Binary is still in /usr/bin directory WTF ? Reply with quote

I'm running lot of bleeding edge software and using LDFLAGS so I'm gonna put my problem here.
I've noticed recently that after unemerging some program binary file is still in /usr/bin/directory I must to remove it manually , I',m using my flags, prelink itp. from a while and this problem came up suddenly , anyone know something about this bug ?
Needed informations :
Code:

emerge --info
Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.21-light4-SDv0.47 i686)
=================================================================
System uname: 2.6.21-light4-SDv0.47 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 2.0.0_alpha2
Timestamp of tree: Wed, 09 May 2007 13:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.5
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
ALSA_CARDS="emu10k1"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
ALSA_TOOLS="as10k1 ld10k1 lo10k1 qlo10k1 ac3dec"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache/"
CCACHE_SIZE="1G"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="3"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose --changelog"
EMERGE_WARNING_DELAY="2"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
GCC_PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://dev.gentoo.org/~vapier"
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
HOME="/home/michal"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.17.50.0.5/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info"
INPUT_DEVICES="keyboard mouse"
KERNEL="linux"
LANG="pl_PL.utf8"
LANGUAGE="48"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common -s"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBGL_DRIVERS_PATH="/usr/lib/dri"
LINGUAS="pl"
LOGNAME="root"
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.17.50.0.5/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/:/usr/qt/3/doc/man"
OPENGL_PROFILE="ati"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/lib/ccache/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="info warn error log"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="16"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentopia /usr/portage/local/layman/sunrise /usr/portage/local/layman/arcon-portage /usr/portage/local/layman/portato /usr/portage/local/layman/custom-kernels /usr/portage/local/layman/gentoo-de /usr/local/portage"
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.10:/opt"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
ROOT="/"
ROOTPATH="/opt/bin:/usr/lib/ccache/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
STAGE1_USE="nptl nptlonly unicode"
SUDO_COMMAND="/usr/bin/emerge --info"
SUDO_GID="1000"
SUDO_UID="1000"
SUDO_USER="michal"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USE="7zip X acl alsa berkdb bitmap-fonts branding cairo cdr cli cracklib crypt dbus dhcp dri dvd dvdr dvdread emboss encode evo extraicons extramodules fam fat fbcon ffmpeg firefox flac fortran gdbm gif glibc-omitfp gnome gpm gstreamer gtk gtk2 hal hashstyle hddtemp iconv ipv6 isdnlog java jpeg lame ldap libg++ lm_sensors mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ntfs ogg opengl oss pam pcre pdf perl plugins png pppd python qt3 qt3support qt4 quicktime readline reflection reiserfs sdl session spell spl sse sse2 ssl svg symlink tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs wmf x264 x86 xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal"
VIDEO_CARDS="radeon fglrx vesa"
XARGS="xargs -r"
XAUTHORITY="/home/michal/.Xauthority"

_________________
Go Vegan! For The Sake of Animals
//Gentoo 2007.0/desktop, portage- 2.1.3_rc8, kernel @ 2.6.22-kamikaze1 (CFSv19) i686, "/" REISER4, ~x86, gcc-4.1.2, glibc-2.5-r3
//P4 2.4Ghz, 768 RAM , ATI Radeon X1600pro AGP, P4P800, SB Live ! 5.1, WDC 80GB
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, overlooking Dublin's docklands

PostPosted: Thu May 10, 2007 5:07 pm    Post subject: Reply with quote

maybe something modified the file after it was created?
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
Vegan
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2007
Posts: 133

PostPosted: Fri May 11, 2007 4:35 pm    Post subject: Reply with quote

anyone ?
_________________
Go Vegan! For The Sake of Animals
//Gentoo 2007.0/desktop, portage- 2.1.3_rc8, kernel @ 2.6.22-kamikaze1 (CFSv19) i686, "/" REISER4, ~x86, gcc-4.1.2, glibc-2.5-r3
//P4 2.4Ghz, 768 RAM , ATI Radeon X1600pro AGP, P4P800, SB Live ! 5.1, WDC 80GB
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Fri May 11, 2007 6:48 pm    Post subject: Reply with quote

mdeininger wrote:
maybe something modified the file after it was created?


If a file has a different checksum than when it was created, emerge will not toast it. That could be your problem...
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
Vegan
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2007
Posts: 133

PostPosted: Fri May 11, 2007 7:51 pm    Post subject: Reply with quote

ok so this is propably the cause , but what could possibly modify a file after install , it's a prelink fault ? Any ideas ?
Is theere any way to force emerge -C to remove binary either is modified after or not ?
_________________
Go Vegan! For The Sake of Animals
//Gentoo 2007.0/desktop, portage- 2.1.3_rc8, kernel @ 2.6.22-kamikaze1 (CFSv19) i686, "/" REISER4, ~x86, gcc-4.1.2, glibc-2.5-r3
//P4 2.4Ghz, 768 RAM , ATI Radeon X1600pro AGP, P4P800, SB Live ! 5.1, WDC 80GB
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Sat May 12, 2007 3:04 pm    Post subject: Reply with quote

well.. u can write a script,
when a checksum is modified in the emerge -C foo u get:
--- !mtime obj /full/path/to/foo

just collect all of those warnings a delete the files.
Back to top
View user's profile Send private message
Conan
Guru
Guru


Joined: 02 Nov 2004
Posts: 360

PostPosted: Sat May 12, 2007 3:10 pm    Post subject: Reply with quote

possibly prelink?
Back to top
View user's profile Send private message
Vegan
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2007
Posts: 133

PostPosted: Sun May 13, 2007 3:31 am    Post subject: Reply with quote

OK , but I don't get it , prelink is supported by portage .....
definitly is a problem with modified file cause unemerge give me something like !md5 /usr/bin/someprogram
ech .. anybody know solution for this ?
_________________
Go Vegan! For The Sake of Animals
//Gentoo 2007.0/desktop, portage- 2.1.3_rc8, kernel @ 2.6.22-kamikaze1 (CFSv19) i686, "/" REISER4, ~x86, gcc-4.1.2, glibc-2.5-r3
//P4 2.4Ghz, 768 RAM , ATI Radeon X1600pro AGP, P4P800, SB Live ! 5.1, WDC 80GB
Back to top
View user's profile Send private message
wyv3rn
Apprentice
Apprentice


Joined: 18 Aug 2005
Posts: 154
Location: USA

PostPosted: Sun May 13, 2007 6:00 am    Post subject: Reply with quote

You can use the qcheck utility from portage-utils to update the package db CONTENTS file before removing the package:

qcheck -u packagename
Back to top
View user's profile Send private message
Vegan
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2007
Posts: 133

PostPosted: Sun May 13, 2007 12:54 pm    Post subject: Reply with quote

sample output:
Code:
Updating games-arcade/supertux-9999 ...
 MD5-DIGEST: /usr/games/bin/supertux (recorded 'b7fdea1cae279a897c5e4674088f69dc' != actual '4374f76351a22c88c43ebfd68d77690e')
  * 2178 out of 2179 files are good

But it's not solving the problem emerge -C still not removing the binary
SO ok , prelink is modifing files , but anyone know a way to force emerge -C to remove file even when md5 don't match ?
_________________
Go Vegan! For The Sake of Animals
//Gentoo 2007.0/desktop, portage- 2.1.3_rc8, kernel @ 2.6.22-kamikaze1 (CFSv19) i686, "/" REISER4, ~x86, gcc-4.1.2, glibc-2.5-r3
//P4 2.4Ghz, 768 RAM , ATI Radeon X1600pro AGP, P4P800, SB Live ! 5.1, WDC 80GB
Back to top
View user's profile Send private message
wyv3rn
Apprentice
Apprentice


Joined: 18 Aug 2005
Posts: 154
Location: USA

PostPosted: Sun May 13, 2007 4:40 pm    Post subject: Reply with quote

I don't see why it wouldn't remove the binary. When you do qcheck -u on the package it updates the portage DB CONTENTS file. After that portage has no way of knowing the file has changed... it thinks it installed it itself. Always works for me. Tested again just now to be sure.

Did a no-option "qcheck packagename" give the package a clean bill of health after the "qcheck -u packagename"? The only other thing you could do if it is not working is to re-merge the package you want to remove before removing it. That will sync up the CONTENTS file with what is actually installed.. just like qcheck does.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum