Paludis: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
No edit summary
Line 78: Line 78:
{{Codeline|# paludis -i --dl-reinstall if-use-changed everything --pretend}}
{{Codeline|# paludis -i --dl-reinstall if-use-changed everything --pretend}}


== Configuration (Portage incompatible Part II - Gentoo Offical Tree) ==
== Configuration (Portage incompatible part II - Gentoo offical tree) ==


Now that we have played around a little with Paludis we really don't need Portage compatibility anymore, so lets adjust our configuration to speed up Paludis.
Now that we have played around a little with Paludis we really don't need Portage compatibility anymore, so lets adjust our configuration to speed up Paludis.
Line 115: Line 115:
{{Codeline|# paludis --regenerate-installable-cache}}
{{Codeline|# paludis --regenerate-installable-cache}}


== Configuration (Portage incompatible Part II - (optional) KDE Overlay (genkdesvn) ==


{{Codeline|# paludis dev-util/git --install}}
== Configuration (Portage incompatible part III - (optional) Developer related) ==
 
{{Codeline|# mkdir -p /var/cache/paludis/kde4-experimental/provides}}
 
{{Codeline|# mkdir -p /var/cache/paludis/kde4-experimental/names}}
 
{{Codeline|# chown -R paludisbuild:paludisbuild /var/cache/paludis}}
 
{{Box File|/etc/paludis/repositories/kde4-experimental.conf|
<pre>
master_repository = gentoo
location = ${ROOT}/var/paludis/repositories/kde4-experimental
sync = git://www2.mailstation.de/git/genkde4svn.git
format = ebuild
provides_cache = /var/cache/paludis/kde4-experimental/provides
names_cache = /var/cache/paludis/kde4-experimental/names
write_cache = /var/cache/paludis/metadata
distdir = /var/cache/distfiles
</pre>
}}
 
{{Codeline|# paludis --sync x-kde4-experimental}}
 
{{Codeline|# paludis --sync kde4-experimental}}
 
{{Box File|/etc/paludis/package_unmask.conf|
<pre>
# Unmask split Qt-4.4. We unmask the set in ${location}/sets/:
qt-split*
 
# Other dependencies:
=app-office/akonadi-scm
=dev-libs/soprano-scm
=kde-base/automoc-scm
~kde-base/qimageblitz-0.0.4
~>app-text/poppler-0.8.0
~>app-text/poppler-bindings-0.8.0
 
# Unmask everything from the official kde:
kde-scm*
 
# Unmask additional packages provided by the repo:
genkdesvn-extras*
</pre>
}}
 
{{Box File|/etc/paludis/keywords.conf|
<pre>
# KDE4 dependencies
# ( avoiding SVN ebuilds where possible.)
=app-office/akonadi-scm *
<app-misc/strigi-9999 *
=dev-libs/soprano-scm *
=kde-base/automoc-scm *
<kde-base/qimageblitz-9999 *
net-libs/decibel *
net-libs/telepathy-qt *
net-voip/tapioca-qt *
~>app-text/poppler-0.8.0 *
~>app-text/poppler-bindings-0.8.0 *
~media-libs/taglib-1.5 *
 
app-crypt/qca:2 *
app-crypt/qca-cyrus-sasl:2 *
app-crypt/qca-gnupg:2 *
app-crypt/qca-logger:2 *
app-crypt/qca-ossl:2 *
app-crypt/qca-pkcs11:2 *
 
~app-crypt/gpgme-1.1.6 *
~dev-cpp/clucene-0.9.20:1 *
dev-libs/libzip *
~dev-libs/rasqal-0.9.15:0 *
~dev-libs/redland-1.0.7:0 *
~dev-libs/xmlrpc-c-1.06.09 *
~>dev-util/cmake-2.4.7 *
sci-libs/indilib *
sci-mathematics/gmm *
~x11-apps/xinit-1.0.5:0 *
 
# Allow Qt-4.4:
qt-split* *
 
# Keyword everything from the official kde:
kde-scm* *
 
# Unmask everything in kdebase:
kdebase-scm* *
 
# Keyword additional packages provided by the repo:
genkdesvn-extras* *
</pre>
}}
 
{{Codeline|# paludis --install kdebase-scm* --dl-suggested install --pretend}}
 
{{Codeline|# eselect news read new}}
 
<pre>
update:
paludis --sync gentoo kde4-experimental
paludis --install --dl-reinstall if-use-changed world --pretend
paludis --install --preserve-world --dl-reinstall-scm daily --continue-on-failure if-satisfied genkdesvn-all --pretend
 
revdep-rebuild:
reconcilio --pretend
 
emerge --depclean:
paludis --uninstall-unused --pretend
</pre>
 
== Configuration (Portage incompatible Part III - (optional) Developer related) ==


nano -w /etc/paludis/environment.conf
nano -w /etc/paludis/environment.conf

Revision as of 14:48, 21 July 2010

Paludis on Gentoo

Installation

USE="-python glsa inquisitio pink ruby visibility" emerge paludis

Configuration (Portage compatible)

With this configuration you are able to still use portage, although paludis will be sloooow and portage will spit out a few warnings when there are any kde4-svn ebuilds installed since it can't handle them but it will still work. It's a good first step to migrate and get used to paludis.

# mkdir -p /etc/paludis

Template:Box File

Template:Box File

Template:Box File

Template:Box File

Template:Box File

# mkdir -p /etc/paludis/repositories

Template:Box File

Template:Box File

# cat /etc/portage/package.use >> /etc/paludis/use.conf

# cp /etc/portage/package.unmask /etc/paludis/package_unmask.conf

# cp /etc/portage/package.mask /etc/paludis/package_mask.conf

# paludis -i --dl-reinstall if-use-changed everything --pretend

Configuration (Portage incompatible part II - Gentoo offical tree)

Now that we have played around a little with Paludis we really don't need Portage compatibility anymore, so lets adjust our configuration to speed up Paludis.

# mv /usr/portage/distfiles /var/cache

# chmod g+w /var/tmp/paludis

# mkdir -p /var/cache/paludis/gentoo/provides

# mkdir -p /var/cache/paludis/gentoo/names

# mkdir -p /var/cache/paludis/metadata

# chown -R paludisbuild:paludisbuild /var/cache/paludis

# chown -R paludisbuild:paludisbuild /var/cache/distfiles

# chown -R paludisbuild:paludisbuild /var/tmp/paludis

Template:Box File

# paludis --regenerate-installed-cache

# paludis --regenerate-installable-cache


Configuration (Portage incompatible part III - (optional) Developer related)

nano -w /etc/paludis/environment.conf

world = /var/lib/portage/world
reduced_username = psy

nano -w /etc/paludis/repositories/gentoo.conf

location = ${ROOT}/home/psy/gentoo-dev/tree/gentoo-x86
sync = cvs+ssh://tgurr@cvs.gentoo.org:/var/cvsroot:gentoo-x86
profiles = ${location}/profiles/default/linux/amd64/2008.0/desktop
format = ebuild
provides_cache = /var/cache/paludis/gentoo/provides
names_cache = /var/cache/paludis/gentoo/names
write_cache = /var/cache/paludis/metadata
distdir = /var/cache/distfiles

/etc/paludis/repositories/kde4-experimental.conf

master_repository = gentoo
location = ${ROOT}/home/psy/gentoo-dev/portage-kde4git/genkde4svn-dev/
sync = git+ssh://git@www2.mailstation.de/genkde4svn-dev.git
format = ebuild
provides_cache = /var/cache/paludis/kde4-experimental/provides
names_cache = /var/cache/paludis/kde4-experimental/names
write_cache = /var/cache/paludis/metadata
distdir = /var/cache/distfiles

chown psy:psy /var/log/paludis.log

chown -R psy:psy /var/cache/paludis

chown -R psy:psy /var/cache/distfiles

chown -R psy:psy /var/db/pkg

chown -R psy:psy /var/tmp/paludis

Portage vs. Paludis vs. Paludis cave Commands

Sync

Portage short:

$ -

Portage long:

$ emerge --sync

Paludis short:

$ paludis -s

Paludis long:

$ paludis --sync

Paludis cave short:

$ -

Paludis cave long:

$ cave sync


Portage long Paludis long Portage short Paludis short Paludis cave short Paludis cave long
emerge --sync paludis --sync paludis -s cave sync

Sync repository/overlay

Portage long Paludis long Portage short Paludis short Paludis short Paludis cave short Paludis cave long
paludis --sync <repository> paludis -s <repository> cave sync <repository>

World update

Portage long Paludis long Portage short Paludis short Paludis short Paludis cave short Paludis cave long
emerge --update --deep --pretend world paludis --install --pretend installed-packages emerge -uDp world paludis -ip installed-packages cave resolve installed-packages -x cave resolve installed-packages --execute

World update newuse

Portage long Paludis long Portage short Paludis short
emerge --update --deep --pretend --newuse world paludis --install --dl-reinstall if-use-changed --continue-on-failure if-satisfied installed-packages emerge -uDNp world paludis -ip --dl-reinstall if-use-changed --continue-on-failure if-satisfied installed-packages

Install package

Portage long Paludis long Portage short Paludis short
paludis <package> --install emerge <package> paludis <package> -i

Install package oneshot

Portage long Paludis long Portage short Paludis short
emerge <package> --oneshot paludis <package> --install --preserve-world emerge <package> -1 paludis <package> -i1

Update scm package set (always)

Portage long Paludis long Portage short Paludis short
paludis --install --preserve-world --dl-reinstall-targets always --continue-on-failure if-satisfied <set> paludis -i1 --dl-reinstall-targets always --continue-on-failure if-satisfied <set>

Update scm package set (daily, whole kde)

Portage long Paludis long Portage short Paludis short
paludis --install --preserve-world --dl-reinstall-scm daily --continue-on-failure if-satisfied genkdesvn-all paludis -i1 --dl-reinstall-scm daily --continue-on-failure if-satisfied genkdesvn-all

Which package ownes <file>

Portage long Paludis long Portage short Paludis short
equery belongs -f <file> paludis --owner <file> paludis -o <file>

revdep-rebuild

reconcilio --pretend

emerge --depclean

paludis --uninstall-unused --pretend

Paludis on Exherbo