You are not logged in.

#1 2011-03-19 15:17:53

Xemertix
Member
Registered: 2009-04-09
Posts: 66

Dependency hell helper script idea

Have you ever upgraded your system one day,and the day after you tried to run a program that didn't work when you needed it?
Do you have some ignored package in pacman.conf? Will they continue to work after a system upgrade?

A very primitive script,I hope someone could improve it.

#!/bin/sh
PROGRAMS="/usr/bin/*"
for f in $PROGRAMS
do
ldd $f |grep found && echo $f
done

example:

ldd_test 
    libQtGui.so.4 => not found
    libQtCore.so.4 => not found
/usr/bin/cmake-gui
ldd: /usr/bin/core_perl: non è un file normale
    liblzma.so.0 => not found
/usr/bin/gpk-application
    liblzma.so.0 => not found
/usr/bin/gpk-backend-status
    libnotify.so.1 => not found
    liblzma.so.0 => not found
/usr/bin/gpk-dbus-service
    liblzma.so.0 => not found
/usr/bin/gpk-install-catalog
    liblzma.so.0 => not found
/usr/bin/gpk-install-local-file
    liblzma.so.0 => not found
/usr/bin/gpk-install-mime-type
    liblzma.so.0 => not found
/usr/bin/gpk-install-package-name
    liblzma.so.0 => not found
/usr/bin/gpk-install-provide-file
    liblzma.so.0 => not found
/usr/bin/gpk-log
    liblzma.so.0 => not found
/usr/bin/gpk-prefs
    liblzma.so.0 => not found
/usr/bin/gpk-repo
    liblzma.so.0 => not found
/usr/bin/gpk-service-pack
    libnotify.so.1 => not found
    liblzma.so.0 => not found
/usr/bin/gpk-update-icon
    liblzma.so.0 => not found
/usr/bin/gpk-update-viewer
    libgtk-1.2.so.0 => not found
    libgdk-1.2.so.0 => not found
    libgmodule-1.2.so.0 => not found
    libglib-1.2.so.0 => not found
/usr/bin/gtv
    liblzma.so.0 => not found
/usr/bin/pkcon
    liblzma.so.0 => not found
/usr/bin/pkgenpack
    liblzma.so.0 => not found
/usr/bin/pkmon
    libgtk-1.2.so.0 => not found
    libgdk-1.2.so.0 => not found
/usr/bin/playdv
    libQtGui.so.4 => not found
    libQtCore.so.4 => not found
/usr/bin/qv4l2

Offline

#2 2011-03-19 16:42:32

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Dependency hell helper script idea

Theres a much better script in the devtools package called lddd:

http://projects.archlinux.org/devtools.git/tree/lddd wink


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

Board footer

Powered by FluxBB