SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Don't worry about what it says on the screen -- only the log file.
For some reason (like maybe you pressed ENTER a few times, or there's some other weird bug that I can't reproduce) you are getting a few lines on your terminal. I don't know why but it is very late here so I will have to re-investigate this tomorrow.
(of course, maybe someone can figure this out during the night!)
Meanwhile, just go by what's in the log -- notice that orphaned libs are identified by the words:
I'm sorry for the minor thread detour, but out of interest, what happened with your -current upgrade? Those orphaned libraries look like things that shouldn't be orphaned. I do miss the package browser for quick reference on what exists where!
How do you mean "You miss the package browser" ? You mean pkgtool? It is still there.. Maybe you refer to a GUI tool like KPackage? Not sure if that still exists...
Anyhow, I am not certain what *exactly* happened to my upgrade -- I suspect it was my blatant disregard for changelog-reading while trying to do several things at once. Maybe I upgraded aaa_elflibs at the wrong time, or by the wrong means. After having finished downloading the upgrades, slackpkg began installing, and almost immediately things went to hell in a basket so I think it was elf-libs package that screwed it up. But I'm not certain.
And thanks also because looking at it I eventually founded a way of piping needed data in a "while read" construct, avoiding to write a file unnecessarily to feed it.
thanks Didier, glad you got something useful from it.
On the topic of piping stuff into `while` : I have discovered that the method I used here:
Code:
cat somefile | while read ...
works in cases where THIS code below, does not:
Code:
while read blah; do
blah blah
done < somefile
I haven't looked into why one works and the other does not, nor WHEN one works and the other does not, but if someone knows, that'd be handy to know.
I was banging my head for hours one day using the latter method, when finally I switched the code to the FORMER method and suddenly all worked correctly.
Cheers!
Sasha
EDIT: P.S. there will be an update to the script later this evening; nothing super-major, just some cleanups and slight adjustments.
EDIT: New version -- 19:55 hrs (GMT -04:00) Tue Mar 09 2010
Last edited by GrapefruiTgirl; 03-09-2010 at 05:46 PM.
I don't know if this is related to that but following your first post I ended up replacing this:
Code:
echo ${chemin_vers_client[$num_client]}/install.rdf >chemin_install.rdf
while read chemin; do
version_client[$num_client]=$(cat $chemin|awk '/<em:version>/ {print $0; exit}'|tr -d '[:alpha:]<>:/[:space:]')
done <chemin_install.rdf
by that:
Code:
version_client[$num_client]=$(echo $chemin_install_rdf| \
while read chemin; do
cat $chemin|awk '/<em:version>/ {print $0; exit}'|tr -d '[:alpha:]<>:/[:space:]'
done)
At first I tried that instead:
Code:
echo $chemin_install_rdf| \
while read chemin; do
version_client[$num_client]=$(cat $chemin|awk '/<em:version>/ {print $0; exit}'|tr -d '[:alpha:]<>:/[:space:]')
done
which didn't work because version_client[$num_client] was not accessible outside the while loop: I should have read better the abs-guide in order to understand in which cases variables are local...
At a glance, I'd say it's related, but honestly, I thought variables in the shell were only "local" to something if they were specifically defined as 'local' -- but the same thing is what was happening for me that time I spoke of: a variable was not being available inside the while loop by one means, but my the other means, it became available to the loop, but NOT available OUTSIDE the loop.
If I try to explain more about this, I may make matters worse because I don't have that particular code in front of me, and it was 'weird code' to start with. Maybe a new thread would be a good place to sort this out
How do you mean "You miss the package browser" ? You mean pkgtool? It is still there.. Maybe you refer to a GUI tool like KPackage? Not sure if that still exists...
Sorry, I meant http://packages.slackware.it/ . Like many other posters, I work from memory a lot without having a Slack box in front of me, so a completely OS agnostic search is very convenient
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.