Can I install .rpm or .deb drivers on Sabayon?

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby Fitzcarraldo » Wed Feb 15, 2012 10:02

If brcupsconfig4 is an executable then you would enter:

Code: Select all
/usr/local/Brother/Printer/DCP7065DN/cupswrapper/brcupsconfig4

If cupswrapperDCP7065DN-2.0.4 is a shell script you could enter:

Code: Select all
cd /usr/local/Brother/Printer/DCP7065DN/cupswrapper
./cupswrapperDCP7065DN-2.0.4

or:

Code: Select all
cd /usr/local/Brother/Printer/DCP7065DN/cupswrapper
sh cupswrapperDCP7065DN-2.0.4
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby tonyawards » Thu Feb 16, 2012 5:55

Still trying to get to the hack of the ebuild, but I ran these through and got

Code: Select all
zenboy spike # cd /usr/local/Brother/Printer/DCP7065DN/cupswrapper
zenboy cupswrapper # sh cupswrapperDCP7065DN-2.0.4
cp: `/usr/lib/cups/filter/brlpdwrapperDCP7065DN' and `/usr/lib64/cups/filter/brlpdwrapperDCP7065DN' are the same file
zenboy cupswrapper # cd
zenboy ~ # /usr/local/Brother/Printer/DCP7065DN/cupswrapper/brcupsconfig4
zenboy ~ # cd /usr/local/Brother/Printer/DCP7065DN/cupswrapper
zenboy cupswrapper # ./cupswrapperDCP7065DN-2.0.4
cp: `/usr/lib/cups/filter/brlpdwrapperDCP7065DN' and `/usr/lib64/cups/filter/brlpdwrapperDCP7065DN' are the same file
zenboy cupswrapper # sh cupswrapperDCP7065DN-2.0.4
cp: `/usr/lib/cups/filter/brlpdwrapperDCP7065DN' and `/usr/lib64/cups/filter/brlpdwrapperDCP7065DN' are the same file
zenboy cupswrapper #

which is pretty much the same as when I tried running them before (though I may not have posted that excerpt). I'll keep after the ebuild in the meantime. Thanks, Fitzcarraldo.
SL Version: XI+, just rollin' along / Kernel 3.8.3 | KDE 4.10.1 | HP dv6000z | AMD Turion64 MK-36 | 2GB RAM | nVidia GeForce 6150
tonyawards
Growing Hen
 
Posts: 112
Joined: Sun Nov 23, 2008 4:21

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby Fitzcarraldo » Fri Feb 17, 2012 11:21

I've hacked the two ebuilds for the MFC-7440N in Gentoo Bugzilla Bug Report No. 355555, and below you'll find the resulting ebuild brdcp7065dnlpr-2.1.0.ebuild

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

EAPI=3

inherit rpm

DESCRIPTION="Brother DCP-7065DN LPR driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-7065DN"
SRC_URI="brdcp7065dnlpr-2.1.0-1.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
RESTRICT="fetch strip"
DOWNLOAD_URL="http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/brdcp7065dnlpr-2.1.0-1.i386.rpm&lang=English_gpl"

DEPEND=""
RDEPEND="${DEPEND}"

pkg_nofetch() {
   einfo "Please download ${A} from ${DOWNLOAD_URL}."
   einfo "Select 'I Accept' and move the file to ${DISTDIR}."
}

src_unpack() {
   rpm_unpack || die "Error unpacking ${A}."
}

src_install() {
   cp -r $WORKDIR $D
   mv $D/work/* $D
   rm -r $D/work/
}

and below is the resulting ebuild cupswrapperDCP7065DN-2.0.4.ebuild

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

EAPI=3

inherit rpm

DESCRIPTION="Brother DCP-7065DN CUPS wrapper"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-7065DN"
SRC_URI="cupswrapperDCP7065DN-2.0.4-2.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
RESTRICT="fetch strip"
DOWNLOAD_URL="http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/cupswrapperDCP7065DN-2.0.4-2.i386.rpm&lang=English_gpl"

DEPEND="
   app-text/a2ps
   net-print/brdcp7065dnlpr
"
RDEPEND="${DEPEND}"

pkg_nofetch() {
   einfo "Please download ${A} from ${DOWNLOAD_URL}."
   einfo "Select 'I Accept' and move the file to ${DISTDIR}."
}

src_unpack() {
   rpm_unpack || die "Error unpacking ${A}."
}

src_install() {
   cp -r $WORKDIR $D
   mv $D/work/* $D
   rm -r $D/work/
}

pkg_postinst() {
   echo
   einfo "If you can't print, create the following symlink:"
   einfo "ln -s /usr/lib/cups/filter/brlpdwrapperDCP7065DN
   /usr/libexec/cups/filter/brlpdwrapperDCP7065DN"
   echo
}


Assuming the above ebuilds are saved in the directory /home/fitzcarraldo/Desktop/ you would have to do the following:

Code: Select all
# mkdir -p /usr/local/portage/net-print/cupswrapperDCP7065DN
# cd /usr/local/portage/net-print/cupswrapperDCP7065DN
# cp /home/fitzcarraldo/Desktop/cupswrapperDCP7065DN-2.0.4.ebuild .
# ebuild cupswrapperDCP7065DN-2.0.4.ebuild manifest
# mkdir -p /usr/local/portage/net-print/brdcp7065dnlpr
# cd /usr/local/portage/net-print/brdcp7065dnlpr
# cp /home/fitzcarraldo/Desktop/brdcp7065dnlpr-2.1.0.ebuild .
# ebuild brdcp7065dnlpr-2.1.0.ebuild manifest
# emerge -1v cupswrapperDCP7065DN brdcp7065dnlpr
# etc-update # Select -3 and then accept all.

You're going to have to follow the einfo instructions and manually download the RPM files from the Brother download site and copy them to the /usr/portage/distfiles/ directory, then re-run the commands.

Actually, because you have a lot of files already installed as as result of all the things you've tried thus far, you may have to prefix the above-mentioned emerge command with the following to disable file collision protection:

Code: Select all
FEATURES="-collision-detect -protect-owned"


EDIT (February 19, 2012 10:45 GMT): Applied the two corrections mentioned in my next post.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby tonyawards » Sun Feb 19, 2012 1:43

Wow, Fitzcarraldo - thank you so much for taking the time to hack the ebuilds for my dcp7065dn, I really appreciate it.

So I went through the steps in sequence:

Code: Select all
zenboy spike # mkdir -p /usr/local/portage/net-print/cupswrapperDCP7065DN
zenboy spike # cd /usr/local/portage/net-print/cupswrapperDCP7065DN
zenboy cupswrapperDCP7065DN # cp /home/spike/Desktop/cupswrapperDCP7065DN-2.0.4.ebuild .
zenboy cupswrapperDCP7065DN # ls -l
total 4
-rwxr-xr-x 1 root root 1179 Feb 18 14:52 cupswrapperDCP7065DN-2.0.4.ebuild
zenboy cupswrapperDCP7065DN # ebuild cupswrapperDCP7065DN-2.0.4.ebuild manifest

!!! net-print/cupswrapperDCP7065DN-2.0.4 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Please download cupswrapperDCP7065DN-2.0.4-2.i386.rpm from http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/cupswrapperDCP7065DN-2.0.4-2.i386.rpm&lang=English_gpl.
 * Select 'I Accept' and move the file to /usr/portage/distfiles.
!!! Fetch failed for cupswrapperDCP7065DN-2.0.4-2.i386.rpm, can't update Manifest


so I removed *fetch* from the *fetch strip* line in the ebuilds as before. That worked, the ebuilds seemed to download the files ok, and the manifests were created for both in their new directories in /net-print/. Here, edited to the end:

Code: Select all
Saving to: `/usr/portage/distfiles/cupswrapperDCP7065DN-2.0.4-2.i386.rpm'

100%[===================================================================================>] 1,901       --.-K/s   in 0s     

2012-02-18 15:00:37 (19.3 MB/s) - `/usr/portage/distfiles/cupswrapperDCP7065DN-2.0.4-2.i386.rpm' saved [1901/1901]

>>> Creating Manifest for /usr/local/portage/net-print/cupswrapperDCP7065DN


It worked in the same fashion for the lpr file:

Code: Select all
zenboy cupswrapperDCP7065DN # cd
zenboy ~ # mkdir -p /usr/local/portage/net-print/brdcp7065dnlpr
zenboy ~ # cd /usr/local/portage/net-print/brdcp7065dnlpr
zenboy brdcp7065dnlpr # cp /home/spike/Desktop/brdcp7065dnlpr-2.1.0.ebuild .
zenboy brdcp7065dnlpr # ls -l
total 4
-rwxr-xr-x 1 root root 914 Feb 18 15:04 brdcp7065dnlpr-2.1.0.ebuild
zenboy brdcp7065dnlpr # ebuild brdcp7065dnlpr-2.1.0.ebuild manifest

<EDITED>

Saving to: `/usr/portage/distfiles/brdcp7065dnlpr-2.1.0-1.i386.rpm'

    [ <=>                                                                                ] 1,877       --.-K/s   in 0s     

2012-02-18 15:07:11 (58.0 MB/s) - `/usr/portage/distfiles/brdcp7065dnlpr-2.1.0-1.i386.rpm' saved [1877]

>>> Creating Manifest for /usr/local/portage/net-print/brdcp7065dnlpr


I copied the rpms into /distfiles and tried the next step - to merge with your prefix added. But then got a merge error I'm not sure how to interpret:

Code: Select all
zenboy brdcp7065dnlpr # cd /usr/portage/distfiles/
zenboy distfiles # cp /home/spike/Desktop/cupswrapperDCP7065DN-2.0.4-2.i386.rpm .
zenboy distfiles # cp /home/spike/Desktop/dcp7065dnlpr-2.1.0-1.i386.rpm .
zenboy distfiles # FEATURES="-collision-detect -protect-owned" emerge -1v cupswrapperDCP7065DN brdcp7065dnlpr

Performing Global Updates:
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
/var/lib/layman/sabayon-distro/profiles/updates/1Q-2012...



These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "net-print/dcp7065dnlpr".
(dependency required by "net-print/cupswrapperDCP7065DN-2.0.4" [ebuild])
(dependency required by "cupswrapperDCP7065DN" [argument])


I tried several variations of the file names after the *emerge -lv* but they did not seem to help (here's one):

Code: Select all
zenboy distfiles # FEATURES="-collision-detect -protect-owned" emerge -1v cupswrapperDCP7065DN-2.0.4-2 dcp7065dnlpr-2.1.0-1!!! 'cupswrapperDCP7065DN-2.0.4-2' is not a valid package atom.
!!! Please check ebuild(5) for full details.


I noticed inside the ebuild that the line < SRC_URI="cupswrapperDCP7065DN-2.0.4-2.i386.rpm" > is not exactly the same as the file's name in its version number; does that matter?

I looked at the manifests (much smaller now, a couple of lines only - only one driver set involved!) but don't know if that is the problem.

I already had the exact symlink as shown below in the ebuild except that I created from the very first time I tried this, when I was using the rpms:

Code: Select all
einfo "If you can't print, create the following symlink:"
   einfo "ln -s /usr/lib/cups/filter/brlpdwrapperDCP7065DN
   /usr/libexec/cups/filter/brlpdwrapperDCP7065DN"


would I need to recreate it? File names are the same, so it should work, right? And I'm not even that far just yet.

So the ebuilds are there with manifests inside the new directories in /net-print/, the driver sets are in /usr/portage/distfiles/, what did I miss this time, I wonder?
SL Version: XI+, just rollin' along / Kernel 3.8.3 | KDE 4.10.1 | HP dv6000z | AMD Turion64 MK-36 | 2GB RAM | nVidia GeForce 6150
tonyawards
Growing Hen
 
Posts: 112
Joined: Sun Nov 23, 2008 4:21

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby Fitzcarraldo » Sun Feb 19, 2012 11:16

Just noticed that in brdcp7065dnlpr-2.1.0.ebuild I forgot to change the description (not that it matters). Anyway, change:

Code: Select all
DESCRIPTION="Brother MFC-7440N LPR driver"

to:

Code: Select all
DESCRIPTION="Brother DCP-7065DN LPR driver"

Regarding the error message you got when your ran the emerge command, edit cupswrapperDCP7065DN-2.0.4.ebuild and change:

Code: Select all
DEPEND="
   app-text/a2ps
   net-print/dcp7065dnlpr
"

to:

Code: Select all
DEPEND="
   app-text/a2ps
   net-print/brdcp7065dnlpr
"

I'll edit my previous post and apply those changes.

You'll need to recreate the manifest before merging (installing).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby BHReach » Sun Feb 19, 2012 13:43

Here is a 'quick and dirty' way that might save you some time.

Excerpted from my installation notes for how I installed the drivers for my 2 Samsung printers:

------------------------------------------------------------
# Install Samsung CLP-300 and ML-1865W laser printers. No need to install the Samsung software, just copy the Samsung filters and the
# appropriate ppd files to the proper locations.

Code: Select all
mkdir ~/docs ~/docs/computerHardware ~/docs/computerHardware/SamsungPrinter
cd ~/docs/computerHardware/SamsungPrinter
wget -c http://downloadcenter.samsung.com/content/DR/201106/20110602161236937/UnifiedLinuxDriver_0.98.tar.gz
tar xvf UnifiedLinuxDriver_0.98.tar.gz

Inspecting the ppd files shows that CLP-300 uses rastertosamsungsplc filter and ML-1865W uses rastertosamsungspl filter.

Code: Select all
su -c 'cp cdroot/Linux/x86_64/at_root/usr/lib64/cups/filter/rastertosamsungspl /usr/libexec/cups/filter/'
su -c 'cp cdroot/Linux/x86_64/at_root/usr/lib64/cups/filter/rastertosamsungsplc /usr/libexec/cups/filter/'
su -c 'cp cdroot/Linux/noarch/at_opt/share/ppd/CLP-300splc.ppd /usr/share/cups/model/'
su -c 'cp cdroot/Linux/noarch/at_opt/share/ppd/ML-1865wspl.ppd /usr/share/cups/model/'

Samsung CLP-300 -> socket://192.168.0.100:9101
Samsung ML-1865W -> socket://192.168.0.100:9102

------------------------------------------------------------

To extract a .deb file (it is just archived):

Code: Select all
ar vx package.deb

to extract an rpm file 1st install

Code: Select all
equo install --ask rpm2targz

rpm2targz package.rpm

Converts it to a tar.gz file, just untar it.

If you are really lazy like me, just copy the ppd file and try to print, the error message will tell you which filter is missing.
BHReach
Growing Hen
 
Posts: 193
Joined: Thu Jan 31, 2008 20:40

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby tonyawards » Mon Feb 20, 2012 0:25

Fitzcarraldo, thanks, and yes, I had already fixed the description just to tidy up, although as you said, it probably wouldn't make a difference anyway.

I modified the file to reflect the actual name:

Code: Select all
DEPEND="
app-text/a2ps
net-print/brdcp7065dnlpr
"
per your instructions, then recreated the manifest:

Code: Select all
zenboy cupswrapperDCP7065DN # vi cupswrapperDCP7065DN-2.0.4.ebuild
zenboy cupswrapperDCP7065DN # ebuild cupswrapperDCP7065DN-2.0.4.ebuild manifest
Refetching... File renamed to '/usr/portage/distfiles/cupswrapperDCP7065DN-2.0.4-2.i386.rpm._checksum_failure_.oufY6i'

>>> Downloading 'http://ftp.heanet.ie/pub/gentoo/distfiles/cupswrapperDCP7065DN-2.0.4-2.i386.rpm'
--2012-02-19 11:50:27--  http://ftp.heanet.ie/pub/gentoo/distfiles/cupswrapperDCP7065DN-2.0.4-2.i386.rpm
Resolving ftp.heanet.ie... 193.1.193.64, 2001:770:18:aa40::c101:c140
Connecting to ftp.heanet.ie|193.1.193.64|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-02-19 11:50:27 ERROR 404: Not Found.

EDITED

Resolving guide.opendns.com... 208.67.216.136
Connecting to guide.opendns.com|208.67.216.136|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/usr/portage/distfiles/cupswrapperDCP7065DN-2.0.4-2.i386.rpm'

    [ <=>                                                                                ] 1,901       --.-K/s   in 0s     

2012-02-19 11:50:45 (80.8 MB/s) - `/usr/portage/distfiles/cupswrapperDCP7065DN-2.0.4-2.i386.rpm' saved [1901]

 * cupswrapperDCP7065DN-2.0.4-2.i386.rpm RMD160 SHA1 SHA256 size ;-) ...                                              [ ok ]
>>> Creating Manifest for /usr/local/portage/net-print/cupswrapperDCP7065DN


however, when I tried to emerge, I got this:

Code: Select all
zenboy cupswrapperDCP7065DN # cd
zenboy ~ # cd /usr/portage/distfiles
zenboy distfiles # FEATURES="-collision-detect -protect-owned" emerge -1v cupswrapperDCP7065DN brdcp7065dnlpr

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-print/brdcp7065dnlpr-2.1.0  0 kB [1]
[ebuild  N     ] app-text/wdiff-1.1.0  USE="-experimental -test" 1,353 kB [0]
[ebuild  N     ] app-text/a2ps-4.14-r2  USE="nls -emacs -latex -vanilla" LINGUAS="ja" 2,520 kB [0]
[ebuild  N     ] net-print/cupswrapperDCP7065DN-2.0.4  0 kB [1]

Total: 4 packages (4 new), Size of downloads: 3,873 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage


>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 4) net-print/brdcp7065dnlpr-2.1.0 from local_overlay
 * brdcp7065dnlpr-2.1.0-1.i386.rpm RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking brdcp7065dnlpr-2.1.0-1.i386.rpm to /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work
rpm2tar: warning: unable to locate cpio offset (broken/unknown compression?)
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: net-print/brdcp7065dnlpr-2.1.0 failed (unpack phase):
 *   failure unpacking /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/distdir/brdcp7065dnlpr-2.1.0-1.i386.rpm
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 2198:  Called rpm_unpack
 *   environment, line 2134:  Called die
 * The specific snippet of code:
 *           rpm2tar -O "${a}" | tar xf - || die "failure unpacking ${a}";
 *
 * If you need support, post the output of 'emerge --info =net-print/brdcp7065dnlpr-2.1.0',
 * the complete build log and the output of 'emerge -pqv =net-print/brdcp7065dnlpr-2.1.0'.
 * This ebuild is from an overlay named 'local_overlay': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/environment'.
 * S: '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work/brdcp7065dnlpr-2.1.0'

>>> Failed to emerge net-print/brdcp7065dnlpr-2.1.0, Log file:

>>>  '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/build.log'

 * Messages for package net-print/brdcp7065dnlpr-2.1.0:

 * ERROR: net-print/brdcp7065dnlpr-2.1.0 failed (unpack phase):
 *   failure unpacking /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/distdir/brdcp7065dnlpr-2.1.0-1.i386.rpm
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 2198:  Called rpm_unpack
 *   environment, line 2134:  Called die
 * The specific snippet of code:
 *           rpm2tar -O "${a}" | tar xf - || die "failure unpacking ${a}";
 *
 * If you need support, post the output of 'emerge --info =net-print/brdcp7065dnlpr-2.1.0',
 * the complete build log and the output of 'emerge -pqv =net-print/brdcp7065dnlpr-2.1.0'.
 * This ebuild is from an overlay named 'local_overlay': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/environment'.
 * S: '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work/brdcp7065dnlpr-2.1.0'


Here are the outputs recommended by the error message above in case it helps:

Code: Select all
zenboy distfiles # emerge --info =net-print/brdcp7065dnlpr-2.1.0
Portage 2.2.0_alpha84 (default/linux/amd64/10.0/desktop, gcc-4.6.2, glibc-2.13-r4, 3.2.0-sabayon x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.0-sabayon-x86_64-AMD_Turion-tm-_64_Mobile_Technology_MK-36-with-gentoo-2.0.3
Timestamp of tree: Tue, 14 Feb 2012 03:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2.2
dev-util/cmake:           2.8.7-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3-r1::sabayon
sys-apps/openrc:          0.9.8.1::sabayon-distro
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.2, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1::sabayon-distro, 4.6.2::sabayon-distro
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39
sys-libs/glibc:           2.13-r4::sabayon-distro
Repositories: gentoo sabayon sabayon-distro local_overlay
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/entropy /etc/init.d /usr/share/config /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/grub.d /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=x86-64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.klid.dk/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh"
MAKEOPTS="-j16 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sabayon /var/lib/layman/sabayon-distro /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aiglx aim alsa amd64 artswrappersuid audiofile avahi bash-completion berkdb bidi bluetooth bzip2 cairo cdda cddb cdr cjk cli consolekit cpudetection cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread dvi emboss encode exif fam fame fat ffmpeg firefox flac foomatic-db fortran freetype gcj gdbm gdu gif gimpprint gmp gnutls gphoto2 gpm gsm gtk hfs iconv icq ieee1394 imap inotify ipod ipv6 irc irda jabber jack jfs joystick jpeg kdeenablefinal kdehiddenvisibility kerberos lame lcd lcms ldap libnotify live lm_sensors lzo mad mail matroska mjpeg mmx mng modules mozdevelop mp3 mp3rtp mp4 mpeg msn mudflap multilib musepack musicbrainz ncurses network nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pango pcmcia pcre pda pdf png policykit ppds pppd pulseaudio qt3support qt4 rar rdesktop readline reiserfs rss scanner sdl session slp speex spell sse sse2 ssl startup-notification stream svg sysfs tcpd theora tiff truetype udev unicode usb v4l v4l2
visualization vorbis wifi wmf x264 xcb xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon
braindump" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US af
ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh" LIRC_DEVICES="audio audio_alsa serial pctv" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeonhd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


and

Code: Select all
zenboy distfiles # emerge -pqv =net-print/brdcp7065dnlpr-2.1.0
[ebuild  N    ] net-print/brdcp7065dnlpr-2.1.0

zenboy distfiles # cd /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/
zenboy temp # ls
build.log  eclass-debug.log  environment  logging


Here is the build.log:

Code: Select all
 * Package:    net-print/brdcp7065dnlpr-2.1.0
 * Repository: local_overlay
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug
>>> Unpacking source...
>>> Unpacking brdcp7065dnlpr-2.1.0-1.i386.rpm to /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work
rpm2tar: warning: unable to locate cpio offset (broken/unknown compression?)
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: net-print/brdcp7065dnlpr-2.1.0 failed (unpack phase):
 *   failure unpacking /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/distdir/brdcp7065dnlpr-2.1.0-1.i386.rpm
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 2198:  Called rpm_unpack
 *   environment, line 2134:  Called die
 * The specific snippet of code:
 *           rpm2tar -O "${a}" | tar xf - || die "failure unpacking ${a}";
 *
 * If you need support, post the output of 'emerge --info =net-print/brdcp7065dnlpr-2.1.0',
 * the complete build log and the output of 'emerge -pqv =net-print/brdcp7065dnlpr-2.1.0'.
 * This ebuild is from an overlay named 'local_overlay': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/environment'.
 * S: '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work/brdcp7065dnlpr-2.1.0'


Unless I'm mistaken (which is always a possibility :) ), Fitzcarraldo, it seems like the ebuild wants to see a tar file instead of the text files that are in those directories, or is it something else? If that's it (or not...) how might I fix that?

BHReach, thanks very much for the suggestion and your example. I believe I understand some of what you have done for your Samsung, and I'll look at how that could perhaps translate to the Brother. Still trying to see this one through via portage. One possible problem I see is that although some Brother models do have ppd files, unfortunately my DCP-7065DN is not one of them. Also, I wonder if what you suggest might somehow get in the way of doing this emerge with portage, or vice versa?
SL Version: XI+, just rollin' along / Kernel 3.8.3 | KDE 4.10.1 | HP dv6000z | AMD Turion64 MK-36 | 2GB RAM | nVidia GeForce 6150
tonyawards
Growing Hen
 
Posts: 112
Joined: Sun Nov 23, 2008 4:21

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby Fitzcarraldo » Mon Feb 20, 2012 1:36

Have a look in /usr/portage/distfiles/ and delete any files containing "checksum_failure" as part of the file name.

Next make sure that the two RPM files you downloaded from the Brother site are in /usr/portage/distfiles/ and are of the correct size. The two files I have just downloaded from the Brother site are:

cupswrapperDCP7065DN-2.0.4-2.i386.rpm 14,697 bytes
dcp70657065dnlpr-2.1.0-1.i386.rpm 37,729 bytes

Next disconnect your machine from your network and then re-run the ebuild command using the --force switch:

Code: Select all
cd /usr/local/portage/net-print/cupswrapperDCP7065DN
ebuild --force cupswrapperDCP7065DN-2.0.4.ebuild manifest
cd /usr/local/portage/net-print/brdcp7065dnlpr
ebuild --force brdcp7065dnlpr-2.1.0.ebuild manifest

Next, while still leaving your machine disconnected from your network, re-run the emerge command (you can do this because the RPM packages are already in the /usr/portage/distfiles/ directory):

Code: Select all
FEATURES="-collision-detect -protect-owned" emerge -1v cupswrapperDCP7065DN brdcp7065dnlpr

(I have to disconnect from the network sometimes to stop ebuild and emerge commands from re-downloading packages even when the packages are already in the /usr/portage/distfiles/ directory. Normally this does not happen, but occasionally an ebuild command or an emerge command still wants to re-download the package unnecessarily for some reason.)

Give that a try and see what the output is.

Also, looking at the filename of the file that is downloaded from the Brother site, it does not have "br" in front (unlike the original ebuild did in the Gentoo Bugzilla ebuild for the MFC-7440N printer). So my next experiment would be to rename the ebuild to dcp7065dnlpr-2.1.0.ebuild and to change all occurrences of "brdcp7065dnlpr" to "dcp7065dnlpr" in it, and then regenerate the manifests and re-run the emerge command. Again, first make sure all the files with "checksum_failure" in their name are deleted from /usr/portage/distfiles/, make sure the two RPM files are present in /usr/portage/distfiles/ and of the correct size, and that you disconnect your machine from your network before you run the commands (again using the --force switch in the ebuild command).

In fact, I'm becoming more convinced that the "br" prefix is wrong in the case of your printer's files, even if it was presumably OK in the case of the MFC-7440N printer. So I'm even more convinced that the ebuild should be dcp7065dnlpr-2.1.0.ebuild and should contain:


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

EAPI=3

inherit rpm

DESCRIPTION="Brother DCP-7065DN LPR driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-7065DN"
SRC_URI="dcp7065dnlpr-2.1.0-1.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
RESTRICT="fetch strip"
DOWNLOAD_URL="http://www.brother.com/cgi-bin/agreement/agreement.cgi?dlfile=http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/dcp7065dnlpr-2.1.0-1.i386.rpm&lang=English_gpl"

DEPEND=""
RDEPEND="${DEPEND}"

pkg_nofetch() {
   einfo "Please download ${A} from ${DOWNLOAD_URL}."
   einfo "Select 'I Accept' and move the file to ${DISTDIR}."
}

src_unpack() {
   rpm_unpack || die "Error unpacking ${A}."
}

src_install() {
   cp -r $WORKDIR $D
   mv $D/work/* $D
   rm -r $D/work/
}
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby tonyawards » Mon Feb 20, 2012 6:47

Yes, there was one: cupswrapperDCP7065DN-2.0.4-2.i386.rpm._checksum_failure_.oufY6i. Good call! And the rpm cupswrapper size looked funny as well, though the dcp7065dnlpr-2.1.0-1.i386.rpm file size matched yours:

Code: Select all
-rw-rw-r-- 1 portage portage    1901 Feb 19 11:50 cupswrapperDCP7065DN-2.0.4-2.i386.rpm
-rw-rw-r-- 1 portage portage   14697 Feb 18 15:12 cupswrapperDCP7065DN-2.0.4-2.i386.rpm._checksum_failure_.oufY6i

-rw-r----- 1 root    root      37729 Feb 18 15:14 dcp7065dnlpr-2.1.0-1.i386.rpm


I deleted the two bad cupswrapper files and copied the spare I still had saved on my Desktop to /distfiles:

Code: Select all
zenboy distfiles # rm cupswrapperDCP7065DN-2.0.4-2.i386.rpm._checksum_failure_.oufY6i
zenboy distfiles # rm cupswrapperDCP7065DN-2.0.4-2.i386.rpm
zenboy distfiles # cp /home/spike/Desktop/cupswrapperDCP7065DN-2.0.4-2.i386.rpm .


now I have

Code: Select all
-rw-r----- 1 root    root      14697 Feb 19 18:02 cupswrapperDCP7065DN-2.0.4-2.i386.rpm


Next (while offline):

Code: Select all
zenboy ~ # cd /usr/local/portage/net-print/cupswrapperDCP7065DN
zenboy cupswrapperDCP7065DN # ebuild --force cupswrapperDCP7065DN-2.0.4.ebuild manifest
>>> Creating Manifest for /usr/local/portage/net-print/cupswrapperDCP7065DN
zenboy cupswrapperDCP7065DN # cd /usr/local/portage/net-print/brdcp7065dnlpr
zenboy brdcp7065dnlpr # ebuild --force brdcp7065dnlpr-2.1.0.ebuild manifest
>>> Creating Manifest for /usr/local/portage/net-print/brdcp7065dnlpr
zenboy brdcp7065dnlpr # FEATURES="-collision-detect -protect-owned" emerge -1v cupswrapperDCP7065DN brdcp7065dnlpr

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-print/brdcp7065dnlpr-2.1.0  0 kB [1]
[ebuild  N     ] app-text/wdiff-1.1.0  USE="-experimental -test" 0 kB [0]
[ebuild  N     ] app-text/a2ps-4.14-r2  USE="nls -emacs -latex -vanilla" LINGUAS="ja" 2,520 kB [0]
[ebuild  N     ] net-print/cupswrapperDCP7065DN-2.0.4  0 kB [1]

Total: 4 packages (4 new), Size of downloads: 2,520 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage


>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 4) net-print/brdcp7065dnlpr-2.1.0 from local_overlay
 * brdcp7065dnlpr-2.1.0-1.i386.rpm RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking brdcp7065dnlpr-2.1.0-1.i386.rpm to /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work
rpm2tar: warning: unable to locate cpio offset (broken/unknown compression?)
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: net-print/brdcp7065dnlpr-2.1.0 failed (unpack phase):
 *   failure unpacking /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/distdir/brdcp7065dnlpr-2.1.0-1.i386.rpm
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 2198:  Called rpm_unpack
 *   environment, line 2134:  Called die
 * The specific snippet of code:
 *           rpm2tar -O "${a}" | tar xf - || die "failure unpacking ${a}";
 *
 * If you need support, post the output of 'emerge --info =net-print/brdcp7065dnlpr-2.1.0',
 * the complete build log and the output of 'emerge -pqv =net-print/brdcp7065dnlpr-2.1.0'.
 * This ebuild is from an overlay named 'local_overlay': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/environment'.
 * S: '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work/brdcp7065dnlpr-2.1.0'

>>> Failed to emerge net-print/brdcp7065dnlpr-2.1.0, Log file:

>>>  '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/build.log'

 * Messages for package net-print/brdcp7065dnlpr-2.1.0:

 * ERROR: net-print/brdcp7065dnlpr-2.1.0 failed (unpack phase):
 *   failure unpacking /var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/distdir/brdcp7065dnlpr-2.1.0-1.i386.rpm
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 2198:  Called rpm_unpack
 *   environment, line 2134:  Called die
 * The specific snippet of code:
 *           rpm2tar -O "${a}" | tar xf - || die "failure unpacking ${a}";
 *
 * If you need support, post the output of 'emerge --info =net-print/brdcp7065dnlpr-2.1.0',
 * the complete build log and the output of 'emerge -pqv =net-print/brdcp7065dnlpr-2.1.0'.
 * This ebuild is from an overlay named 'local_overlay': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/temp/environment'.
 * S: '/var/tmp/portage/net-print/brdcp7065dnlpr-2.1.0/work/brdcp7065dnlpr-2.1.0'
zenboy brdcp7065dnlpr #


This output looks almost identical to the error message in my previous post, still complaining that it doesn't look like a tar file, etc. I rechecked in /distfiles for bad file/s (none, all still good). So on to the revised ebuild sequence.

I copied your new dcp7065dnlpr-2.1.0.ebuild, and also renamed the /usr/local/portage/net-print/ directory to dcp7065dnlpr for what I thought would be consistency. I kept the RESTRICT="strip" in the ebuild, however, as that seemed to be helping before.

Umm, I got some errors, so I renamed the directory and the file a few times, but still:

Code: Select all
zenboy dcp7065dnlpr # cp /home/spike/Desktop/dcp7065dnlpr-2.1.0.ebuild .
zenboy dcp7065dnlpr # ls
brdcp7065dnlpr-2.1.0.ebuild  dcp7065dnlpr-2.1.0.ebuild  Manifest
zenboy dcp7065dnlpr # ebuild --force dcp7065dnlpr-2.1.0.ebuild manifest
!!! Package name does not match directory name: 'net-print/brdcp7065dnlpr-2.1.0'

****************************EDIT

zenboy brdcp7065dnlpr # ebuild --force dcp7065dnlpr-2.1.0.ebuild manifest
!!! /usr/local/portage/net-print/brdcp7065dnlpr/dcp7065dnlpr-2.1.0.ebuild does not seem to have a valid PORTDIR structure.

****************************EDIT

zenboy dcp7065dnlpr-2.1.0-1 # ebuild --force dcp7065dnlpr-2.1.0-1.ebuild manifest
!!! net-print/dcp7065dnlpr-2.1.0-1 does not follow correct package syntax.


Should have left well eonugh alone, I suppose - below is the last one and where I'm still at with the renaming, and I'll leave it there until perhaps you can tell me where I went wrong. I had seen somewhere that the file name and package must be consistent, which is why I changed the directory name to begin with. Oops :oops: .

Code: Select all
zenboy dcp7065dnlpr-2.1.0-1 # ls
brdcp7065dnlpr-2.1.0.ebuild  dcp7065dnlpr-2.1.0-1.ebuild  Manifest
zenboy dcp7065dnlpr-2.1.0-1 # ebuild --force dcp7065dnlpr-2.1.0-1.ebuild manifest
!!! net-print/dcp7065dnlpr-2.1.0-1 does not follow correct package syntax.
zenboy dcp7065dnlpr-2.1.0-1 #


Sorry to have made things harder than they already are, Fitzcarraldo.
SL Version: XI+, just rollin' along / Kernel 3.8.3 | KDE 4.10.1 | HP dv6000z | AMD Turion64 MK-36 | 2GB RAM | nVidia GeForce 6150
tonyawards
Growing Hen
 
Posts: 112
Joined: Sun Nov 23, 2008 4:21

Re: Can I install .rpm or .deb drivers on Sabayon?

Postby Fitzcarraldo » Mon Feb 20, 2012 9:50

No time to read your post at the moment, but did you revert the edit to cupswrapperDCP7065DN-2.0.4.ebuild and change:

Code: Select all
DEPEND="
   app-text/a2ps
   net-print/brdcp7065dnlpr
"

back to:

Code: Select all
DEPEND="
   app-text/a2ps
   net-print/dcp7065dnlpr
"

?
If you renamed brdcp7065dnlpr-2.1.0.ebuild to dcp7065dnlpr-2.1.0.ebuild then the dependency in cupswrapperDCP7065DN-2.0.4.ebuild has to reflect that too.

Also, you need to delete the file brdcp7065dnlpr-2.1.0.ebuild in the directory /usr/local/portage/net-print/dcp7065dnlpr/, as the first part of all ebuilds in that directory must have the same name as the directory, viz. "dcp7065dnlpr".
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

PreviousNext

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest

cron