Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692666 - app-eselect/eselect-vdr: fails to find plugins in 17.1 profile
Summary: app-eselect/eselect-vdr: fails to find plugins in 17.1 profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VDR Project
URL: https://forums.gentoo.org/viewtopic-p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-21 08:02 UTC by Marco Genasci
Modified: 2019-11-13 15:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
eselect-vdr-0.0.3-profile-17.1.patch (eselect-vdr-0.0.3-profile-17.1.patch,1.47 KB, patch)
2019-08-21 08:05 UTC, Marco Genasci
Details | Diff
vdr-plugin.eselect Version 4 (vdr-plugin.eselect,3.93 KB, text/plain)
2019-11-05 16:53 UTC, Joerg Bornkessel
Details
eselect-vdr-0.0.4.ebuild (eselect-vdr-0.0.4.ebuild,502 bytes, text/plain)
2019-11-06 12:40 UTC, Joerg Bornkessel
Details
eselect-vdr-0.0.4.ebuild, added alternativ URL to download the eselec sources (eselect-vdr-0.0.4.ebuild,574 bytes, text/plain)
2019-11-12 15:51 UTC, Joerg Bornkessel
Details
metadata includes all the needs for proxying (metadata.xml,479 bytes, text/xml)
2019-11-12 15:52 UTC, Joerg Bornkessel
Details
fixed ebuild, as is descriped by proxy-maint (eselect-vdr-0.0.4.ebuild,479 bytes, text/plain)
2019-11-13 07:33 UTC, Joerg Bornkessel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2019-08-21 08:02:55 UTC
app-eselect/eselect-vdr can't list/enable/disable plugins

# eselect vdr-plugin enable fenom
!!! Error: Plugin fenom doesn't exist

This is caused by wrong path in vdr-plugin.eselect

Reproducible: Always
Comment 1 Marco Genasci 2019-08-21 08:05:18 UTC
Created attachment 587734 [details, diff]
eselect-vdr-0.0.3-profile-17.1.patch

Patch to solve problem (lib_dir function copied from postgresql.eselect)
Comment 2 Joerg Bornkessel 2019-11-05 16:53:24 UTC
Created attachment 595068 [details]
vdr-plugin.eselect Version 4
Comment 3 Joerg Bornkessel 2019-11-05 17:09:14 UTC
Marco, thanks for reporting this.

eselect-3 fails as several reasons

in newer stages-3 it better clearifyd
what has to  be in 
lib
lib64
lib32
...

older stages has simply a symlink from lib to lib32 or lib64 

after a short review of your patch
by inheriting multilib
it is not needed to use a another (self written) function to get the feedback
where is exactly the path to the libs

$(get_libdir) function from multilib will exactly do this.

Marco, i have attached the rewritten vdr-plugin.eselect in version 4
Please could you test this on your system?

simply go to /usr/share/eselect/modules

backup your existing vdr-plugin.eselect
add the provided vdr-plugin.eselect version from me

and give a short feedback...
Comment 4 Marco Genasci 2019-11-06 07:27:26 UTC
Joerg I tested your code and seems to work.
I only tested that plugins are finded and writed in /etc/conf.d/vdr.plugins because I created the patch for a forum user, I don't use vdr.
Comment 5 Joerg Bornkessel 2019-11-06 12:38:48 UTC
@Marco

a lot of thanks for testing this...
Comment 6 Joerg Bornkessel 2019-11-06 12:40:34 UTC
Created attachment 595122 [details]
eselect-vdr-0.0.4.ebuild
Comment 7 Joerg Bornkessel 2019-11-06 12:54:33 UTC
download the sources from here ->
http://vdr.websitec.de/download/eselect-vdr/eselect-vdr-0.0.4.tar.bz2


ebuild: moved to EAPI=7, droped all keywords to ~ARCH

gentoo developer
- add ebuild to app-eselect/eselect-vdr
- download the sources from provided link, 
  upload to mirror://gentoo

close the bug...
Comment 8 Joerg Bornkessel 2019-11-12 15:51:19 UTC
Created attachment 595902 [details]
eselect-vdr-0.0.4.ebuild, added alternativ URL to download the eselec sources
Comment 9 Joerg Bornkessel 2019-11-12 15:52:26 UTC
Created attachment 595904 [details]
metadata includes all the needs for proxying
Comment 10 Joerg Bornkessel 2019-11-12 16:09:39 UTC
(In reply to Joerg Bornkessel from comment #7)
> download the sources from here ->
> http://vdr.websitec.de/download/eselect-vdr/eselect-vdr-0.0.4.tar.bz2
> 
> 
> ebuild: moved to EAPI=7, droped all keywords to ~ARCH
> 
> gentoo developer
> - add ebuild to app-eselect/eselect-vdr
> - download the sources from provided link, 
>   upload to mirror://gentoo

added a backup url in ebuild
Comment 11 Joonas Niilola gentoo-dev 2019-11-13 06:02:20 UTC
Comment on attachment 595902 [details]
eselect-vdr-0.0.4.ebuild, added alternativ URL to download the eselec sources

># Copyright 1999-2019 Gentoo Authors
># Distributed under the terms of the GNU General Public License v2
>
>EAPI=7
>
>DESCRIPTION="Manages the VDR plugins"
>HOMEPAGE="https://www.gentoo.org/"
>SRC_URI="mirror://gentoo/${P}.tar.bz2
Using mirror://gentoo is prohibited nowadays, so just leave the 2nd url and let it be mirrored that way in GENTOO_MIRRORS.

>		http://vdr.websitec.de/download/eselect-vdr/eselect-vdr-0.0.4.tar.bz2"
>
>LICENSE="GPL-2"
>SLOT="0"
>KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
>IUSE=""
>
>RDEPEND=">=app-admin/eselect-1.2.3"
You can just depend on app-admin/eselect if you wish, the version is always satisified with packages in ::gentoo.

>
>src_install() {
>	insinto /usr/share/eselect/modules
>	doins vdr-plugin.eselect || die "Could not install eselect module"
'doins' is a helper function and doesn't need to "|| die" anymore in newer EAPIs. 

>
>	dosym eselect /usr/bin/vdr-plugin-config
>}

Due to the certificate-of-origin requirement, I can't fix these on-the-fly while merging this ebuild for you :)
Comment 12 Joerg Bornkessel 2019-11-13 07:33:20 UTC
Created attachment 595940 [details]
fixed ebuild, as is descriped by proxy-maint

All done,

as you discripted

thanks
Comment 13 Joerg Bornkessel 2019-11-13 07:36:46 UTC
tested here on my 
raspberry pi  arm ->/usr/bin
amd64 (nomultilib) -> /usr/bin64

works like a charm
Comment 14 Joerg Bornkessel 2019-11-13 14:31:49 UTC
(In reply to Joerg Bornkessel from comment #13)
> tested here on my 
> raspberry pi  arm ->/usr/bin
> amd64 (nomultilib) -> /usr/bin64
> 
> works like a charm

uups,

/usr/lib vs. /usr/bin
/usr/lib64 vs. /usr/bin64

of course
Comment 15 Larry the Git Cow gentoo-dev 2019-11-13 15:05:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=101f360d370113b374deda6216d86581353cbf3c

commit 101f360d370113b374deda6216d86581353cbf3c
Author:     Joerg Bornkessel <hd_brummy@astrali.de>
AuthorDate: 2019-11-13 14:28:38 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-11-13 15:04:50 +0000

    app-eselect/eselect-vdr: bump to 0.0.4
    
    - EAPI-7,
    - fix multilib issue.
    
    Signed-off-by: Joerg Bornkessel <hd_brummy@astrali.de>
    Closes: https://bugs.gentoo.org/692666
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-eselect/eselect-vdr/Manifest                 |  1 +
 app-eselect/eselect-vdr/eselect-vdr-0.0.4.ebuild | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)