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, 4 ... 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
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Mon Nov 27, 2006 10:21 pm    Post subject: Reply with quote

before adding this stuff into the overlay, I think the different ebuilds&packages should be tested by volunteers.

So for now, we're waiting for some feed back for
  • revdep-rebuild
  • portage-utils

just post here, or pm the author, if you have any suggestion to do.

I don't know for jordan83 (with revdep-rebuild ), but I have not had any feed back (except on the overlay patch which is on BGO) on the paludis patch, I don't even know, if it suits every one needs..

On the other Hand, if the package are not in the overlay, very few users will test it. so, why not just repository masking them, just the way new version/package are introduced into the gentoo tree, and when a package seems mature enough, then unmask it.

what about that?
_________________
The End of the Internet!


Last edited by truc on Wed Nov 29, 2006 7:35 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: Mon Nov 27, 2006 10:30 pm    Post subject: Reply with quote

revdep-rebuild is updated, link on a wiki is updated too.

@truc eix thing works for me. I had to delete a few spaces that were added to the code while copying from the post. I deleted them on the wiki. I hope they work.
_________________
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: Tue Nov 28, 2006 8:04 am    Post subject: Reply with quote

for ccache don't forget to add another line to /etc/paludis/bashrc
Code:
export CXX="ccache g++"
for caching C++.
_________________
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: Tue Nov 28, 2006 12:23 pm    Post subject: Reply with quote

Hi,

I had a question about security updates with paludis, is this something that can be done?

What i'm really looking for is something that warns me about security updates if there are any after syncing, is this possible? (maybe with a 'sync_all_post' hook script).

Great work btw to ciaranm and all the other people working on paludis.
_________________
Mailtc- system tray mail checker.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Tue Nov 28, 2006 12:29 pm    Post subject: Reply with quote

dayul wrote:
I had a question about security updates with paludis, is this something that can be done?

You need to USE="glsa".

dayul wrote:
What i'm really looking for is something that warns me about security updates if there are any after syncing, is this possible? (maybe with a 'sync_all_post' hook script).


Give this a go. It's entirely untested and contains zillions of typos, but it should give you enough that you can figure it out and post something that works...

Code:

#!/bin/bash

source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
einfo "Checking for security updates..."
${PALUDIS_COMMAND} --pretend --install --dl-upgrade as-needed security
echo
true
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: Wed Nov 29, 2006 7:08 am    Post subject: Reply with quote

Paludis 0.10.0 is out.
_________________
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: Wed Nov 29, 2006 9:59 am    Post subject: Reply with quote

ciaranm wrote:
Give this a go. It's entirely untested and contains zillions of typos, but it should give you enough that you can figure it out and post something that works...


Thanks ciaranm, that works great as is.
_________________
Mailtc- system tray mail checker.
Back to top
View user's profile Send private message
Lloeki
Guru
Guru


Joined: 14 Jun 2006
Posts: 437
Location: France

PostPosted: Wed Nov 29, 2006 10:15 am    Post subject: Reply with quote

with 0.10 out, I decided I'd give paludis a try. works great so far.
I have a few remarks though:

- I followed the migration guide, which worked well. but at the end (paludis -pi), paludis complained about some '???' stuff in various places of a certain ebuild. weird enough, the only place where '???' was present was LICENSE='???', but paludis was complaining about it at other places. replaced '???' with some random text, and it worked.
- 'paludis -pi' then failed, complaining about missing whitespace after ( in some other ebuild. they were custom-made, so no worry, I modified that. but the thing I want to raise is that I needed to modify it in various unexpected places: the ebuild itself in the repo, the ebuild in /var/db/pkg/ebuilddir, DEPEND file in /var/db/pkg/ebuilddir, RDEPEND file in /var/db/pkg/ebuilddir. not exactly obvious, and I spent a good deal of time understanding why modifications to the original ebuild weren't effective. I think this may be worth noting somewhere as it was a real showstopper for me.
- a certain ebuild installs some .so files in /usr/lib, which are then checked by ldconfig after each installation. but it results in some (non-critical) error:
Code:
 Regenerating environment...
Regenerating /etc/ld.so.cache...
ldconfig: /usr/lib/libcnbpo221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpess221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcnclui221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcnclbjcmd221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcnclapi221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcmcm221.so is not a symbolic link

sure the ebuild may be the culprit as it's custom-made, but any idea why it behaves like this, and how to fix that? I don't like to say that, but emerge did not complain like that about it.

but all in all, it seems to work great.

last questions:
is it advisable to unmerge (unpaludise? ;) ) portage completely? how to do that cleanly? how to reinstall it?
_________________
Moved to using Arch Linux
Life is meant to be lived, not given up...
HOLY COW I'M TOTALLY GOING SO FAST OH F*** ;)


Last edited by Lloeki on Wed Nov 29, 2006 10:18 am; edited 1 time in total
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


Joined: 28 Apr 2004
Posts: 737
Location: Florence, Italy

PostPosted: Wed Nov 29, 2006 10:16 am    Post subject: Reply with quote

BEWARE

It may be just me with a b0rked system, but PALUDIS 0.10 SEGFAULTS WHILE BUILING THE DEPENDENCY LIST. I'm trying to figure out what went wrong; there's a high chance it's a problem only I have. That said, everyone be extra cautious.
_________________
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
Back to top
View user's profile Send private message
Lloeki
Guru
Guru


Joined: 14 Jun 2006
Posts: 437
Location: France

PostPosted: Wed Nov 29, 2006 10:22 am    Post subject: Reply with quote

as you may have noticed from my previous message, no segfault for me w/0.10. thanks for the warning though.
_________________
Moved to using Arch Linux
Life is meant to be lived, not given up...
HOLY COW I'M TOTALLY GOING SO FAST OH F*** ;)
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: Wed Nov 29, 2006 10:33 am    Post subject: Reply with quote

The security updates checking was added to the wiki.

----

No segfaults with 0.10.0 here.

----
@Lloeki I get just the same ldconfig messages, too.

I had to edit the canon printer driver ebuild. It had problems with spaces. But I edited just an ebuild, not all the files you mentioned. I think I digested it after the repair.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Nov 29, 2006 10:41 am    Post subject: Reply with quote

Lloeki wrote:
- I followed the migration guide, which worked well. but at the end (paludis -pi), paludis complained about some '???' stuff in various places of a certain ebuild. weird enough, the only place where '???' was present was LICENSE='???', but paludis was complaining about it at other places. replaced '???' with some random text, and it worked.

Paludis does a lot more validation of its input than Portage does.

Lloeki wrote:
- 'paludis -pi' then failed, complaining about missing whitespace after ( in some other ebuild. they were custom-made, so no worry, I modified that. but the thing I want to raise is that I needed to modify it in various unexpected places: the ebuild itself in the repo, the ebuild in /var/db/pkg/ebuilddir, DEPEND file in /var/db/pkg/ebuilddir, RDEPEND file in /var/db/pkg/ebuilddir. not exactly obvious, and I spent a good deal of time understanding why modifications to the original ebuild weren't effective. I think this may be worth noting somewhere as it was a real showstopper for me.

If you read the error messages carefully, they'll've told you where to look.

Again, this one's down to Paludis being a lot stricter about input.

Quote:
- a certain ebuild installs some .so files in /usr/lib, which are then checked by ldconfig after each installation. but it results in some (non-critical) error:
Code:
 Regenerating environment...
Regenerating /etc/ld.so.cache...
ldconfig: /usr/lib/libcnbpo221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpess221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcnclui221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcnclbjcmd221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcnclapi221.so is not a symbolic link

ldconfig: /usr/lib/libcnbpcmcm221.so is not a symbolic link

sure the ebuild may be the culprit as it's custom-made, but any idea why it behaves like this, and how to fix that? I don't like to say that, but emerge did not complain like that about it.

You'll have the same errors with Portage, just they'll go to /dev/null rather than your screen. The problem is most likely that the build system for that package is a bit screwy -- .so files should usually be symlinks to .so.blah files, not installed directly.

Quote:
last questions:
is it advisable to unmerge (unpaludise? ;) ) portage completely? how to do that cleanly? how to reinstall it?

paludis --uninstall sys-apps/portage will work, but it's probably not wise to do that unless you're using conf-update or some other etc-update replacement. You might want to keep Portage around for a bit anyway just to compare output if you ever run into build problems.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Nov 29, 2006 10:43 am    Post subject: Reply with quote

Lepaca Kliffoth wrote:
BEWARE

It may be just me with a b0rked system, but PALUDIS 0.10 SEGFAULTS WHILE BUILING THE DEPENDENCY LIST. I'm trying to figure out what went wrong; there's a high chance it's a problem only I have. That said, everyone be extra cautious.

This is very likely you with a b0rked system, although it could be you're hitting a weird corner case bug that no-one else is seeing. Did you run the test suite? Do you have a backtrace from CXXFLAGS="-O1 -fno-inline-functions -ggdb3"?
Back to top
View user's profile Send private message
jordan83
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 222
Location: check your closet...

PostPosted: Wed Nov 29, 2006 11:18 am    Post subject: Reply with quote

Hi all,

I think I've found a little "bug" when using ccache & paludis.
I was trying to install conf-update (first time I heard about this tool ;) ) and I got this:
Code:

>>> Done src_unpack
>>> Starting src_compile
make -j2 CC=ccache gcc   <------------ HERE!!
make: *** No rule to make target `gcc'.  Stop.

!!! ERROR in app-portage/conf-update-1.0:
!!! In src_compile at line 39
!!! emake failed

!!! Call stack:
!!!    * src_compile (/usr/portage/app-portage/conf-update/conf-update-1.0.ebuild:39)
!!!    * ebuild_f_compile (/usr/libexec/paludis/src_compile.bash:44)


One way to solve this is changing ccache section you have put in /etc/paludis/bashrc from
Quote:
export PATH="/usr/lib/ccache/bin/:$PATH"
export CCACHE_DIR="/var/tmp/ccache"
export CC="ccache gcc"
export CXX="ccache g++"

to
Quote:
export PATH="/usr/lib/ccache/bin:$PATH"
export CCACHE_DIR="/var/tmp/ccache/"
export CC="/usr/lib/ccache/bin/gcc"
export CXX="/usr/lib/ccache/bin/g++"


------------
By the way in ciaranm.org I read:
Quote:
Paludis 0.10.0 has been released. Changes since 0.8.4 include:
[...]
- Users can define their own fetchers.

thanks developers! :)

How can we define such an option?

P.S. No segfaults here with 0.10
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Louis-Hector Berlioz
--
When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
chucknorrisfacts.com


Last edited by jordan83 on Wed Nov 29, 2006 11:23 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: Wed Nov 29, 2006 11:21 am    Post subject: Reply with quote

ccache:
check the wiki. It was changed there half an hour ago.

I changed the lines because a few other packages were having problems too, (kaffeine for example)
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
jordan83
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 222
Location: check your closet...

PostPosted: Wed Nov 29, 2006 11:26 am    Post subject: Reply with quote

zxy wrote:

check the wiki. It was changed there half an hour ago.

great :D

the problem is archived then ;)
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Louis-Hector Berlioz
--
When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
chucknorrisfacts.com
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Nov 29, 2006 11:29 am    Post subject: Reply with quote

jordan83 wrote:
By the way in ciaranm.org I read:
Quote:
Paludis 0.10.0 has been released. Changes since 0.8.4 include:
[...]
- Users can define their own fetchers.

thanks developers! :)

How can we define such an option?

Place a script named doprotocol (e.g. dohttp, dohttps), chmodded +x, in /usr/share/paludis/fetchers/ . It should fetch its first argument and save it to the second argument. You can see examples in /usr/libexec/paludis/fetchers/ .

I suspect someone will post a resuming dohttp / dohttps sooner or later...
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: Wed Nov 29, 2006 12:02 pm    Post subject: Reply with quote

I have two scripts that mount paludis temporary folder to ram, before installation and unmount the tmpfs after the install has finished.

The problem is, if I press ctrl-c during compile tmpfs stays mounted.
Anybody has an improvement?

Here are the scripts:

/usr/share/paludis/hooks/install_pre/mount-tmp.bash
Code:
#!/bin/bash

source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
einfo "Mounting /var/tmp/paludis to tmpfs..."
mount -t tmpfs tmpfs -o size=1500M,nr_inodes=1M /var/tmp/paludis/
true


/usr/share/paludis/hooks/install_post/umount-tmp.bash
Code:
#!/bin/bash

source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
einfo "Unmounting /var/tmp/paludis from tmpfs..."
umount /var/tmp/paludis/
true


This hooks stuff is great!!! :D
_________________
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: Wed Nov 29, 2006 12:11 pm    Post subject: Reply with quote

zxy I think, that's a good point, since , if the the install fails or if you stopped it, you may want to see what's in the build directory and so on :?:
Anyway, in your mount-tmp.bash : you could check if it's already mounted or not, and mount it if necessary.
_________________
The End of the Internet!
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Nov 29, 2006 12:17 pm    Post subject: Reply with quote

There's an install_fail hook, but depending upon how hard paludis fails or is killed, it won't necessarily get called. If I implement --continue-on-failure it'll produce incorrect results too.

One possibility... Is paludis_launched and paludis_exiting hooks. These would get called except in really hard kill cases... The problem is, paludis sometimes invokes paludis (e.g. for has_version in ebuilds), so a mount hook would get pretty tricky.
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: Wed Nov 29, 2006 12:31 pm    Post subject: Reply with quote

I mostly don't look in tmp, and mounting tmp speeds up compiles (and cleans the tmp folder when unmounted)

If the folder stays mounted after a crash, might still be ok for me (for checking why, or maybe resume compile will be implemented so unzipping again won't be neccecary). But I wouldn't like to mount it zillion times.

How to check if it is mounted already? Bash command would be helpful.

I looked at man:/mount but didn't find anything helpful. Maybe using awk on the output of mount. But I need help, as I'm not comfortable at all with awk.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu


Last edited by zxy on Wed Nov 29, 2006 12:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Nov 29, 2006 12:36 pm    Post subject: Reply with quote

zxy wrote:
How to check if it is mounted already? Bash command would be helpful.

/proc/mounts or /etc/mtab.
Back to top
View user's profile Send private message
Lloeki
Guru
Guru


Joined: 14 Jun 2006
Posts: 437
Location: France

PostPosted: Wed Nov 29, 2006 12:47 pm    Post subject: Reply with quote

Quote:
I had to edit the canon printer driver ebuild. It had problems with spaces. But I edited just an ebuild, not all the files you mentioned. I think I digested it after the repair.

I thing this is because this is happening during the migration, when the package was already installed. whatever, it's fixed now.

Quote:
Paludis does a lot more validation of its input than Portage does.

certainly. I was not wondering about the strictness of its validation, but about the fact that the error is about a use flag|dep string, when the error comes from a LICENSE="???" line.
Code:
# paludis -ip bjfilter
Building target list...
Building dependency list...
Unhandled exception:
  * In program paludis -ip bjfilter:
  * When performing install action from command line:
  * When executing install task:
  * When adding PackageDepAtom 'net-print/bjfilter':
  * When checking mask reasons for 'net-print/bjfilter-2.50::default'
  * When parsing dependency string '???':
  * When handling lexer token '???' (2):
  * When validating use flag name '??':
  * Name '??' is not a valid use flag name (N7paludis16UseFlagNameErrorE)


Quote:

If you read the error messages carefully, they'll've told you where to look.

at that time, I effectively did, and found:
Code:
  * When adding installed package 'net-print/bjfilter-2.50::installed':

it's just that it took me a while to understand what it really meant, and as I didn't know, this line was not just as striking to me as it is now :)
the fact that I needed to also edit the DEPEND files was not exactly obvious either. so I decided to report it, in case anybody would encounter the same issue would be able to save some time.

Quote:
You'll have the same errors with Portage, just they'll go to /dev/null rather than your screen.

got it. 2&>1 abuse case.

Quote:
The problem is most likely that the build system for that package is a bit screwy

i'll try to tweak the ebuild to patch the build system into doing the right thing.

well, overall you just confirmed what I was guessing was happening behind the scene. thanks a lot.

Quote:
unless you're using conf-update or some other etc-update replacement

I was using dispatch-conf (part of portage). thanks for the pointer to conf-update.

last question, what about /etc files? I guess once I'm sick of portage, I could remove /etc/portage, but /etc/make.conf?
_________________
Moved to using Arch Linux
Life is meant to be lived, not given up...
HOLY COW I'M TOTALLY GOING SO FAST OH F*** ;)
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Nov 29, 2006 12:54 pm    Post subject: Reply with quote

Lloeki wrote:
Quote:
Paludis does a lot more validation of its input than Portage does.

certainly. I was not wondering about the strictness of its validation, but about the fact that the error is about a use flag|dep string, when the error comes from a LICENSE="???" line.

Yeah. LICENCE is a dependency string (GLEP 0023), and it can include things like LICENSE="GPL-2 crypto? ( BSD )".

Now... As to why the error is as it is... The lexer splits the input up into tokens, separated on whitespace (more or less, it's a bit more complicated than that). Any token that ends with a question mark is treated as a USE flag conditional, with all the text before the question mark being the USE flag name.

Quote:
last question, what about /etc files? I guess once I'm sick of portage, I could remove /etc/portage, but /etc/make.conf?

Various third party utilities rely upon make.conf. If you use any of them, you might have problems.
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


Joined: 28 Apr 2004
Posts: 737
Location: Florence, Italy

PostPosted: Wed Nov 29, 2006 1:07 pm    Post subject: Reply with quote

ciaranm wrote:
Lepaca Kliffoth wrote:
BEWARE

It may be just me with a b0rked system, but PALUDIS 0.10 SEGFAULTS WHILE BUILING THE DEPENDENCY LIST. I'm trying to figure out what went wrong; there's a high chance it's a problem only I have. That said, everyone be extra cautious.

This is very likely you with a b0rked system, although it could be you're hitting a weird corner case bug that no-one else is seeing. Did you run the test suite? Do you have a backtrace from CXXFLAGS="-O1 -fno-inline-functions -ggdb3"?


Yeah I know, I'm working on it. I just thought it would be good to send a warning, just in case. I'll let everybody know once I've figured it out, which will take several more hours (I can't give it all my attention right now).
_________________
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
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, 4 ... 19, 20, 21  Next
Page 3 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