Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Paludis support thread (current v. 0.14.3) - Part 1
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 19, 20, 21  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
egoist
n00b
n00b


Joined: 24 Nov 2005
Posts: 12
Location: Effin pink unicorns

PostPosted: Fri Jan 12, 2007 7:04 pm    Post subject: Reply with quote

slycordinator wrote:
Though really there's no way to not have portage anyway. It's in the base profiles and many system packages depend on it directly.
It is possible, though a lot of work to maintain.
Back to top
View user's profile Send private message
SanKuKai
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 228
Location: Toulouse, France

PostPosted: Fri Jan 12, 2007 7:30 pm    Post subject: Reply with quote

Hi !

I use exclusively Paludis for a few months now so I'm looking for a way to get rid of Portage which is totally useless on my system.
I thought it was impossible because some ebuilds like shadow depend apparently on Portage :

Code:

$ cat shadow-4.0.18.1.ebuild 
 [...]
 DEPEND="${RDEPEND}
         >=sys-apps/portage-2.0.51-r2
         nls? ( sys-devel/gettext )"
 [...]
 


But this post :

slycordinator wrote:

I added the paludis profile into my repository "profiles = whatever" which gave me the ability to have paludis provide virtual/portage and now I no longer have portage on this here laptop (if something goes wrong I can always put it back in).

gave me some hope. :)

So I changed the profiles variable in my repositories configuration files :
Code:

profiles = ${ROOT}/var/paludis/repositories/paludis-overlay/profiles/paludis


But now each time I try to use Paludis I get this error :

Code:
 
# paludis -pi world
Building target list... paludis@1168375284: [QA] In program paludis -pi world:
    ... When performing install action from command line:
    ... When adding install target 'world':
    ... When adding profile directory '/var/paludis/repositories/paludis-overlay/profiles/paludis:
    ... When adding profile configuration file '/var/paludis/repositories/paludis-overlay/profiles/paludis/packages':
    ... No match for '-*>=sys-apps/portage-2.0.51.22'
   
Unhandled exception:
    * In program paludis -pi world:
    * When performing install action from command line:
    * When adding install target 'world':
    * When handling profile ARCH variable:
    * Portage repository configuration error: ARCH variable is unset or empty (N7paludis35PortageRepositoryConfigurationErrorE)


Am I doing something wrong ? Using this profile will really enable me to uninstall Portage ?

Thanks in advance ! :wink:
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Fri Jan 12, 2007 7:34 pm    Post subject: Reply with quote

qlist portage | grep sbin wrote:

/usr/lib/portage/bin/dosbin
/usr/lib/portage/bin/newsbin
/usr/sbin/archive-conf
/usr/sbin/dispatch-conf
/usr/sbin/emaint
/usr/sbin/emerge-webrsync
/usr/sbin/env-update
/usr/sbin/etc-update
/usr/sbin/fixpackages
/usr/sbin/quickpkg
/usr/sbin/regenworld


Still sure you wanna get rid of portage?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
SanKuKai
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 228
Location: Toulouse, France

PostPosted: Fri Jan 12, 2007 8:14 pm    Post subject: Reply with quote

truc wrote:
qlist portage | grep sbin wrote:

/usr/lib/portage/bin/dosbin
/usr/lib/portage/bin/newsbin
/usr/sbin/archive-conf
/usr/sbin/dispatch-conf
/usr/sbin/emaint
/usr/sbin/emerge-webrsync
/usr/sbin/env-update
/usr/sbin/etc-update
/usr/sbin/fixpackages
/usr/sbin/quickpkg
/usr/sbin/regenworld


Still sure you wanna get rid of portage?


Yes I am ! :D

etc-update and dispatch-conf have substitutes (cfg-update for instance), and I'm sure writing an equivalent to env-update won't be too hard. :)
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Fri Jan 12, 2007 8:26 pm    Post subject: Reply with quote

SanKuKai wrote:
etc-update and dispatch-conf have substitutes (cfg-update for instance), and I'm sure writing an equivalent to env-update won't be too hard. :)


I don't know if you've really tried them but.. didn't try cfg-update because I didn't like the description, and conf-update is ncurse which is just too much...

anyway, that's up to you :)

As for the env-update script, you're probably right, I don't even know if we really need it :/
_________________
The End of the Internet!
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Fri Jan 12, 2007 8:28 pm    Post subject: Reply with quote

Does --ask work for anybody?

------------

Here is a quick install if you are interested in --ask for paludis. Three commands:
Code:
# wget  http://drzile.dyndns.org/paludis_scripts/_paludis_wrapper.bash -O /usr/local/bin/_paludis_wrapper.bash
# wget http://drzile.dyndns.org/paludis_scripts/paludis-ask.bash -O /usr/share/paludis/hooks/install_all_pre/paludis-ask.bash
# alias paludis="sh _paludis_wrapper.bash"


I could really use some feedback

--- edit !!!!!

first wget was wrong !!!! now it is correct

---edit

renamed the paludis_wrapper.bash to _paludis_wrapper.bash.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu


Last edited by zxy on Fri Jan 12, 2007 11:41 pm; edited 9 times in total
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Fri Jan 12, 2007 8:31 pm    Post subject: Reply with quote

SanKuKai wrote:
So I changed the profiles variable in my repositories configuration files :
Code:

profiles = ${ROOT}/var/paludis/repositories/paludis-overlay/profiles/paludis


That code is wrong.

Here's mine
Code:
profiles = ${ROOT}/var/portage/repositories/gentoo/profiles/default-linux/x86/2006.1 /var/portage/repositories/paludis-overlay/profiles/paludis/


Note that the output is all 1 line.
Take a look in your paludis profile directory and look at the file packages. What it's doing is removing portage from the base profile and putting paludis in it's place. Now if you remove the first line (the one that removes portage from base profile) you won't get that error. On the other hand, your system profile wouldn't consist of much (just paludis).

What you should do is what I did: You use the regular gentoo profile then add the paludis profile as well. This gives you the same exact gentoo profile only paludis is now the package that's calculated as part of the base profile.

Hope that makes sense.
Back to top
View user's profile Send private message
dleverton
Guru
Guru


Joined: 28 Aug 2006
Posts: 517

PostPosted: Fri Jan 12, 2007 8:36 pm    Post subject: Reply with quote

SanKuKai wrote:
I'm sure writing an equivalent to env-update won't be too hard. :)

http://sources.gentoo.org/viewcvs.py/eselect/trunk/modules/env.eselect?view=markup :wink:
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Fri Jan 12, 2007 8:37 pm    Post subject: Reply with quote

Portage comes useful!!! Do not delete it yet.

I was moving from glibc-2.4-r4 (conrad) to glibc-2.5. I had to use portage for at least a few packages, because paludis was segfaulting, then later emerge was segfaulting and paludis didn't.

I know that was a heavy move (diferent hashstyles), but nevertheless keep portage for a while.

But you are free to experiment! 8)
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Fri Jan 12, 2007 8:43 pm    Post subject: Reply with quote

Ther was a mistake in a quick install for --ask. It works now. check up a few posts.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
egoist
n00b
n00b


Joined: 24 Nov 2005
Posts: 12
Location: Effin pink unicorns

PostPosted: Fri Jan 12, 2007 8:53 pm    Post subject: Reply with quote

SanKuKai wrote:
Code:

$ cat shadow-4.0.18.1.ebuild 
 [...]
 DEPEND="${RDEPEND}
         >=sys-apps/portage-2.0.51-r2
         nls? ( sys-devel/gettext )"
 [...]
 

sys-apps/portage.
You need to make an overlay and edit that depend out of those ebuilds.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Fri Jan 12, 2007 9:05 pm    Post subject: Reply with quote

Why is it that when I do a pretend run, the output for a package that has a version of 0 has the version number removed?

I had written a script to take the output of this pretend run and make a list of all the packages that would be installed including their version numbers. But a couple virtuals have an ebuild with a version number of 0 which paludis gets rid of in the output. So when I run my sed command it makes a package that says "=virtual/libiconv" rather than "=virtual/libiconv-0"

It's inconsistent to do it the way we got it, imo.
Back to top
View user's profile Send private message
SanKuKai
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 228
Location: Toulouse, France

PostPosted: Fri Jan 12, 2007 9:08 pm    Post subject: Reply with quote

truc:

truc wrote:
SanKuKai wrote:
etc-update and dispatch-conf have substitutes (cfg-update for instance), and I'm sure writing an equivalent to env-update won't be too hard. :)


I don't know if you've really tried them but.. didn't try cfg-update because I didn't like the description, and conf-update is ncurse which is just too much...

anyway, that's up to you :)


I don't like it either, that's why I actually use this script proposed by Baptux on the french paludis thread :
Code:

#!/bin/zsh
 function readrep(){
   print ">> ---- ${confpath}/${conf}"
   print ">> q : quit, z : zap new , u : use new"
   read -sk rep
   case $rep in
     q) exit 0;;
     z) \rm $config;;
     u) \mv $config ${confpath}/${conf};;
     *) readrep;;
   esac
 }
 LISTCFG=(/etc/**/._cfg*) 2>/dev/null
 if [ -n "$LISTCFG" ];then
   for config in /etc/**/._cfg*;do
     confpath=${config:h}
     conf=${${config:t}#._*_}
     diff -Nau ${confpath}/${conf} $config | more
     readrep
   done
 else
   print "Aucune mise a jour a effectuer."
 fi


It's very simple, maybe too (impossible to merge files) but it suits my needs. :wink:

slycordinator:

slycordinator wrote:

What you should do is what I did: You use the regular gentoo profile then add the paludis profile as well. This gives you the same exact gentoo profile only paludis is now the package that's calculated as part of the base profile.

Hope that makes sense.


Excellent! :)
Portage is now removed from my system. 8)
Thanks a lot! :)

dleverton:

dleverton wrote:

http://sources.gentoo.org/viewcvs.py/eselect/trunk/modules/env.eselect?view=markup :wink:

Wonderful! It will be helpful, thanks! :wink:

zxy:

zxy wrote:

I know that was a heavy move (diferent hashstyles), but nevertheless keep portage for a while.

But you are free to experiment! 8)

Yeah! I love danger! :P
Back to top
View user's profile Send private message
Bapt
Veteran
Veteran


Joined: 14 Apr 2003
Posts: 1152
Location: Paris

PostPosted: Fri Jan 12, 2007 10:20 pm    Post subject: Reply with quote

portage removed for me too thanks a lot

Why do we have to define the profiles for each repository (perhaps it's just me who do that ?). Profiles are always the same for each overlay we use no ? so a global entry somewhere like (profile.conf) should be enough instead of duplicating the profiles line, no ?

I wrote cfg-update like presented by sankukai with the only options I was used to use in dispatch-conf before. It could be a lot improved easily, but I'd like to to what you would like it to do.
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Fri Jan 12, 2007 11:12 pm    Post subject: Reply with quote

After PM sessions with truc, he upgraded the --ask script. It now works even in grouped options.
For example
Code:
paludis -ia openoffice
waits for your aprooval (y/Y/yes/YES). :D

I uploaded it to Paludis-Scripts a few seconds ago.

Should we wait until Paludis upgrades bring us --ask support ?
Me and truc say: Neaaa :D
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Fri Jan 12, 2007 11:38 pm    Post subject: Reply with quote

truc noticed that bash completion didn't work any more because of the name of paludis_wrapper.bash, so I renamed the script to _paludis_wrapper.bash. The new version is on the scripts page already.

All that needs to be done if you have it installed already (be sure to get the latest version) is to rename the paludis_wrapper.bash to _paludis_wrapper.bash and change the alias.
Code:
# cd /usr/local/bin
# mv  paludis_wrapper.bash _paludis_wrapper.bash
# alias paludis="sh _paludis_wrapper.bash"


Don't forget to get the latest version, because it includes -a, --ask and any gruped combination with other options.

---------

PS: When you visit the paludis-scripts page, try the yellow schema - speed 4, possibly with konqueror.(you might like it)
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu


Last edited by zxy on Sat Jan 13, 2007 8:01 am; edited 1 time in total
Back to top
View user's profile Send private message
Bapt
Veteran
Veteran


Joined: 14 Apr 2003
Posts: 1152
Location: Paris

PostPosted: Sat Jan 13, 2007 1:15 am    Post subject: Reply with quote

Another cool feature I'd like to see in paludis is the ability to remove unused/deprecated distfiles as packages are uninstalled/upgraded like this no more need for cleaning up the distfile directory.

The feature is implemented in freebsd's portmaster and I find it very useful, can it be done by hooks or should it be implemented in paludis directly ?
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Sat Jan 13, 2007 1:41 am    Post subject: Reply with quote

There was a bug in --ask script.
Example
Code:
zxy bin # paludis --regenerate-installed-cache
-regenerte-installed-cache and -regenerate-installed-cache
Usage error: Error handling command line: Bad argument '--regenerte-installed-cache'
Try /usr/bin/paludis --help
   

It deleted "a" in the -- options: regenerate -> regenerte
It is repaired now.

Solution: copy over the new _paludis_wrapper.bash

Hopefully the las bug. :roll:
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
dhave
Apprentice
Apprentice


Joined: 28 Oct 2005
Posts: 298
Location: Still outside the Matrix ...

PostPosted: Sat Jan 13, 2007 2:55 am    Post subject: I need an error message that Paludis doesn't want to give me Reply with quote

O.K., here's a hitch I've encountered:

I've been using Paludis for about a week with no probs. Today, though, I did a kernel recompile, which in my case meant that I needed to recompile the ipw2200 and ieee80211 packages for my wireless card.

I've done this many times with emerge. When I try to emerge ipw2200 after a kernel compile, I always get an error message saying something about needing to re-emerge ieee80211. Then when I try to re-emerge ieee80211, I get a very helpful message saying this:
Code:

 * Your kernel source contains an incompatible version of the
 * ieee80211 subsystem, which needs to be removed before
 * ieee80211-1.1.13 can be installed. This can be accomplished by running:
 *
 *   # /bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux
 *
 * Please note that this will make it impossible to use some of the
 * in-kernel IEEE 802.11 wireless LAN drivers (eg. orinoco).
 *


However, when I ran "paludis -i ieee80211" just now, I didn't get this informative and essential message. Instead, I got a fairly routine paludis failure message (sorry I didn't note it), but with no instructions to run this special fix.

Is there a way to get paludis to be so agreeable as to produce the necessary error message (that is presumably in the ebuild)?

In this instance, I just used emerge to reinstall ieee80211 and then ipw2200. Then, before using paludis again, I had to be careful to run "paludis --regenerate-installed-cache" since I had used emerge.

Can anyone enlighten me? Is there some reason why this kind of message isn't being produced by paludis?

Thanks.
_________________
This space available!
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Sat Jan 13, 2007 3:16 am    Post subject: Reply with quote

the error message would help

you can ask the paludis devs on IRC: freenode/paludis
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
dhave
Apprentice
Apprentice


Joined: 28 Oct 2005
Posts: 298
Location: Still outside the Matrix ...

PostPosted: Sat Jan 13, 2007 4:24 am    Post subject: Reply with quote

Umm. My bad. The essential error message was way up at the top of the output when I ran paludis. I hadn't seen it because I was running a plain terminal without scrolling. Just now I tried again with a scroll-enabled terminal, and when I scrolled up a couple of screens, I found the message instructing me what I needed to do to complete the installation of ieee80211.

I guess what I've learned is that I need to use a scrollable terminal when I use paludis.
_________________
This space available!
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Sat Jan 13, 2007 8:04 am    Post subject: Reply with quote

Bapt wrote:
Another cool feature I'd like to see in paludis is the ability to remove unused/deprecated distfiles as packages are uninstalled/upgraded like this no more need for cleaning up the distfile directory.

The feature is implemented in freebsd's portmaster and I find it very useful, can it be done by hooks or should it be implemented in paludis directly ?

Try requesting this feature here http://trac.pioto.org:8000/paludis/
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
dayul
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 180
Location: Blackpool, England

PostPosted: Sat Jan 13, 2007 9:46 am    Post subject: Reply with quote

I just installed crossdev and noticed that the crossdev script uses emerge and other portage variables (e.g PORTDIR_OVERLAY). I'm not too familiar with any of this, but if i get some spare time i'll see if i can work out how to make a paludis friendly script based upon the original one. Any help would also be appreciated.

Would this be of use to anyone?
_________________
Mailtc- system tray mail checker.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Sat Jan 13, 2007 11:43 am    Post subject: Reply with quote

Quote:
I just installed crossdev and noticed that the crossdev script uses emerge and other portage variables (e.g PORTDIR_OVERLAY). I'm not too familiar with any of this, but if i get some spare time i'll see if i can work out how to make a paludis friendly script based upon the original one


try contrarius, havent played much with it but seems to be working fine.

cheers
edit: fixed typo
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
dayul
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 180
Location: Blackpool, England

PostPosted: Sat Jan 13, 2007 12:00 pm    Post subject: Reply with quote

Quote:
try contrarius, havent played much with it but seems to be working fine.


I didn't notice the contrarius use flag, but that sounds great.
I'll try that, thanks! :D

Dale
_________________
Mailtc- system tray mail checker.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 19, 20, 21  Next
Page 16 of 21

 
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