Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RESOLVIDO]Remover "stub" (injected)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
codemaker
Guru
Guru


Joined: 03 Jun 2004
Posts: 398
Location: Lisboa, Portugal

PostPosted: Sun Oct 10, 2004 11:00 am    Post subject: [RESOLVIDO]Remover "stub" (injected) Reply with quote

Viva!

Como é que se remove um "stub"?

Tenho alguns pacotes "injected" com emerge -i mas alguns deles já não precisam de estar "injected". Como é que removo essa informação?

Obrigado.


Last edited by codemaker on Sun Oct 10, 2004 2:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Sun Oct 10, 2004 11:10 am    Post subject: Reply with quote

Code:

for dir in $(find /var/db/pkg -maxdepth 2 -mindepth 2)
do
        if [ ! -f ${dir}/CONTENTS ]
        then
                echo "${dir/\/var\/db\/pkg\//}"
        fi
done

See einjected from https://forums.gentoo.org/viewtopic.php?t=67849
Removing injected packages just means unmerging them.
(Sorry, don't know how to write anything in Portuguese, hardly can read it :wink:)
Back to top
View user's profile Send private message
codemaker
Guru
Guru


Joined: 03 Jun 2004
Posts: 398
Location: Lisboa, Portugal

PostPosted: Sun Oct 10, 2004 11:49 am    Post subject: Reply with quote

hmm.. that script doesn't seem to work very well. I remember injectinf xfree and kde3.2.3 but the script doesn't find them.

I have tried to unmerge the injected packages before but it didn't work. But I can unmerge the packages found by that script... makes me think there's something wrong with my portage. Maybe badly injected packages...
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Sun Oct 10, 2004 12:33 pm    Post subject: Reply with quote

Did a minor change to the script - now it does the same as isInjected from portage.py so I guess it has to find everything that's injected. Please try again, if it doesn't find the other ones I'd assume they were unmerged correctly.

portage.py wrote:
Code:

# grep isInjected /usr/lib/portage/pym/portage.py -A 6 -n
4240:   def isInjected(self,mycpv):
4241-           if self.cpv_exists(mycpv):
4242-                   if os.path.exists(self.root+VDB_PATH+"/"+mycpv+"/INJECTED"):
4243-                           return True
4244-                   if not os.path.exists(self.root+VDB_PATH+"/"+mycpv+"/CONTENTS"):
4245-                           return True
4246-           return False
Back to top
View user's profile Send private message
gmichels
Guru
Guru


Joined: 20 Jun 2003
Posts: 480
Location: Brazil

PostPosted: Sun Oct 10, 2004 12:49 pm    Post subject: Reply with quote

Se vc souber o pacote, é só fazer 'emerge -C <pacote>', da mesma maneira que se o pacote tivesse sido realmente instalado.
Back to top
View user's profile Send private message
codemaker
Guru
Guru


Joined: 03 Jun 2004
Posts: 398
Location: Lisboa, Portugal

PostPosted: Sun Oct 10, 2004 2:21 pm    Post subject: Reply with quote

I'm going to assume I forgot that I already unmerged those packages and forgot all about it ;)


---

Para quem não entende bem o inglês, o que me estava a acontecer é que não conseguia fazer unmerge (emerge -C) de certos pacotes que estava convencido que tinha injectado. O Earthwings disponibilizou um script que pesquisa e mostra os pacotes injectados e não apareceram os que eu estava à espera. Vou então assumir que já tinha feito unmerge a esses pacotes mas que esqueci que o tinha feito.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese 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