
This might work, when considering just calls to emerge, but what about configuration files.... etc? I think scripts will have to be patched ...apberzerk wrote:So, rather than fix scripts like module-rebuild with silly one-line changes, I'd like to have a wrapper for emerge that just converts the command into one for paludis wheneber it can.
- Phil
Code: Select all
# Check if portage-utils are installed
-portageq has_version $PORTAGE_ROOT portage-utils
+paludis --log-level silent --has-version app-portage/portage-utils
Code: Select all
R_PORTAGEQ="`which portageq 2>/dev/null`"
R_PALUDIS="`which paludis 2>/dev/null`"
if [[ -z ${R_PORTAGEQ} ]]; then
echo "** FATAL: Unable to find portageq."
exit 1
fiCode: Select all
R_PORTDIR=`${R_PORTAGEQ} portdir`
R_VDBPATH=`${R_PORTAGEQ} vdb_path`Code: Select all
${R_PORTAGEQ} has_version / ${package}
Code: Select all
${R_PORTAGEQ} has_version / ${package}Code: Select all
paludis --log-level silent --has-version ${package}
Code: Select all
sys-kernel/module-rebuild
Code: Select all
eix -e module-rebuild
[D] sys-kernel/module-rebuild
Available versions: [M]0.1 [M]0.5 [M]~20070309[1]
Installed: 20070309(10:23:16 03/09/07)
Homepage: http://drzile.dyndns.org/index.php?page=paludis_scripts
Description: A utility to rebuild any kernel modules which you have installed. Paludis version
[1] /var/paludis/repositories/paludis-extras
is not masked any more....News wrote:
- sys-apps/module-rebuild-20070309 (module-rebuild ported to paludis) -- zxy, truc

Supports hooks from the overlay and any other hooks, too. See the homepage for detailed instructions on install, use, customization, possibilities...News wrote:
- app-admin/eselect-paludis-hooks-0.1.0 - manage hooks with eselect -- zxy NEW

Now you can read news in languages (if available) that you have set in LANGUAGES, LC_ALL, LC_MESSAGES or LANG environment variables. There is also an option --lang <lang> to overrule the environment settings.News wrote:
- app-admin/eselect-news-0.1.1 - eselect news from paludis patched with multilanguage support -- zxy NEW


New useflag introduced: paludis. If a package has this use flag available, then if this flag is set a paludis patched version is installed, if not then the original is installed.NEWS wrote:
- sys-kernel/module-rebuild-20070313 (module-rebuild ported to paludis) (use flag: paludis) -- zxy, truc NEW
- sys-devel/binutils-config-20070313 Utility to change the binutils version being used. Paludis version. (use flag: paludis) -- zxy NEW

Code: Select all
Paludis extras: New local useflag (paludis) for certain packges
Some packages that are patched so they don't use portage but paludis,
now have "paludis" use flag.
* With the flag set the patched version is installed.
* If the flag is unset then the original is installed.
POSSIBLE PROBLEM AND A SOLUTION:
* When new versions (of portage only binutils-config, module-rebuild)
* come in the gentoo tree, they will be installed during updates, until
* the patched version becomes available in paludis-extras overlay.
* The patched version should be available soon.
*
* To avoid this possible problem, put the following into the
* /etc/paludis/package_mask.conf
*
>=sys-devel/binutils-config-1.9-r3::gentoo
>=sys-kernel/module-rebuild-0.5::gentoo
Code: Select all
sys-devel/binutils-config::gentoo
sys-kernel/module-rebuild::gentoo
Ebuild (eselect) now automatically creates the .../hooks/eselect/.db/ folder. That was a bug, and is fixed in -r1.News wrote:
- app-admin/eselect-paludis-hooks-0.1.2-r1 - ebuild fix -- zxy
- app-paludis/paludis-wrapper-0.1.0-r1 - ebuild fix -- zxy
Code: Select all
revdep-rebuild
Configuring search environment for revdep-rebuild
Checking reverse dependencies...
Packages containing binaries and libraries broken by a package update
will be emerged.
Collecting system binaries and libraries... done.
(/root/.revdep-rebuild.1_files)
Collecting complete LD_LIBRARY_PATH... done.
(/root/.revdep-rebuild.2_ldpath)
Checking dynamic linking consistency...
broken /usr/lib32/opengl/nvidia/lib/libGL.so.1.0.9755 (requires libGLcore.so.1 libX11.so.6 libXext.so.6 libnvidia-tls.so.1)
done.
(/root/.revdep-rebuild.3_rebuild)
Assigning files to ebuilds... done.
(/root/.revdep-rebuild.4_ebuilds)
Evaluating package order... done.
(/root/.revdep-rebuild.5_order)
All prepared. Starting rebuild...
paludis --preserve-world --install =x11-drivers/nvidia-drivers-1.0.9755-r1 =You
..........
Building target list...
Unhandled exception:
* In program paludis --preserve-world --install =x11-drivers/nvidia-drivers-1.0.9755-r1 =You:
* When performing install action from command line:
* When adding install target '=You':
* When validating package name part '=You':
* Name '=You' is not a valid package name part (paludis::PackageNamePartError)
revdep-rebuild failed to emerge all packages
you have the following choices:
- if paludis failed during the build, fix the problems and re-run revdep-rebuild
or
- use -X or --package-names as first argument (trys to rebuild package, not exact
ebuild)
or
- set "* ~<your platform>" in /etc/paludis/keywords.conf and/or /etc/paludis/package_unmask.conf
(and remove /root/.revdep-rebuild.5_order to be evaluated again)
or
- modify the above paludis command and run it manually
or
- compile or unmerge unsatisfied packages manually, remove temporary files and
try again (you can edit package/ebuild list first)
To remove temporary files, please run:
rm /root/.revdep-rebuild*.?_*