Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error manifests of an ebuild
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
elover
n00b
n00b


Joined: 20 Nov 2019
Posts: 60
Location: Spain

PostPosted: Sun Oct 04, 2020 4:04 pm    Post subject: Error manifests of an ebuild Reply with quote

Hi, I went to install my printer ebuild and received a manifest error that I didn't receive before.

Specifically this one:

Code:
❯ sudo repoman manifest
 * ERROR: net-print/cnijfilter-3.90-r2::elover failed (depend phase):
 *   ecnij.eclass could not be found by inherit()
 *
 * Call stack:
 *                   ebuild.sh, line 609:  Called source '/var/db/repos/localrepo/net-print/cnijfilter/cnijfilter-3.90-r2.ebuild'
 *   cnijfilter-3.90-r2.ebuild, line  12:  Called inherit 'ecnij'
 *                   ebuild.sh, line 290:  Called die
 * The specific snippet of code:
 *              [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
 *
 * If you need support, post the output of `emerge --info '=net-print/cnijfilter-3.90-r2::elover'`,
 * the complete build log and the output of `emerge -pqv '=net-print/cnijfilter-3.90-r2::elover'`.
 * The ebuild environment file is located at '/var/portage/net-print/cnijfilter-3.90-r2/temp/environment'.
 * Working directory: '/var/portage/net-print/cnijfilter-3.90-r2/homedir'
 * S: '/var/portage/net-print/cnijfilter-3.90-r2/work/cnijfilter-3.90'
!!! getFetchMap(): aux_get() error reading net-print/cnijfilter-3.90-r2; aborting.
!!! Unable to generate manifest for '/var/db/repos/localrepo/net-print/cnijfilter'.
  manifest.bad [fatal]          1
   net-print/cnijfilter/Manifest


For the creation of ebuild is impossible, since I have no knowledge of script creation

This is the ebuild:

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

EAPI=5

MULTILIB_COMPAT=( abi_x86_{32,64} )

PRINTER_MODEL=( "mx720" "mx920" "mx390" "mx450" "mx520" "e660" )
PRINTER_ID=( "416" "417" "418" "419" "420" "421" )

inherit ecnij

DESCRIPTION="Canon InkJet Printer Driver for Linux (Pixus/Pixma-Series)"
HOMEPAGE="http://support-au.canon.com.au/contents/AU/EN/0100517102.html"
SRC_URI="http://gdlp01.c-wss.com/gds/1/0100005171/01/${PN}-source-${PV}-1.tar.gz"

IUSE="+doc"

RESTRICT="mirror"

PATCHES=(
   "${FILESDIR}"/${PN}-3.20-4-ppd.patch
   "${FILESDIR}"/${PN}-3.70-1-libexec-cups.patch
   "${FILESDIR}"/${PN}-3.70-1-libexec-backend.patch
   "${FILESDIR}"/${PN}-3.80-5-abi_x86_32.patch
   "${FILESDIR}"/${PN}-3.80-1-cups-1.6.patch
   "${FILESDIR}"/${PN}-${PV}-6-headers.patch
   "${FILESDIR}"/${PN}-3.80-6-cups-1.6.patch
   "${FILESDIR}"/${PN}-3.70-6-headers.patch
   "${FILESDIR}"/${PN}-3.70-6-cups-1.6.patch
)

src_install() {
   ecnij_src_install
   if use usb; then
      insinto /etc/udev/rules.d
      doins etc/81-canonij_prn.rules
   fi
}

pkg_postinst() {
   if use usb; then
      if [ -x "$(which udevadm)" ]; then
         einfo ""
         einfo "Reloading usb rules..."
         udevadm control --reload-rules 2> /dev/null
         udevadm trigger --action=add --subsystem-match=usb 2> /dev/null
      else
         einfo ""
         einfo "Please, reload usb rules manually."
      fi
   fi   
   ecnij_pkg_postinst
}
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24792
Location: here

PostPosted: Sun Oct 04, 2020 4:07 pm    Post subject: Reply with quote

Code:
 * ERROR: net-print/cnijfilter-3.90-r2::elover failed (depend phase):
 *   ecnij.eclass could not be found by inherit()


You should also download ecnij.eclass for this ebuild and put in /path/of/your/overlay/eclass
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
elover
n00b
n00b


Joined: 20 Nov 2019
Posts: 60
Location: Spain

PostPosted: Sun Oct 04, 2020 4:48 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Code:
 * ERROR: net-print/cnijfilter-3.90-r2::elover failed (depend phase):
 *   ecnij.eclass could not be found by inherit()


You should also download ecnij.eclass for this ebuild and put in /path/of/your/overlay/eclass


Solved! Thank you!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3541

PostPosted: Sun Oct 04, 2020 6:11 pm    Post subject: Re: Error manifests of an ebuild Reply with quote

In case your specific printer model
elover wrote:
Code:
PRINTER_MODEL=( "mx720" "mx920" "mx390" "mx450" "mx520" "e660" )
PRINTER_ID=( "416" "417" "418" "419" "420" "421" )

inherit ecnij

DESCRIPTION="Canon InkJet Printer Driver for Linux (Pixus/Pixma-Series)"

is a networked one you might try https://wiki.gentoo.org/wiki/Driverless_printing and toss the drivers
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