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 ... 14, 15, 16 ... 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
zxy
Veteran
Veteran


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

PostPosted: Thu Jan 11, 2007 1:07 pm    Post subject: Reply with quote

I'm just reading about hooks on paludis's site, but I couldn't find how to check the command line options, yet. Using a environment variable doesnt seem practiical for me.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
lefou
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 199
Location: Germany, Lusatia

PostPosted: Thu Jan 11, 2007 1:11 pm    Post subject: Reply with quote

dleverton wrote:
lefou wrote:
The hooks should be prefixed with a number, e.g. 10_, to declare the order of execution.

I don't think Paludis executes the hooks in any particular order. If it seems to do so on your machine, it might be because your filesystem is returning them in order, but it's not a good idea to rely on that.

Sounds like a good idea for a feature request, though.

EDIT: actually, I might be wrong about this. Best to test it, at least.


It works for me, but I didn't made many tests.
At least, paludis could be programmed to evaluate the hooks in alphanumerical order.
Back to top
View user's profile Send private message
lefou
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 199
Location: Germany, Lusatia

PostPosted: Thu Jan 11, 2007 1:37 pm    Post subject: Reply with quote

zxy wrote:
I'm just reading about hooks on paludis's site, but I couldn't find how to check the command line options, yet. Using a environment variable doesnt seem practiical for me.


The best solution is, to integrate "--ask" into paludis. This is a feature request! :)
Back to top
View user's profile Send private message
dleverton
Guru
Guru


Joined: 28 Aug 2006
Posts: 517

PostPosted: Thu Jan 11, 2007 1:37 pm    Post subject: Reply with quote

lefou wrote:
It works for me, but I didn't made many tests.
At least, paludis could be programmed to evaluate the hooks in alphanumerical order.

Yeah, looking at the code, I think it does sort them, but it does so rather subtly so I missed it at first.

lefou wrote:
The best solution is, to integrate "--ask" into paludis. This is a feature request! :)

Not gonna happen, I'm afraid.
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: Thu Jan 11, 2007 1:45 pm    Post subject: Reply with quote

I PM'd spb about reading command line options. We'll see what can be done.

If they (paludis) doesn't do --ask, then a user chosen hook, might be done. :D

Waiting for an answer.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Thu Jan 11, 2007 2:19 pm    Post subject: Reply with quote

Could someone be kind enough to add to the wiki how to do a fresh install with paludis only? I know one would need to start from stage 1, but all the needed steps that need to be taken to keep portage from being installed and how to start the system off with paludis only and so all the packages are brought in by paludis? I was thinking about doing a fresh install since I lost my hard drive in a crash, so I need a new system on it and I was hoping I could have a einit/paludis combination. *whistles*

I would greatly appreciate the help since I can't see, to find the document on the Paludis site anymore. I know I saw one there that described how to start from Stage 1.

My brand new hard drive is waiting for some action. :P

EDIT: Also there is a Paludis profile. Are we suppose to use that in conjunction with a Gentoo profile? If so how?

Thanks.
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Jan 11, 2007 3:37 pm    Post subject: Reply with quote

I did a fresh install(also due to a crash disk :/), just untar your stage3 tarball, fill your make.conf and so on, and once emerge is usable, emerge paludis, and then only use paludis instead of emerge, simply as that ;)

for einit, you can just use the einit.conf repository configuration file that I gave on einit wiki, that should be enough :)
_________________
The End of the Internet!
Back to top
View user's profile Send private message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Thu Jan 11, 2007 5:57 pm    Post subject: Reply with quote

ok, but how do I use the Paludis profile in the SVN? It sets the virtual for pa;udis, or do I even need to link, but the virtual file is in profiles/palludis, so is that automatically used?
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Jan 11, 2007 6:30 pm    Post subject: Reply with quote

you don't need the make.profile symlink.

I don't know for paludis profile, I've only used "gentoo" profiles
_________________
The End of the Internet!
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Thu Jan 11, 2007 9:09 pm    Post subject: Reply with quote

So is there a fix in the works for how paludis determines that something is a circular dep?

I mentioned that with USE=ssl, doing "paludis -ip libwww-perl" gives it having a circular dep and it looks like it's because it depends on another package which has a PDEPEND for libwww-perl. But doing"paludis -ip [otherpackage]" will show both packages as being installed.
Back to top
View user's profile Send private message
adekoba
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2006
Posts: 129

PostPosted: Thu Jan 11, 2007 9:31 pm    Post subject: Reply with quote

I'm planning on making a new installation (from the minimal cd) with my primary package manager as paludis. Is it possible to get a paludis snapshot, or is it only possible to install paludis through portage?

If it is possible to install paludis without portage, is it recommended?
_________________
website
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Thu Jan 11, 2007 9:42 pm    Post subject: Reply with quote

dark_speedo wrote:
I'm planning on making a new installation (from the minimal cd) with my primary package manager as paludis. Is it possible to get a paludis snapshot, or is it only possible to install paludis through portage?

If it is possible to install paludis without portage, is it recommended?


You can bootstrap with paludis, but you need to have it installed to do it. Bootstrap to an empty directory and tar up as a stage 3. There used to be a guide on paludis.berlios.de on how to do this.
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
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: Thu Jan 11, 2007 9:45 pm    Post subject: Reply with quote

The homepage moved. I didnt notice the bootstrap guide on the new homepage.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Thu Jan 11, 2007 9:54 pm    Post subject: Reply with quote

zxy wrote:
The homepage moved. I didnt notice the bootstrap guide on the new homepage.


I emailed Ciaran about that a while back

Quote:
| I'm not sure if you were aware, but the bootstrapping guide for
| creating a paludis stage3 tarball is gone now. I assume it's something
| from the transition to the new webpage. If it could be resurrected,
| that'd be truly awesome.

Yeah, I removed it. We're not recommending that as a way of getting
started any more.

--
Ciaran McCreesh


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.
Back to top
View user's profile Send private message
adekoba
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2006
Posts: 129

PostPosted: Thu Jan 11, 2007 9:56 pm    Post subject: Reply with quote

okey dokey. thanks guys.
_________________
website
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 9:50 am    Post subject: Reply with quote

I added paludis-ask.bash script to the Paludis - scripts
Description
On Paludis Scripts zxy wrote:
This scpript asks you if you want to install the designated packages and continues if you type y, Y, yes or YES. Oherwise it terminates paludis.
Hopefuly in new versions of paludis it will be possible to read the command line parameters and use this hook optionaly.

_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu


Last edited by zxy on Fri Jan 12, 2007 11:37 am; edited 1 time in total
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 10:17 am    Post subject: Reply with quote

There was an error on that page and slycordinator reminded me of that. I renamed the portage2paludis.bash script to update_overlays.bash.
Thanks
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

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

zxy wrote:
There was an error on that page and slycordinator reminded me of that. I renamed the portage2paludis.bash script to update_overlays.bash.
Thanks


why not just putting them on the wiki, so that every one can find them on their own?
_________________
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 11:47 am    Post subject: Reply with quote

I agree, but some of the scripts are quite long. Putting all those long listings there would not be practical I think.

Do you have a better solution?
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

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

zxy wrote:
I agree, but some of the scripts are quite long. Putting all those long listings there would not be practical I think.

Do you have a better solution?


yup, store them somewhere on your blog, and just give the link with a small description on the wiki.

better?

EDIT: btw, I've still got a few things to do with portage-utils, but, I'd be glad to have some feedback (just pm me) about the last 'public' patches/ebuild I made. I'll make a more detailed changelog, but basicaly here it is:

*almost gentoo repository independant (should be ok very soon)
*added scm/live/svn/cvs/9999 version support for qatom (atom_{explode,compare})*added overlay support for qatom (..),
*new cache files (.ebuild.x/.metadata.x) format
*far better log reading.. (qlop)
*added cache support for qsearch ( the key cache or write_cache in the repository configuration files)
If you find anything wrong , please, just tell me.
_________________
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 1:14 pm    Post subject: Reply with quote

I updated the wiki. If slycordinator and dleverton could take a look at the descriptions of their scripts would be nice. I hope I didn't make to many mistakes. Longer scripts are linked to my homepage, so wiki doesn't bloat.

@truc: I'll take a look at your new mastepiece. :wink:

I'll put paludis-ask on the wiki when paludis will have command line support for hooks. I tried to use export variable in bashrc, but it doesnt reach within a hook. I posted a request for this on paludis's site.

If I remember correctly new versions are comming soon, and 0.16 will bring some ABI changes. We'll se what will happen.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
dleverton
Guru
Guru


Joined: 28 Aug 2006
Posts: 517

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

zxy wrote:
I updated the wiki. If slycordinator and dleverton could take a look at the descriptions of their scripts would be nice. I hope I didn't make to many mistakes. Longer scripts are linked to my homepage, so wiki doesn't bloat.

For my scripts it looks fine to me.
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 3:16 pm    Post subject: Reply with quote

I have a solidly working -a (ask) for paludis now.

Because it doesn't support command line i used an alias to create a "new command" paludis-a.
Code:
paludis-a -i sth

asks before the install, but only
Code:
paludis -i sth
doesn't.

I can't do better for now, so any bright ideas are welcome.

The current code:
Code:
#!/bin/bash -x
#
# This is a work in progress, total functionalyti will arrive as soon as paludis
#   supports the command line parameters for hooks...
#

case $PALUDIS_ASK in
ask)

   source ${PALUDIS_EBUILD_DIR}/echo_functions.bash

   einfo "Do you want to perform an install ..."
   read -p "Type  y to continue. "
   case $REPLY in
      y | Y | yes | YES )   
         echo "Paludis will continue in 5s"
         sleep 5
         true;;
      *)
         kill $PPID;;
   esac;;

esac

To make an alias
Code:
alias paludis-a="PALUDIS_ASK=ask paludis"

_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
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 3:18 pm    Post subject: Reply with quote

I changed the wiki myself to make it clearer on my script.
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 6:14 pm    Post subject: Reply with quote

:D I have put a fully functional --ask for paludis on Paludis-Scripts, if somebody wants to test it.
When it is tested, I can put it on a wiki.

It includes a hook script and a wrapper script. I used an alias, too. But on the end it's quite simple: two files and an alias..

I'll put the final version on the forums, too, if you will like it.

-- edit ---
there was a typo in the instructions for a few minutes. sorry. It's ok now.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
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 ... 14, 15, 16 ... 19, 20, 21  Next
Page 15 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