You are not logged in.

#26 2006-05-28 14:46:05

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: curious...

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

#27 2006-05-29 00:41:39

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: curious...

kakabaratruskia wrote:

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).

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

#28 2006-05-29 00:57:47

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: curious...

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

#29 2006-05-29 14:04:23

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: curious...

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

#30 2006-05-29 20:29:41

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: curious...

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

#31 2006-05-29 21:46:12

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: curious...

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

#32 2006-05-31 02:20:09

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: curious...

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

#33 2006-05-31 23:35:28

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: curious...

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

#34 2006-05-31 23:38:59

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: curious...

napoleon wrote:

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

#35 2006-06-01 00:50:55

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: curious...

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

#36 2006-06-01 01:06:34

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: curious...

napoleon wrote:

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

Board footer

Powered by FluxBB