You are not logged in.
this is kind of old, but it used to work...
http://bbs.archlinux.org/viewtopic.php? … d+packages
Be careful with it, I screwed up my system twice with it (be careful with the upgrade of binutils and glibc, they don't always finish installing, and you end with a broken system).
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
this is kind of old, but it used to work...
http://bbs.archlinux.org/viewtopic.php? … d+packagesBe careful with it, I screwed up my system twice with it (be careful with the upgrade of binutils and glibc, they don't always finish installing, and you end with a broken system).
Well I don't feel confident to try that link. The info is quite old. Please sombody help me i have no hair left to pull out. :evil:
A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"
Offline
put this in before
for s in $search; do [ ! -z $s ] && echo $e >>doable; break; done
echo "--s--"
echo $s
echo "--e-"
so I can see whats going on.
EDIT:
bah!!! forget it.
try this:
#!/bin/bash
pacman -Q | cut -d' ' -f1 | paste -s | sed 's|s| |g' >filelist
for e in `cat filelist`; do
find /var/abs/ -type d -name $e -exec echo $e >>doable ;
srcpac -Sby `cat doable`
Offline
Thanks for your help but i have still got the
unexpected end of file
error with your latest code. What does the message mean anyway?
Thanks
A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"
Offline
I really have no idea what the problem is at this point without seeing some more info. You will have to delete the doable file each time it fails though...
Offline
Well am sorry about that, thanks for yur help anyway.
A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"
Offline
try this:
http://infiditus.homelinux.org/arch/misc/srcbuild
and run srcbuild -Syz. Its a program I wrote for myself similar to srcpac. The above command should find all localy installed packages, prompt a confirmation message and install them. Do it as regular user and set up a sudo account. That way makepkg will use fakeroot to build the package and avoid writing into the root filesystem before done building and sudo to install the package through pacman.
You will need to install aurbuild from AUR for the modules because I'm too lazy to package it right now.
Offline
Thanks a lot it seems to be working. I have one question though, say the script halts of a program and i have to start it again after correcting the problem, How do i get it to continue from the program it stoped on instead of from the begining?
A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"
Offline
Thanks a lot it seems to be working. I have one question though, say the script halts of a program and i have to start it again after correcting the problem, How do i get it to continue from the program it stoped on instead of from the begining?
if a package fails it will continue on to the next. Once everything is complete and there were failed packages, it will report it back to you: "Failed packages ==> "....
Offline
I have just had a sample situation, the scrpit aborted because of the following
Password:
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
gcc: /usr/lib/libstdc++.so.5: exists in filesystem
gcc: /usr/lib/libstdc++.so.5.0.7: exists in filesystem
errors occurred, no packages were upgraded.
srcbuild: could not install package through pacman -U.
I think i will have to remove the offending files the run the script again. But it will start from the begining. How do i make it continue from where it stopped?
Also is there anyway of stopping sudo from timing out? Every now and again it stops waiting for password to continue.
A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"
Offline
I have just had a sample situation, the scrpit aborted because of the following
Password: loading package data... done. checking for file conflicts... error: the following file conflicts were found: gcc: /usr/lib/libstdc++.so.5: exists in filesystem gcc: /usr/lib/libstdc++.so.5.0.7: exists in filesystem errors occurred, no packages were upgraded. srcbuild: could not install package through pacman -U.
I think i will have to remove the offending files the run the script again. But it will start from the begining. How do i make it continue from where it stopped?
yeah..pacman errors stop it completely.
It accepts multiple package requests. I would just run -Sz again and copy the remaining packages displayed at the prompt (they are displayed in the order in which they are built), hit 'n' to stop it then do srcbuild -S <paste>.
Also is there anyway of stopping sudo from timing out? Every now and again it stops waiting for password to continue.
I don't know I set sudo without password
Offline