Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Own build ebuild did not work anymore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
boospy
Guru
Guru


Joined: 07 Feb 2010
Posts: 307
Location: Austria

PostPosted: Mon Apr 06, 2020 4:22 pm    Post subject: [solved] Own build ebuild did not work anymore Reply with quote

Hello all,

years ago i've build some ebuilds. So after gentoo upgrade it will not work anymore. If i would like to merge i get this error:
Code:
ERROR: media-tv/vdr-epg2vdr-9999::local_overlay failed (prepare phase):
 *   The source directory '/var/tmp/portage/media-tv/vdr-epg2vdr-9999/work/epg2vdr-9999' doesn't exist

And yes it is right, the folder did not exist. But if i create them, the buildprocess delete him again an give the errormessage. What must i do, to fix the problem. Here is the ebuild:

Code:
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $

EAPI=5

inherit multilib vdr-plugin-2 eutils git-r3

DESCRIPTION="Video Disk Recorder - \"EPG2VDR\" - plugin which retrieves EPG data from a MySQL database"
HOMEPAGE="https://projects.vdr-developer.org/git/vdr-plugin-epg2vdr.git"
: ${EGIT_REPO_URI:=${EPGD_GIT_REPO_URI:-git://projects.vdr-developer.org/vdr-plugin-epg2vdr.git}}
: ${EGIT_BRANCH:=${EPGD_GIT_BRANCH:-master}}

SLOT="0"
LICENSE="GPL-2"
IUSE=""

DEPEND=">=media-video/vdr-2.1.0
        sys-apps/util-linux
        >=dev-db/mysql-5.6.33
        media-libs/imlib2
        virtual/jpeg
        dev-libs/tinyxml2"

RDEPEND="${DEPEND}"

src_prepare() {
        vdr-plugin-2_src_prepare
        sed -i Makefile -e "s@-lmysqlclient_r@-L\/usr\/$(get_abi_LIBDIR)\/mysql -lmysqlclient_r@" || die
}

src_install() {
        vdr-plugin-2_src_install
        dodoc README HISTORY.h
}


Thanks a lot! :)


Last edited by boospy on Mon Apr 06, 2020 7:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24078
Location: here

PostPosted: Mon Apr 06, 2020 4:56 pm    Post subject: Reply with quote

Run ebuild /path/to/your/ebuild/media-tv/vdr-epg2vdr-9999 clean unpack and then post output of ls -l /var/tmp/portage/media-tv/vdr-epg2vdr-9999/work.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
boospy
Guru
Guru


Joined: 07 Feb 2010
Posts: 307
Location: Austria

PostPosted: Mon Apr 06, 2020 5:02 pm    Post subject: Reply with quote

The output is
Code:
drwxr-xr-x 8 portage portage 40 Apr  6 18:59 vdr-epg2vdr-9999/


but it should when we show the error log
Code:
epg2vdr-9999


Interesting, some wrong path? But not directly, i searched at the ebuild.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24078
Location: here

PostPosted: Mon Apr 06, 2020 6:01 pm    Post subject: Reply with quote

Strange that try to find epg2vdr-9999 and not epg2vdr-9999, maybe some eclass change it.
Try to add S variable in ebuild
Code:
S="${workdir}/vdr-epg2vdr-${PV}"

update also ebuild to EAPI 7
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
boospy
Guru
Guru


Joined: 07 Feb 2010
Posts: 307
Location: Austria

PostPosted: Mon Apr 06, 2020 6:19 pm    Post subject: Reply with quote

Thank you, i changed this.

Code:
* Checking out git://projects.vdr-developer.org/vdr-plugin-epg2vdr.git to /var/tmp/portage/media-tv/vdr-epg2vdr-9999/work/vdr-epg2vdr-9999 ...
 * ERROR: media-tv/vdr-epg2vdr-9999::local_overlay failed (prepare phase):
 *   The source directory '/vdr-epg2vdr-9999' doesn't exist


Strange now it will search @root.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24078
Location: here

PostPosted: Mon Apr 06, 2020 6:32 pm    Post subject: Reply with quote

Sorry my fault correct entry is S="${WORKDIR}/vdr-epg2vdr-${PV}" (with workdir in uppercase)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
boospy
Guru
Guru


Joined: 07 Feb 2010
Posts: 307
Location: Austria

PostPosted: Mon Apr 06, 2020 7:03 pm    Post subject: Reply with quote

Wow! YES :) :)

that is working now. I learned something again. Thanks for your great support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum