View previous topic :: View next topic |
Author |
Message |
jordan83 Apprentice
Joined: 17 Apr 2006 Posts: 222 Location: check your closet...
|
Posted: Wed Jan 03, 2007 2:00 pm Post subject: |
|
|
zxy wrote: | @jordan83: Try the new function |
Uhmm... the output is not clear at all...
Quote: | # paludis --show-use-descriptions all -pi paludis
Building target list...
Building dependency list...
These packages will be installed:
* sys-apps/paludis-0.14.0::paludis-overlay [R] bash-completion -contrarius -cran doc -gems glsa -pink -qa ruby (-selinux) -zsh-completion
Total: 1 package (1 rebuild)
Use flags:
* bash-completion:
* contrarius:
* cran:
* doc:
* gems:
* glsa:
* pink:
* qa:
* ruby:
* selinux:
* zsh-completion: |
However this misbehavior shows up only if I try to recompile paludis. With other packages no problem...
BTW my original question remains, since use flag explanation is really far from being exhaustive...
Quote: | [- ] gems (sys-apps/paludis): Enable RubyGems repository support.
[- ] cran (sys-apps/paludis): Enable CRAN repository support. |
_________________ 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 |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Wed Jan 03, 2007 2:04 pm Post subject: |
|
|
Well, I ge this Code: | # paludis -ip paludis --show-use-descriptions all
Building target list...
Building dependency list...
These packages will be installed:
* sys-apps/paludis-0.14.0::gentoo [R] -bash-completion -contrarius -cran -doc glsa -pink qa -ruby (-selinux) -zsh-completion
Total: 1 package (1 rebuild)
Use flags:
* bash-completion: Enable bash-completion support
* contrarius: Build the contrarius client, for building cross toolchains.
* cran: Enable CRAN repository support.
* doc: Adds extra documentation (API, Javadoc, etc)
* glsa: Enable parsing of GLSA files
* pink: Use a less boring colourscheme than the default
* qa: Enable QA tools.
* ruby: Adds support/bindings for the Ruby language
* selinux: !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
* zsh-completion: Enable zsh completion support
* You have 1 unread news items
|
I would like to get more extended descriptions, too. And how to use the stuff that gets installed with this use flags. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Wed Jan 03, 2007 2:13 pm Post subject: |
|
|
Just a guess,
CRAN will enable you to install CRAN modules via paludis, which will then be able to update/remove/prevent them from clobbering other files. This saves R users from writing ebuilds. The same goes for GEMS, but that is for ruby packages. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
dhave Apprentice
Joined: 28 Oct 2005 Posts: 298 Location: Still outside the Matrix ...
|
Posted: Wed Jan 03, 2007 4:50 pm Post subject: |
|
|
zxy wrote: |
My LDFLAGS were not moved from make.conf to paludis, too. So I had to add them to /etc/paludis/bashrc
I added a new line: Code: |
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -Wl,--sort-common -s"
|
|
My LDFLAGS weren't moved from make.conf to /etc/paludis/bashrc, so I did it manually as you describe (and as described in the Paludis FAQ). However, when I check with paludis -V, there's still nothing for LDFLAGS. I tried rebooting with no change.
Any ideas what I'm doing wrong? Thanks. _________________ This space available! |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Wed Jan 03, 2007 5:03 pm Post subject: |
|
|
What's your line in the bashrc. Might be a typo. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Wed Jan 03, 2007 5:46 pm Post subject: |
|
|
paludis -V lists the settings with which the paludis executable was built, not the current configuration. |
|
Back to top |
|
|
dhave Apprentice
Joined: 28 Oct 2005 Posts: 298 Location: Still outside the Matrix ...
|
Posted: Wed Jan 03, 2007 6:09 pm Post subject: |
|
|
spb wrote: | paludis -V lists the settings with which the paludis executable was built, not the current configuration. |
O.K., thanks, that makes sense. _________________ This space available! |
|
Back to top |
|
|
jordan83 Apprentice
Joined: 17 Apr 2006 Posts: 222 Location: check your closet...
|
Posted: Wed Jan 03, 2007 6:52 pm Post subject: |
|
|
mark_alec wrote: | Just a guess,
CRAN will enable you to install CRAN modules via paludis, which will then be able to update/remove/prevent them from clobbering other files. This saves R users from writing ebuilds. The same goes for GEMS, but that is for ruby packages. |
Uhm...
I don't think to have it clear.
What is the connection between R language and Paludis? I'm really confused
zxy wrote: | Well, I ge this
Quote: | [...]
Use flags:
* bash-completion: Enable bash-completion support
* contrarius: Build the contrarius client, for building cross toolchains.
* cran: Enable CRAN repository support.
* doc: Adds extra documentation (API, Javadoc, etc)
* glsa: Enable parsing of GLSA files
* pink: Use a less boring colourscheme than the default
* qa: Enable QA tools.
* ruby: Adds support/bindings for the Ruby language
* selinux: !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
* zsh-completion: Enable zsh completion support
* You have 1 unread news items
|
|
Uhmm... you're mssing gems use flag... Is that a typo or your Paludis version is different? _________________ 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 |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed Jan 03, 2007 6:58 pm Post subject: |
|
|
One small issue with the portage2paludis script is that on a couple of the repositories it makes a useless distdir entry.
Here's my einit.conf as generated by the script
Code: | location = ${ROOT}/var/portage/repositories/gentoo/local/layman/einit
sync = svn+http://einit.svn.sourceforge.net/svnroot/einit/trunk/distro/gentoo/portdir_overlay
profiles = ${ROOT}/var/portage/repositories/gentoo/profiles/default-linux/x86/2006.1
eclassdirs = /var/portage/repositories/gentoo/eclass
distdir = ${ROOT}/var/portage/repositories/gentoo/distfiles
cache = /var/empty
distdir = /distfiles/new
format = portage
names_cache = ${location}/.cache/names
write_cache = /var/cache/paludis/metadata |
I'm guessing that the first line that says distdir is overrided by the second distdir line and only the 2nd one is correct as I have a partition specifically for my distdir. Also, the first distdir line is definitely invalid as the directory mentioned doesn't even exist. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed Jan 03, 2007 7:01 pm Post subject: |
|
|
jordan83 wrote: | Uhmm... you're mssing gems use flag... Is that a typo or your Paludis version is different? |
There is no gems USE flag in 0.12.0 or 0.14.0 that are in portage. |
|
Back to top |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Wed Jan 03, 2007 7:02 pm Post subject: |
|
|
jordan83 wrote: | What is the connection between R language and Paludis? I'm really confused | As well as installing packages from Gentoo-style ebuild repositories, Paludis supports installing R packages from the CRAN repository.
Quote: | Uhmm... you're mssing gems use flag... Is that a typo or your Paludis version is different? | The Gems support in 0.14 isn't quite ready for real use yet, so the USE flag has been removed from the ebuilds. It'll be back once the Gems support is more complete. |
|
Back to top |
|
|
jordan83 Apprentice
Joined: 17 Apr 2006 Posts: 222 Location: check your closet...
|
Posted: Wed Jan 03, 2007 7:04 pm Post subject: |
|
|
slycordinator wrote: |
There is no gems USE flag in 0.12.0 or 0.14.0 that are in portage. |
indeed...
Code: | # paludis -q paludis
* sys-apps/paludis
gentoo: 0.12.0 0.14.0 {:0}
paludis-overlay: 0.12.0 0.14.0 (scm)R {:0}
installed: 0.14.0* {:0}
Homepage: http://paludis.pioto.org/
Description: paludis, the other package mangler
License: ( GPL-2 )
Source origin: sys-apps/paludis-0.14.0::paludis-overlay
Installed time: Wed Jan 3 14:48:46 2007
Provides: virtual/portage
Use flags: (bash-completion) (-contrarius) (-cran) (doc) (-gems) (glsa) (-pink) (-qa) (ruby) (-selinux) (-zsh-completion)
Key to mask reasons:
* R: repository mask
|
_________________ 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 |
|
|
jordan83 Apprentice
Joined: 17 Apr 2006 Posts: 222 Location: check your closet...
|
Posted: Wed Jan 03, 2007 7:11 pm Post subject: |
|
|
spb wrote: | As well as installing packages from Gentoo-style ebuild repositories, Paludis supports installing R packages from the CRAN repository. |
therefore this feature is not related to Gentoo ebuilds in any way, right? _________________ 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 |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed Jan 03, 2007 7:19 pm Post subject: |
|
|
Everytime I run paludis I get "* You have 1 unread news items"
But then I do
Code: | # eselect news list
paludis@1167851843: [WARNING] Using '* -*' in use.conf is dangerous. You have been warned.
paludis@1167851843: [QA] Couldn't open repo_name file in '/usr/local/overlays/portage/profiles/'. Falling back to a generated name.
Unread news items:
(none found)
paludis@1167851843: [WARNING] Using '* -*' in use.conf is dangerous. You have been warned.
paludis@1167851844: [QA] Couldn't open repo_name file in '/usr/local/overlays/portage/profiles/'. Falling back to a generated name.
Read news items:
(none found) |
|
|
Back to top |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Wed Jan 03, 2007 7:19 pm Post subject: |
|
|
jordan83 wrote: | therefore this feature is not related to Gentoo ebuilds in any way, right? | Correct. |
|
Back to top |
|
|
Lepaca Kliffoth l33t
Joined: 28 Apr 2004 Posts: 737 Location: Florence, Italy
|
Posted: Wed Jan 03, 2007 7:26 pm Post subject: |
|
|
I have no idea what CRAN is but gems support would be wonderful. You're doing great! _________________ 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 |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed Jan 03, 2007 8:44 pm Post subject: |
|
|
Bizarre...
If I do Code: | paludis -ip eselect-init |
I'm told that there's no such package.
But if I do Code: | paludis -ip app-admin/eselect-init |
It shows that it (rightly) is masked ~x86.
This happens both when my /var/portage/repositories/gentoo/local/layman/einit/profiles has the categories file and not.
Also, if I simply do
it displays the correct info for the ebuild, which is located inside the same repository as the above package. |
|
Back to top |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Wed Jan 03, 2007 9:28 pm Post subject: |
|
|
slycordinator wrote: | Everytime I run paludis I get "* You have 1 unread news items"
But then I do
Code: | # eselect news list
paludis@1167851843: [WARNING] Using '* -*' in use.conf is dangerous. You have been warned.
paludis@1167851843: [QA] Couldn't open repo_name file in '/usr/local/overlays/portage/profiles/'. Falling back to a generated name.
Unread news items:
(none found)
paludis@1167851843: [WARNING] Using '* -*' in use.conf is dangerous. You have been warned.
paludis@1167851844: [QA] Couldn't open repo_name file in '/usr/local/overlays/portage/profiles/'. Falling back to a generated name.
Read news items:
(none found) |
| That can happen when a repository name changes. Nuke /var/lib/paludis/news/*.unread and see what happens. |
|
Back to top |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Wed Jan 03, 2007 9:29 pm Post subject: |
|
|
slycordinator wrote: | Bizarre...
If I do Code: | paludis -ip eselect-init |
I'm told that there's no such package.
But if I do Code: | paludis -ip app-admin/eselect-init |
It shows that it (rightly) is masked ~x86.
This happens both when my /var/portage/repositories/gentoo/local/layman/einit/profiles has the categories file and not.
Also, if I simply do
it displays the correct info for the ebuild, which is located inside the same repository as the above package. | Try regenerating your caches. paludis --regenerate-installable-cache. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Wed Jan 03, 2007 10:15 pm Post subject: |
|
|
spb wrote: | That can happen when a repository name changes. Nuke /var/lib/paludis/news/*.unread and see what happens. |
No what happened is I've got news items related to the paludis-overlay.
What happened is when I fiddled with paludis last night I had added the paludis-overlay and when I reinstalled (and re-setup) paludis this morning I didn't use that overlay.
So I'm continually getting the message but if I check the news reader I get nothing because the repository the news item is referring to doesn't exist.
Come to think of it, I should add that overlay in... |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Thu Jan 04, 2007 12:52 am Post subject: |
|
|
I made some minor changes to the portage2paludis.bash script that I think improves it.
The changes are extremely simple:
1) Line 358 of the original just shouldn't be there. It's overrided by what's generated in line 360.
2) The bashrc file is now more compact. If your CXXFLAGS are identical to your CFLAGS it'll put
export CXXFLAGS="${CFLAGS}" instead of using the whole variable.
Minor but I like it that way.
Since most of the file has remained unchanged here's a diff:
Code: | # diff portage2paludis.bash portage2paludis.bash.orig
201,206d200
< C_FLAGS="$(portageq envvar CFLAGS)"
< CXX_FLAGS="$(portageq envvar CXXFLAGS)"
< if [ "${C_FLAGS}" == "${CXX_FLAGS}" ]
< then
< CXX_FLAGS="\${CFLAGS}"
< fi
208,210c202,203
< append_shell_var "export CFLAGS" "$C_FLAGS" "bashrc"
< append_shell_var "export CXXFLAGS" "$CXX_FLAGS" "bashrc"
< append_shell_var "export LDFLAGS" "$(portageq envvar LDFLAGS)" "bashrc"
---
> append_shell_var "export CFLAGS" "$(portageq envvar CFLAGS)" "bashrc"
> append_shell_var "export CXXFLAGS" "$(portageq envvar CXXFLAGS)" "bashrc"
364a358
> distdir = \${ROOT}${portdir}/distfiles |
Might work on enhancing the script to do more than just straight converting portage to paludis. Would be nice to have an automated way to JUST add an repository from one of my new layman overlays (without going through this whole thing).
[edit]Forgot that that I added transferring of LDFLAGS settings over but clearly I did.[/code]
Last edited by slycordinator on Thu Jan 04, 2007 4:11 am; edited 1 time in total |
|
Back to top |
|
|
dleverton Guru
Joined: 28 Aug 2006 Posts: 517
|
Posted: Thu Jan 04, 2007 2:21 am Post subject: |
|
|
mod edit (added on request): Please look here for updated versions --Earthwings
Another hook, this time to prevent Paludis from leaving prelinked binaries lying around (because it thinks they've been modified) when you unmerge the package. This one goes in /etc/paludis/hooks/common/undo-prelink.bash, and is symlinked to /etc/paludis/hooks/ebuild_merge_pre/undo-prelink.bash and /etc/paludis/hooks/ebuild_unmerge_pre/undo-prelink.bash.
WARNING: it seems that some browsers insert extra spaces at the ends of lines when copying the code, and this will break the script. Please make sure that none of the lines in the file end with spaces when you save it.
Once again: I won't keep posting if/when I update it, I'll just edit this post, so check back every now and again.
Changelog
2007-01-04: Initial release.
2007-01-04: Replace call to cut with pattern match.
2007-01-05: Support ${ROOT} (d'oh).
2007-01-14: Print a message at the start, so it doesn't look like it's died with large packages.
2007-01-15: Big speed-up on large packages.
2007-01-16: Fix i18n bug (and prune a bit of redundant code).
2007-01-23: Make it work when reinstalling the same version that's already installed. (Usage instructions have changed, see above.)
WARNING: this script comes with NO WARRANTY, use it at your own risk. It is NOT SUPPORTED by the Paludis developers. Feel free to ask me if you have problems, but I can't promise to be able to solve them.
Code: | #! /bin/bash
[[ "${HOOK}" == ebuild_merge_pre ]] &&
! ${PALUDIS_COMMAND} --has-version "=${CATEGORY}/${PF}" && return
einfo_unhooked "Checking for prelinked binaries..."
(
# Uncomment this and the corresponding bit at the end if you
# want to know how long it takes.
## "times" doesn't return real time, and "time" is too awkward to
## use in this context.
#starts=$( date +%s )
#startns=$( date +%N )
# cd to ${ROOT} instead of mangling the filenames so as not to get
# caught by evil characters.
cd "${ROOT}"
# Don't forget to add . to the front of the filenames (see above).
# xargs needs special options to avoid mishandling special
# characters. Throw away stat's stderr because we don't care
# about non-existant files. Note that stat automatically uses a
# different description for empty files, so no need to handle them
# separately.
inst_files="$( ${PALUDIS_COMMAND} --contents "=${CATEGORY}/${PF}" |
sed -ne '/ -> /d;s/^ \+/./p' |
LANGUAGE= LC_ALL=C xargs -r -d'\n' \
stat -c '%F%n' 2>/dev/null |
sed -ne 's/^regular file//p' )"
paste <( xargs -r -d'\n' head -q -n 1 <<<"${inst_files}" | cut -b1-4 ) \
<( echo "${inst_files}" ) | sed -ne 's/^\x7fELF\t//p' |
while read file; do
objdump -h "${file}" | grep -q '\.gnu\.prelink_undo' &&
prelink -u "${file}"
done
# Uncomment this and the corresponding bit at the beginning if you
# want to know how long it takes.
#ends=$( date +%s )
#endns=$( date +%N )
#elapsed=$(( (${ends} - ${starts}) * 1000
# + (10#${endns} / 1000000) - (10#${startns} / 1000000) ))
#einfo_unhooked "Elapsed time: $( printf %d.%03d \
# $(( ${elapsed} / 1000 )) \
# $(( ${elapsed} % 1000 )) ) seconds"
)
|
Last edited by dleverton on Tue Jan 23, 2007 12:20 am; edited 8 times in total |
|
Back to top |
|
|
pioto Retired Dev
Joined: 24 Oct 2003 Posts: 54 Location: Pittsburgh, PA
|
Posted: Thu Jan 04, 2007 7:55 am Post subject: |
|
|
slycordinator wrote: | I made some minor changes to the portage2paludis.bash script that I think improves it. | Thanks for the suggestions. You'll find them applied in r2083.
slycordinator wrote: | Might work on enhancing the script to do more than just straight converting portage to paludis. Would be nice to have an automated way to JUST add an repository from one of my new layman overlays (without going through this whole thing). | Take a look at the repo.eselect module. It does more what you're looking for there, though it could probably be expanded somewhat. I don't think I'll be adding this feature to the portage2paludis script, since that isn't what it's meant for. Maybe a separate script specifically for keeping paludis' repos in sync with the installed layman repos would be desirable. Feel free to make use of code from my portage2paludis.bash script to do that. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Thu Jan 04, 2007 8:42 am Post subject: |
|
|
pioto wrote: | Take a look at the repo.eselect module. It does more what you're looking for there, though it could probably be expanded somewhat. I don't think I'll be adding this feature to the portage2paludis script, since that isn't what it's meant for. Maybe a separate script specifically for keeping paludis' repos in sync with the installed layman repos would be desirable. Feel free to make use of code from my portage2paludis.bash script to do that. |
Hadn't seen that one; it's pretty neat.
But here's an issue:
Most other eselect modules allow you to work both using the name and the listed number.
Like I did "eselect bashcomp enable 25" and this did the same thing as "eselect bashcomp enable povray" (whatever the hell that is).
This comes from the basic assumption that none of the options for the module will be named simply a number so when you choose a number it uses whichever option corresponds to that number in the list.
But when I did "eselect repo install 3" it borked and made an empty file named /etc/paludis/repositories/3.conf.
And I got a segfault when I tried to do "eselect repo install vmware-overlay" because paludis didn't like having that empty file.
edit:
Another issue, though easy to fix.
When I did "eselect repo install vmware-overlay" it gave me the following file as /etc/paludis/repositories/vmware-overlay.conf
Code: | location=/var/paludis/repositories/vmware
format = portage
sync = svn+http://overlays.gentoo.org/svn/proj/vmware/trunk
eclassdirs = /var/portage/repositories/gentoo/eclass
profiles=/var/portage/repositories/gentoo/profiles/default-linux/x86/2006.1 |
The first and last line seem wrong. Every other file has the variables as "variable = value" there here it's got "variable=value". Minor issue but still an issue. |
|
Back to top |
|
|
bobobo Tux's lil' helper
Joined: 24 Nov 2005 Posts: 122
|
Posted: Fri Jan 05, 2007 3:18 am Post subject: |
|
|
I've installed paludis, and am encountering one problem :
On my systems are installed gtk1 & xarchon , which have since been removed from portage, however i want to keep them installed. Paludis fails with "No versions of 'games-strategy/xarchon' are available", is it possible to bypass the check, like it was in portage with the package.provided file ? |
|
Back to top |
|
|
|