Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PALUDIS] Support thread (current v. 0.30.*) - Part 5
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Sun Apr 05, 2009 7:28 am    Post subject: Reply with quote

How to uninstall gcc-4.1.2 now after I'v swithed to using gcc-4.3.2?

Or just: If a package is required by <system>, is there a clean way to uninstall it?
_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
slangdaddy
n00b
n00b


Joined: 17 Jul 2007
Posts: 73
Location: Braunschweig

PostPosted: Sun Apr 05, 2009 8:24 am    Post subject: Reply with quote

@Paapaa:

What about
Code:
paludis -up =sys-devel/gcc-4.1.2 --permit-unsafe-uninstalls


Be careful though, because --permit-safe uninstalls ignores dependencies.
Back to top
View user's profile Send private message
krisse
Guru
Guru


Joined: 15 Mar 2005
Posts: 325
Location: Sweden

PostPosted: Sun Apr 12, 2009 5:06 pm    Post subject: Reply with quote

I've run into this twice lately, with separate packages:

The below happened with kppp; the previous was with some other kde app, exactly the same error although I can't recall specificly which package it was --- but, in both cases, when running install again there were no problems what so ever.

Code:
 * Regenerating environment...
Regenerating //etc/ld.so.cache...
 * Done regenerating environment
 * Updating CONFIG_PROTECT and CONFIG_PROTECT_MASK caches.

Unhandled exception:
  * In program /usr/bin/paludis [vvery long line with options and what not (the list of apps to install is +200)]:
  * When performing install action from command line:
  * When executing install task:
  * When triggering hook 'install_pre':
  * When running hook script '/usr/libexec/paludis/hooks/install_pre/log.bash' for hook 'install_pre':
  * When running command 'bash '/usr/libexec/paludis/hooks/install_pre/log.bash'':
  * fork failed: Cannot allocate memory (paludis::RunCommandError)


Now, I've got plenty of space left for /var, which as far as I can tell is the only place that log.bash is writing, so that's not it. What might be going on here, you think?


EDIT: It happened again, but at a different point than before:

Code:
 * Updating CONFIG_PROTECT and CONFIG_PROTECT_MASK caches.

(132 of 174, 2 failed) Installing net-misc/tightvnc-1.3.9-r2:0::gentoo

Trying to fetch 'ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/tightvnc-1.3.9_unixsrc.tar.bz2' to 'tightvnc-1.3.9_unixsrc.tar.bz2'...
fork failed: Cannot allocate memory'


At which point everything froze; no fail, no continuation, just a standstill until I killed the process(es).
Back to top
View user's profile Send private message
Ivan_D
n00b
n00b


Joined: 26 Nov 2007
Posts: 52
Location: Odessa, Ukraine

PostPosted: Fri Sep 25, 2009 8:11 am    Post subject: Reply with quote

Is there an eclean alternative for paludis?
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Sat Sep 26, 2009 1:03 pm    Post subject: Reply with quote

paludis miscompiles sandbox on one of my machines - paludis thinks that installation is successful, but it doesn't install sandbox binary and library (which breaks paludis, unless I copy binaries from another machine).

Code:
(1 of 1) Installing sys-apps/sandbox-2.1:0::gentoo

Checking 'sandbox-2.1.tar.lzma'... ok
>>> Running ebuild phase killold as root:root...
>>> Starting builtin_killold                   
>>> Done builtin_killold                       
>>> Completed ebuild phase killold             
>>> Running ebuild phases init saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_init                                             
>>> Done builtin_init                                                 
>>> Starting builtin_saveenv                                         
>>> Done builtin_saveenv                                             
>>> Completed ebuild phases init saveenv                             
--- No need to do anything for setup phase                           
>>> Running ebuild phases loadenv unpack saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv                                                   
>>> Done builtin_loadenv                                                       
>>> Starting src_unpack                                                         
>>> Unpacking sandbox-2.1.tar.lzma to /var/tmp/paludis/sys-apps-sandbox-2.1/work
lzma -dc /usr/distfiles/sandbox-2.1.tar.lzma | tar xf - --no-same-owner         
>>> Done src_unpack                                                             
sandbox                                                                         
>>> Starting builtin_saveenv                                                   
>>> Done builtin_saveenv                                                       
>>> Completed ebuild phases loadenv unpack saveenv                             
>>> Running ebuild phases loadenv compile saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv                                                     
>>> Done builtin_loadenv                                                         
>>> Starting src_compile                                                         
>>> Done src_compile                                                             
>>> Starting builtin_saveenv                                                     
>>> Done builtin_saveenv                                                         
>>> Completed ebuild phases loadenv compile saveenv                             
>>> Running ebuild phases loadenv install saveenv as root:root...               
>>> Starting builtin_loadenv                                                     
>>> Done builtin_loadenv                                                         
>>> Starting src_install                                                         
>>> Done src_install                                                             
>>> Starting builtin_saveenv                                                     
>>> Done builtin_saveenv                                                         
>>> Completed ebuild phases loadenv install saveenv                             
>>> Stripping inside /var/tmp/paludis/sys-apps-sandbox-2.1/image                 
>>> Running ebuild phases loadenv preinst saveenv as root:root...               
>>> Starting builtin_loadenv                                                     
>>> Done builtin_loadenv                                                         
>>> Starting pkg_preinst                                                         
>>> Done pkg_preinst                                                             
>>> Starting builtin_saveenv                                                     
>>> Done builtin_saveenv                                                         
>>> Completed ebuild phases loadenv preinst saveenv                             
>>> Writing VDB entry to '/var/db/pkg/sys-apps/-checking-sandbox-2.1'...         
>>> Writing VDB entry keys ...                                                   
>>> Generating saved ebuild and environment...                                   
>>> Finished writing VDB entry                                                   
>>> Checking whether we can merge to / ..........                               
>>> Merging to /                                                                 
=>> [dir] /etc                                                                   
=>> [dir] /etc/env.d                                                             
<-> [obj] /etc/env.d/09sandbox                                                   
=>> [dir] /var                                                                   
=>> [dir] /var/log                                                               
=>> [dir] /var/log/sandbox                                                       
<-> [obj] /var/log/sandbox/.keep_sys-apps_sandbox-0                             
=>> [dir] /usr                                                                   
=>> [dir] /usr/share                                                             
=>> [dir] /usr/share/doc                                                         
=>> [dir] /usr/share/doc/sandbox-2.1                                             
<-> [obj] /usr/share/doc/sandbox-2.1/AUTHORS                                     
<-> [obj] /usr/share/doc/sandbox-2.1/ChangeLog                                   
<-> [obj] /usr/share/doc/sandbox-2.1/ChangeLog.0                                 
<-> [obj] /usr/share/doc/sandbox-2.1/NEWS                                       
<-> [obj] /usr/share/doc/sandbox-2.1/README


what's that "sandbox" line after Done src_unpack? that's the first difference between this and another, working machine.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5733

PostPosted: Sat Sep 26, 2009 2:21 pm    Post subject: Reply with quote

Ivan_D wrote:
Is there an eclean alternative for paludis?


I just wrote this in 10 minutes but it seems to be reasonably accurate:

Code:
echo "Getting source files..."
downloadlist=$(tempfile -p src_)
for i in /var/db/pkg/*/*/SRC_URI; do
    for j in $(grep -o '://[^ ]\+' $i); do
        basename $j >> $downloadlist
    done
done
echo "List saved to $downloadlist"

distdir=$(grep -r distdir /etc/paludis/ | head -n1 | cut -d'=' -f2)
unusedlist=$(tempfile -p del_)
for i in $distdir/*; do
    [[ -d $i ]] && continue
    fgrep $(basename $i) $downloadlist || echo $i >> $unusedlist
done
echo "Unused files saved to $unusedlist"
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Sat Sep 26, 2009 3:10 pm    Post subject: Reply with quote

if you install paludis with the ruby bindings, in /usr/share/paludis/ruby/demos there's a find_unused_distfiles.rb that you can use to find the distfiles.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 491
Location: NRW, Germany

PostPosted: Wed Oct 07, 2009 1:04 pm    Post subject: Reply with quote

I recently installed kde4 and now I want to get rid of the remaining :3.5 packages.
Can paludis list all installed packages from kde-base with slot 3.5?
Back to top
View user's profile Send private message
redbottle
n00b
n00b


Joined: 15 Mar 2007
Posts: 25

PostPosted: Wed Oct 07, 2009 3:31 pm    Post subject: Reply with quote

Dr.Willy wrote:
I recently installed kde4 and now I want to get rid of the remaining :3.5 packages.
Can paludis list all installed packages from kde-base with slot 3.5?


"paludis -up kde-base/*:3.5" should work.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Wed Oct 07, 2009 4:37 pm    Post subject: Reply with quote

redbottle wrote:
Dr.Willy wrote:
I recently installed kde4 and now I want to get rid of the remaining :3.5 packages.
Can paludis list all installed packages from kde-base with slot 3.5?


"paludis -up kde-base/*:3.5" should work.

Code:
paludis -q kde-base/*:3.5::installed
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5733

PostPosted: Wed Oct 07, 2009 7:29 pm    Post subject: Reply with quote

Wow, I learned something new today. It even works for --install! (not much use given the gentoo tree's layout, but it works for xfce-base/* and rox-base/*)

I fixed the slowness problem I had before, turned out I didn't have write_cache set :oops:
(I just realised my other post ended up in the old thread somehow... oh well.)
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 491
Location: NRW, Germany

PostPosted: Wed Oct 07, 2009 7:59 pm    Post subject: Reply with quote

sera wrote:
redbottle wrote:
Dr.Willy wrote:
I recently installed kde4 and now I want to get rid of the remaining :3.5 packages.
Can paludis list all installed packages from kde-base with slot 3.5?


"paludis -up kde-base/*:3.5" should work.

Code:
paludis -q kde-base/*:3.5::installed

Neat.
Thanks
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Thu Oct 08, 2009 5:03 pm    Post subject: Reply with quote

updating qt 4.5.2->4.5.3 needs uninstalling qt to work around all those blocks... is it some new policy? upgrades are dangerous?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5733

PostPosted: Thu Oct 08, 2009 7:04 pm    Post subject: Reply with quote

Doesn't portage do the same? I'd guess it's trying to prevent a situation where the install fails halfway through and leaves half of each version installed with neither working.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2664
Location: Slovenia

PostPosted: Fri Oct 09, 2009 8:47 pm    Post subject: Reply with quote

Ant_P wrote:
Doesn't portage do the same?

Portage resolves the blocks itself and the upgrade is done without any need for user intervention.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Sat Oct 10, 2009 2:36 pm    Post subject: Reply with quote

Strange, but I can't reinstall all packages from dev-python category.
I try:

Code:

paludis -pi dev-python/*::installed --dl-upgrade as-needed
Building target list...
Building dependency list: ...paludis@1255185329: [WARNING dep_list.no_visible] In thread ID '12549':
  ... In program paludis (--show-use-descriptions none --dl-reinstall if-use-changed  --log-level warning --dl-downgrade warning --dl-fall-back as-needed) -pi dev-python/*::installed --dl-upgrade as-needed:
  ... When performing install action from command line:
  ... When executing install task:
  ... When building dependency list:
  ... When adding PackageDepSpec 'dev-python/*::installed':
  ... No visible packages matching 'dev-python/*::installed', falling back to installed package 'dev-python/sip-4.8::installed'
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Oct 10, 2009 2:56 pm    Post subject: Reply with quote

MageSlayer wrote:
Strange, but I can't reinstall all packages from dev-python category.

Code:
qlist -IC dev-python | xargs paludis -pi --dl-upgrade as-needed
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Sat Oct 10, 2009 3:04 pm    Post subject: Reply with quote

sera wrote:
MageSlayer wrote:
Strange, but I can't reinstall all packages from dev-python category.

Code:
qlist -IC dev-python | xargs paludis -pi --dl-upgrade as-needed


Thanks. I think the following way is a bit cleaner.
Code:
paludis -pi $(qlist -IC dev-python) --dl-upgrade as-needed


qlist is not paludis command? Am I right?

Question to local gurus:
Is it possible to use only paludis utils?
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Sat Oct 10, 2009 3:14 pm    Post subject: Reply with quote

You can use some of the portage tools as long as your system maintains a level of portage compatibility.

if you want to update all python packages, why not us python-updater -P paludis?
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Oct 10, 2009 3:25 pm    Post subject: Reply with quote

MageSlayer wrote:
qlist is not paludis command? Am I right?
Nor is it a portage command.
Back to top
View user's profile Send private message
MageSlayer
Apprentice
Apprentice


Joined: 26 Jul 2007
Posts: 250
Location: Ukraine

PostPosted: Sat Oct 10, 2009 4:21 pm    Post subject: Reply with quote

loftwyr wrote:
You can use some of the portage tools as long as your system maintains a level of portage compatibility.

if you want to update all python packages, why not us python-updater -P paludis?


Yes. I understand. Just it seems strange that dev-python/*::installed or something similar is not implemented.
I've used python-updater recently, it emits a number of packages like boost which take ages to build (even if compiler would not crash during the build)

Quote:
Nor is it a portage command.

Yeap, I know :)
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Sat Oct 10, 2009 4:45 pm    Post subject: Reply with quote

Code:
  ... When adding PackageDepSpec '>=app-crypt/gnupg-2.0.11':
  ... Downgrade to 'app-crypt/gnupg-2.0.11:0::gentoo' from 'app-crypt/gnupg-2.0.13:0::installed' forced


sigh...

all I wanted from paludis was "category/* flag" syntax for config files and now I have to fix and workaround so many features...
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2325
Location: Germania

PostPosted: Thu Jan 07, 2010 9:46 pm    Post subject: Reply with quote

I installed paludis-0.42.3 and have configured it but one thing. how do I tell paludis to set eclass variables. for ebuild developing, testing purposes? I just do not find some docs. :?
there are these I would like to change.
Quote:
PORTAGE_ECLASS_WARNING_ENABLE: 0
CMAKE_NO_COLOR: 1
#CMAKE_VERBOSE: 1
KDE_REQUIRED: optional

_________________
boost|select libs to build|slotable|python-buildid

hear hear
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Thu Jan 07, 2010 10:04 pm    Post subject: Reply with quote

Set them in /etc/paludis/bashrc
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2325
Location: Germania

PostPosted: Thu Jan 07, 2010 11:02 pm    Post subject: Reply with quote

hmm, although I put it in /etc/paludis/bashrc the eclass sets its default value.

edit #1
paludis won't support global shell variables to be set.
so no tweak to alter dependency calculation in strange eclasses. :?
_________________
boost|select libs to build|slotable|python-buildid

hear hear


Last edited by geki on Fri Jan 08, 2010 2:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 6 of 7

 
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