View previous topic :: View next topic |
Author |
Message |
MaitreChang n00b
Joined: 23 Mar 2003 Posts: 32
|
Posted: Wed Jan 17, 2007 6:13 pm Post subject: Broken portage-utils-* ? No broken conf :-) |
|
|
truc wrote: | /etc/paludis/repositories/paludis-extras.conf wrote: | .
.
.
eclassdirs = ${ROOT}/var/paludis/repositories/gentoo/eclass
.
.
. |
|
OK the eclassdirs was not defined, so I made it pointing to /usr/portage/eclass and that works.
Thank you for you help |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Jan 17, 2007 6:17 pm Post subject: |
|
|
Thanks! => corrected _________________ The End of the Internet!
Last edited by truc on Wed Jan 17, 2007 6:30 pm; edited 1 time in total |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Wed Jan 17, 2007 6:23 pm Post subject: |
|
|
@dleverton Done. Renamed and shortened. You were right.
---EDIT ---
The instructions and the sample file is now modified a little on the site. Some lines in paludis-extras.conf file are # commented now, so the users don't just blindly copy the file.
P.s: Does anybody know what happened to the wiki today? _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Wed Jan 17, 2007 9:29 pm Post subject: |
|
|
Here is a goodie from truc's garden. Code: | sed /format/s/portage/ebuild/ -i /etc/paludis/repositories/* |
It will change the line to in all the conf files in the repositories folder, so you don't have to edit all of them by hand.
Truc, thanks.
(I'll send you a cent as soon as it's possible to do it by email ) _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Thu Jan 18, 2007 4:02 am Post subject: |
|
|
This doesn't make sense to me:
If I do Code: | paludis -ip --dl-reinstall always world | grep mplayer |
I get this:
Code: | * media-video/mplayer-1.0_rc1::gentoo [U 1.0_pre8] -3dfx -3dnow -3dnowext X aac aalib alsa (-altivec) amr% -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -dga -directfb -doc dts -dv -dvb dvd dvdread -enca% encode -esd -fbcon -ggi gif gtk -iconv% ipv6 -jack -joystick jpeg -libcaca -lirc -live -livecd -lzo mad -matrox mmx mmxext musepack -nas -openal opengl oss png -real -rtc -samba sdl -speex sse sse2 -svga -tga -theora truetype unicode -v4l -v4l2 vorbis win32codecs x264 -xanim -xinerama xv xvid -xvmc linguas: -bg -cs -da -de -el en -es -fr -hu -ja -ko -mk -nl -no -pl -pt_BR -ro -ru -sk -tr -uk -zh_CN -zh_TW
* net-www/mplayerplug-in-3.31-r1::gentoo [R] divx gmedia gtk quicktime -realmedia wmp <world> |
But if I do Code: | paludis -ip --dl-upgrade always world |
I get this:
Code: | These packages will be installed:
Total: 0 packages |
I thought that paludis did deep dependency resolution by default. The output of the first command shows that there's a new version of mplayer available and is going to be installed but when I specify to do upgrades, it doesn't find it.
edit: In fact, doing "emerge -NDpv world" shows that paludis missed other packages both that need to be installed and also that it needed to reinstall (due to changed USE flags). |
|
Back to top |
|
|
astaecker Guru
Joined: 28 Apr 2003 Posts: 403 Location: Hamburg / Germany
|
Posted: Thu Jan 18, 2007 8:40 am Post subject: |
|
|
Hi,
I have a problem with qt.
Code: | arne arne # paludis -pi qt
* x11-libs/qt-3.3.6-r5 {:3} [R] -cups -debug -doc -examples -firebird gif -immqt -immqt-bc -ipv6 -mysql -nas -nis -odbc opengl -postgres -sqlite -xinerama
Total: 1 package (1 rebuild) |
Here paludis wants to keep the most recent version of qt3.
Code: | arne arne # paludis -pi world
* x11-libs/qt-3.3.6-r4 {:3} [D 3.3.6-r5] -cups -debug -doc -examples -firebird gif -immqt -immqt-bc -ipv6 -mysql -nas -nis -odbc opengl -postgres -sqlite -xinerama
Total: 1 packages (1 downgrade) |
But here paludis wants to downgrade.
Any idea? |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Thu Jan 18, 2007 9:12 am Post subject: |
|
|
probably is that something in world depends on the older version |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Thu Jan 18, 2007 10:27 am Post subject: |
|
|
I had a similar 'problem' today, and I asked on #paludis, so here it goes:
Does mplayer appear as an RDEPEND for a file that is in your world (or one of its dependency) ?
Your problem is probably mplayer being in DEPEND of a package instead of being a runtime dependency.
It just looks like we both have problem with the mplayerplug-in ebuild, Code: | paludis --environment-variable net-www/mplayerplug-in DEPEND
>=media-video/mplayer-1.0_pre5
|| ( www-client/mozilla-firefox
www-client/seamonkey
)
|| ( ( x11-libs/libXpm
x11-proto/xextproto
)
virtual/x11
)
gtk? (
>=x11-libs/gtk+-2.2.0
dev-libs/atk
>=dev-libs/glib-2.2.0
>=x11-libs/pango-1.2.1
)
dev-util/pkgconfig
|
and Code: | paludis --environment-variable net-www/mplayerplug-in RDEPEND
|
In my opinion
|| ( www-client/mozilla-firefox
www-client/seamonkey
and
media-video/mplayer should be in RDEPEND
bug report, didn't say anything about media-video/mplayer, since I'm not really sure: :/ _________________ The End of the Internet!
Last edited by truc on Thu Jan 18, 2007 10:45 am; edited 1 time in total |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Thu Jan 18, 2007 10:37 am Post subject: |
|
|
arlsair paludis --help wrote: | Code: | --show-reasons Show why packages are being (un)installed
none Don't show any information (default)
summary Show a summary
full Show full output (can be very verbose) |
| so
Code: | paludis -pi qt --show-reasons full | should tell you why. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Thu Jan 18, 2007 11:55 pm Post subject: |
|
|
truc wrote: | I had a similar 'problem' today, and I asked on #paludis, so here it goes:
Does mplayer appear as an RDEPEND for a file that is in your world (or one of its dependency) ?
Your problem is probably mplayer being in DEPEND of a package instead of being a runtime dependency. |
Shouldn't make a difference. According to http://paludis.pioto.org/portagedifferences.html paludis has "Default deep dependency resolution." Deep dependency resolution isn't just for RDEPEND.
And when I read "deep dependency resolution" I would assume that this means that it works similar to the manner as the "--deep" parameter for portage which doesn't mean "only look at RDEPENDs.
Quote: | bug report, didn't say anything about media-video/mplayer, since I'm not really sure: :/ |
Bug resolved as "WORKSFORME" because portage treats RDEPEND the same as DEPEND, though I think the resolution would be invalid because if I did Code: | ROOT=/whatever emerge mplayerplug-in | I'd get a messed up install because only RDEPENDs get installed to the ROOT directory. |
|
Back to top |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Fri Jan 19, 2007 12:54 am Post subject: |
|
|
slycordinator wrote: | Quote: | bug report, didn't say anything about media-video/mplayer, since I'm not really sure: :/ |
Bug resolved as "WORKSFORME" because portage treats RDEPEND the same as DEPEND, though I think the resolution would be invalid because if I did Code: | ROOT=/whatever emerge mplayerplug-in | I'd get a messed up install because only RDEPENDs get installed to the ROOT directory. | Try `paludis -qM mplayer`. RDEPEND gets implicitly set to the value of DEPEND with both package managers. |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Fri Jan 19, 2007 1:03 am Post subject: |
|
|
ok, for those of you who defined write_cache for some of their repositories, you may have already realised that paludis doesn't delete yet an ebuild cache when the ebuild is remove from the overlay.
Before this is implemented, you can use the new portage-utils-20070118, ebuild has a 'purge' use flag, if enable q --purge will delete those ebuild cache.
changelog 20070119 wrote: | * when (re)generating the cache, portage-utils now consider the
overlay/profiles/categories file, if this file doesn't exist, then it scan the
content of the overlay, otherwise it will only add the categories specified in
this file.
* purge enhancement: if an ebuild cache file is deleted, and if the category
doesn't contain any else, then it is also deleted.
== version 20070118 ==
* more powerfull search can be achieved when searching with the name (ie not the DESCRIPTION):
* to list every package from one category, in the overlay that regexp
match pal.*a.$ :
qsearch sys-apps/::pal.*a.$
sys-apps/paludis::paludis-overlay paludis, the other package mangler
sys-apps/paludis-hooks::paludis-extras This is a colection of various hooks used with Paludis.
* Actually you can do almost what yo want, just think how qatom will split your
string
* little fix in qlop
* added a purge use flag, if enable, you'll then have the option --purge,
which will scan the cache paludis write (overlays with the key 'write_cache'
defined):
If an ebuild is no longer in the overlay then the ebuild cache is
deleted.
It also regenerate the 'metacache' in the same time
* the q-reinitialise.bash hook provided with portage-utils, which already
reinitialise ebuild et meta cache, will now 'tell' paludis to write the cache
for every repository with 'write_cache' defined (and format=ebuild) |
previous changelog
first changelog
Note: if you enable the purge use flag, the q-reinitialise hook will use it by default.
You will find portage-utils-20070118 in the paludis-extras overlay
EDIT: note that doing qsearch -ao overlay is faster than doing qsearch ::overlay, but with the first one you have to know the exact name of the overlay, while with the second you can do your search in every overaly but one, and so on (eg: qsearch ::[^overlay] _________________ The End of the Internet!
Last edited by truc on Sun Jan 21, 2007 2:39 pm; edited 3 times in total |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Fri Jan 19, 2007 3:13 am Post subject: |
|
|
jordan83 wrote: |
paludis -u =media-libs/lcms-1.15
Code: | --- [!type] /usr/share/doc/lcms-1.15/TUTORIAL.TXT.gz
unmerge@1165738494: [WARNING] Malformed VDB entry 'obj /usr/share/lcms/profiles/sRGB Color Space Profile.icm 1d3fda2edb4a89ab60a23c5f7c7d81dd 1165737830'
--- [!type] /usr/share/lcms/profiles/sRGBSpac.icm
--- [!type] /usr/share/man/man1/icc2ps.1 |
....
.....
|
I just had the same problem.
Nothing helped. Regenerating caches, neither. I deleted the entry. And voila.
Thanks
May be dirty, but at least works. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
apberzerk Apprentice
Joined: 11 Jan 2004 Posts: 278 Location: kansas...
|
Posted: Fri Jan 19, 2007 3:34 am Post subject: |
|
|
Possibly a dumb question, maybe not... I can't seem to re-install any packages when collision-protect is on... am I supposed to do something to get this to work? |
|
Back to top |
|
|
dhave Apprentice
Joined: 28 Oct 2005 Posts: 298 Location: Still outside the Matrix ...
|
Posted: Fri Jan 19, 2007 3:40 am Post subject: Why not separate threads in this forum? |
|
|
Do you guys prefer to have all Paludis posts in this one mega-thread, or would it not be a better idea to start posting to separate threads with a [PALUDIS] tag at the beginning of the subject? I want to stay up on Paludis, and I think it would be easier to follow if we had one thread per issue rather than everything in this continuous chat.
Or can someone convince me otherwise? _________________ This space available!
Last edited by dhave on Fri Jan 19, 2007 4:49 am; edited 1 time in total |
|
Back to top |
|
|
apberzerk Apprentice
Joined: 11 Jan 2004 Posts: 278 Location: kansas...
|
Posted: Fri Jan 19, 2007 3:59 am Post subject: |
|
|
Quote: | Do you guys prefer to have all Paludis posts in this one mega-thread, or would it not be a better idea to start posting to separate threads with a [PALUDIS] tag at the beginning of the subject. I want to stay up on Paludis, and I think it would be easier to follow if we had one thread per issue rather than everything in this continuous chat. |
I agree. It especially makes it easier to search for what you want. But I don't know if that is the "standard" thing to do around here :p |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Fri Jan 19, 2007 9:27 am Post subject: Re: Why not separate threads in this forum? |
|
|
dhave wrote: | Do you guys prefer to have all Paludis posts in this one mega-thread, or would it not be a better idea to start posting to separate threads with a [PALUDIS] tag at the beginning of the subject? I want to stay up on Paludis, and I think it would be easier to follow if we had one thread per issue rather than everything in this continuous chat.
Or can someone convince me otherwise? |
I was having an idea lately, to split this thread when 0.16.0 comes out. But hey, nobody is restricted to this thread, and never was.
I agree with dhave completely.
I think the thread served it's purpose. But searching it is not easy any more. There are many different subtopics.
It could get modular. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
astaecker Guru
Joined: 28 Apr 2003 Posts: 403 Location: Hamburg / Germany
|
|
Back to top |
|
|
dleverton Guru
Joined: 28 Aug 2006 Posts: 517
|
Posted: Fri Jan 19, 2007 11:27 am Post subject: |
|
|
apberzerk wrote: | Possibly a dumb question, maybe not... I can't seem to re-install any packages when collision-protect is on... am I supposed to do something to get this to work? |
It should work as soon as you install it into the appropriate directory. What's the problem, is it reporting collisions for every file? Do you have any unusual settings in the environment or /etc/paludis/bashrc? |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
|
Back to top |
|
|
luqas Guru
Joined: 02 Jan 2004 Posts: 588 Location: /US/Texas/Beaumont
|
Posted: Fri Jan 19, 2007 12:49 pm Post subject: |
|
|
Sorry if this is redundant etc but I am having a problem to get enlightenment-17 ebuilds into Paludis. I ran the script found on page 14 or so to update the Paludis cache from layman. The reason this started is because they took the e*-9999 ebuilds out of portage and you have to use layman to create the overlay.
Anyway to my problem. I used the script and it found enlightenment and it wanted me to give it a name. Unfortunately I lost some braincells during this moment and named it enlightenment without and version number etc. So now paludis gripes about it and only recognizes version 16 of enlightenment.
Question 1:
How do I get rid of the enlightenment ebuild that I imported? I found an enlightenment.conf under /etc/paludis/repositories, but is there anywhere else that this resides. Or is there a command for paludis to remove it?
Question 2:
Is that script the best way to import Layman builds? Or is there a better way.
Again sorry if this has been brought up before. I tried to browse this thread the best I could. Thanks. |
|
Back to top |
|
|
apberzerk Apprentice
Joined: 11 Jan 2004 Posts: 278 Location: kansas...
|
Posted: Fri Jan 19, 2007 1:20 pm Post subject: |
|
|
dleverton wrote: | apberzerk wrote: | Possibly a dumb question, maybe not... I can't seem to re-install any packages when collision-protect is on... am I supposed to do something to get this to work? |
It should work as soon as you install it into the appropriate directory. What's the problem, is it reporting collisions for every file? Do you have any unusual settings in the environment or /etc/paludis/bashrc? |
Yeah, it reports collisions for every file to be installed, such as executables and manpages. My /etc/paludis/bashrc is very simple:
Code: | export CHOST="i686-pc-linux-gnu"
export CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
export CXXFLAGS="${CFLAGS}"
export MAKEOPTS="-j2"
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++" |
I had to manually delete the collisions hook file just to be able to reinstall the portage-hooks package with collision support! |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Fri Jan 19, 2007 1:29 pm Post subject: |
|
|
i think the collision protect will need some additions, so it can be used on per package basis.
If you uninstall a certain package manually, then it can be installed, just not automaticaly reinstalled. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
dleverton Guru
Joined: 28 Aug 2006 Posts: 517
|
Posted: Fri Jan 19, 2007 2:08 pm Post subject: |
|
|
apberzerk wrote: | I had to manually delete the collisions hook file just to be able to reinstall the portage-hooks package with collision support! |
Wow, that's nasty! Try this version, and post the output:
Code: | #! /bin/bash
einfo_unhooked "Checking for collisions..."
(
debug_var() {
einfo_unhooked "variable $1: ${!1}"
}
installed="$( ${PALUDIS_COMMAND} --best-version \
"${CATEGORY}/${PN}:${SLOT}" )"
debug_var installed
cd "${D}"
if [[ -n "${installed}" ]]; then
einfo_unhooked "paludis --contents:"
${PALUDIS_COMMAND} --contents "=${installed}"
inst_files="$( ${PALUDIS_COMMAND} --contents "=${installed}" |
sed -ne 's/ -> .*//;s/^ \+//p' | sort )"
debug_var inst_files
new_files="$( find . ! -type d -print | sed -e 's/^.//' | sort )"
debug_var new_files
files="$( comm -2 -3 <( echo "${new_files}" ) \
<( echo "${inst_files}" ) )"
debug_var files
else
files="$( find . ! -type d -print | sed -e 's/^.//' )"
debug_var files
fi
collisions="$( sed -e 's,^,.,' <<<"${files}" |
( cd "${ROOT}" && xargs -r -d'\n' ls -d 2>/dev/null ) |
sed -e 's,^\.,,' |
grep -v '^/usr/share/\(gcc-data/.*/\)\?info/dir\(\|.gz\|.bz2\)$' )"
debug_var collisions
if [[ -n "${collisions}" && -n "${installed}" ]]; then
dev_inode_names() {
paste <( sed -e 's,^\(.*\)/[^/]*$,.\1,' <<<"$1" |
( cd "${ROOT}" && xargs -r -d'\n' \
stat -L -c '%D %i' 2>/dev/null ) ) \
<( sed -e 's,^.*/,,' <<<"$1" ) \
<( ${2} "${1}" )
}
dins="$( dev_inode_names "${collisions}" echo | sort -t/ -k1 )"
debug_var dins
einfo_unhooked "installed dev_inode_names(): $(dev_inode_names "${inst_files}" :)"
collisions="$( paste <( comm -2 <( cut -d/ -f1 <<<"${dins}" ) \
<( dev_inode_names "${inst_files}" : |
sort ) ) \
<( echo "${dins}" ) |
sed -ne 's,^[^\t][^/]*\(/.*\)$,\1,p' )"
debug_var collisions
fi
okay=true
if [[ -n "${collisions}" ]]; then
my_CONFIG_PROTECT=()
for p in ${CONFIG_PROTECT}; do
my_CONFIG_PROTECT+=( "$( tr -s / <<<"${p}/*" )" )
done
my_CONFIG_PROTECT_MASK=()
for p in ${CONFIG_PROTECT_MASK}; do
my_CONFIG_PROTECT_MASK+=( "$( tr -s / <<<"${p}/*" )" )
done
config_protected() {
einfo_unhooked "checking config_protect: $1"
for p in "${my_CONFIG_PROTECT[@]}"; do
einfo_unhooked "CONFIG_PROTECT: $p"
if [[ "${1}" == ${p} ]]; then
einfo_unhooked matches
for p in "${my_CONFIG_PROTECT_MASK[@]}"; do
einfo_unhooked "CONFIG_PROTECT_MASK: $p"
if [[ "${1}" == ${p} ]]; then
einfo_unhooked matches
return 1
fi
done
return 0
fi
done
return 1
}
while read file; do
if ! config_protected "${file}"; then
eerror "${file} already exists in ${ROOT}"
okay=false
fi
done <<<"${collisions}"
fi
${okay}
) || die "Package collides with existing files"
einfo_unhooked "Hooray! No collisions"
|
Put it in /etc/paludis/hooks/ebuild_merge_pre/collision-protect.bash, and make sure to delete any existing version if necessary. |
|
Back to top |
|
|
staffan n00b
Joined: 31 Oct 2004 Posts: 29 Location: Sweden
|
Posted: Fri Jan 19, 2007 5:08 pm Post subject: |
|
|
Nope, 'fraid not.
I get this too. The funny thing is that if I let Paludis downgrade and then immediately afterward do a new paludis -pi world it wants to upgrade again, but not to 4.1.4, which is the highest stable version, it grabs 3.3.6 instead.
Manually installing 4.1.4 (paludis -i qt) and then doing paludis -pi world gives the result that I have 3.3.6 installed (which is not true, I just installed 4.1.4) and that is wants to downgrade (again) to 3.3.4. qt-unixODBC seems to be in on this too but I haven't been able to find anything specific.
I'm afraid I can't be of any assistance to anyone but it sure seems weird. I'll keep looking at it though. _________________ /S
"I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, 'What is that, swearing?'" (Larry Wall) |
|
Back to top |
|
|
|