Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HPIJS and HPLIB split?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rabello
n00b
n00b


Joined: 25 Jan 2005
Posts: 1

PostPosted: Tue Jan 25, 2005 8:22 pm    Post subject: HPIJS and HPLIB split? Reply with quote

Hi, I was wondering if there are plans to integrate support for HPLIP in Gentoo. A few HP printers are only supported from the later, like the All-in-one ones, which no longer have support maintained in HPIJS. This is at least the impression I got by looking at http://hpinkjet.sf.net recently.
Back to top
View user's profile Send private message
snakeroot
n00b
n00b


Joined: 20 Nov 2004
Posts: 34

PostPosted: Wed Jan 26, 2005 12:52 am    Post subject: Reply with quote

Yes.

See this bug report and this forum thread at the HP inkjet sourceforge project
Back to top
View user's profile Send private message
zoid
n00b
n00b


Joined: 29 Dec 2003
Posts: 18

PostPosted: Mon Mar 14, 2005 10:50 pm    Post subject: Reply with quote

Does anyone have an info on the progress of the hplip ebuild? Or can anyone give me any pointers on how I can install it without an ebuild? I've tried following the instructions at http://hpinkjet.sf.net/ but get errors about sane not being found when I run make install. Do I have to install sane even though I don't have a scanner?
Back to top
View user's profile Send private message
TheEggman
n00b
n00b


Joined: 13 Mar 2005
Posts: 2

PostPosted: Tue Mar 15, 2005 12:48 am    Post subject: Reply with quote

I have created an ebuild that works for me. I just installed hplip using this ebuild and had no troubles. I had to patch the hplip Makefile.in so that it didn't try to do funny things outside of the portage sandbox. The hplip.rc file is an initscript that seems to work okay for me. It starts everything up without any troubles and I can print just fine. It seems that it has some problems shutting hpssd.py down sometimes, though. But I didn't take the time to figure out what I did wrong, I just hacked it up well enough that it run the daemons and allow me to print. Who cares if the service doesn't shut down properly at reboot? (Unless you are dropping to single-user. 8) )

Here is the ebuild:

Code:

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

inherit eutils

DESCRIPTION="HP Linux Imaging and Printing system.  Provides CUPS drivers and connectivity to HP printers and multi-function devices."
HOMEPAGE="http://hpinkjet.sourceforge.net/"
SRC_URI="mirror://sourceforge/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE="usb scanner X cups foomaticdb"

DEPEND="scanner? (>=media-gfx/sane-backends-1.0.9)
scanner? (|| (X? >=media-gfx/xsane-0.89 )>=media-gfx/sane-frontends-1.0.9 )
net-analyzer/net-snmp
cups? ( net-print/cups )
usb? ( dev-libs/libusb sys-apps/hotplug )
dev-python/PyQt
dev-python/sip
net-print/foomatic-filters
foomaticdb? ( net-print/foomatic-db-engine )"

src_unpack() {
   unpack ${A}
   cd ${S}
   epatch ${FILESDIR}/hplip-make.patch
}

src_compile() {
   ./configure \
      --host=${CHOST} \
      --prefix=/usr \
      --infodir=/usr/share/info \
      --mandir=/usr/share/man || die "configure failed"

   emake || die "emake failed"
}

src_install() {
   # create these directories since the Makefile doesn't do it itself
   dodir /etc/sane.d
   dodir /etc/init.d
   dodir /usr/lib/sane
   
   make DESTDIR=${D} install || die

   exeinto /etc/init.d
   doexe ${FILESDIR}/hplip.rc hplip
}

pkg_postinst() {
   einfo "To use the hpijs driver with CUPS you may need to run"
   einfo "/usr/share/hplip/probe to detect your hardware.  Then restart hplip"
   einfo "and cups, in that order."
}


You will need to files: hplip-make.patch and hplip.rc in the files directory of the ebuild. Here they are:

First, hplip-make.patch:
Code:

--- Makefile.in   2005-03-13 14:21:23.000000000 -0500
+++ Makefile.in.new   2005-03-13 14:41:00.000000000 -0500
@@ -1675,12 +1675,15 @@
 #
 #       Do full install if not rpm_install.
    if [ "$(rpm_install)" = "no" ]; then \
-      ln -sf $(libdir)/$(SOLONG) $(sanedir)/$(SONOVER); \
-      ln -sf $(libdir)/$(SOLONG) $(sanedir)/$(SOSHORT); \
-      ln -sf $(libdir)/$(SOLONG) $(sanedir)/$(SOLONG); \
+      ln -sf $(DESTDIR)$(libdir)/$(SOLONG) $(DESTDIR)$(sanedir)/$(SONOVER); \
+      ln -sf $(DESTDIR)$(libdir)/$(SOLONG) $(DESTDIR)$(sanedir)/$(SOSHORT); \
+      ln -sf $(DESTDIR)$(libdir)/$(SOLONG) $(DESTDIR)$(sanedir)/$(SOLONG); \
       if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
          echo "Adding hpaio entry to /etc/sane.d/dll.conf." ; \
-         echo hpaio >>/etc/sane.d/dll.conf ; \
+         if [ $(DESTDIR) != "" ] ; then \
+            cp /etc/sane.d/dll.conf $(DESTDIR)/etc/sane.d/dll.conf; \
+         fi; \
+         echo hpaio >>$(DESTDIR)/etc/sane.d/dll.conf ; \
       fi \
    fi
 
@@ -1712,7 +1715,8 @@
 #       Do full install if not rpm_install.
    if [ "$(rpm_install)" = "no" ]; then \
       if [ -d $(ICON_PATH) ]; then \
-         ln -sf $(DESTDIR)$(icondir)/$(ICON_FILE) $(ICON_PATH)/$(ICON_FILE); \
+         test -d $(DESTDIR)$(ICON_PATH) || $(mkdir_p) $(DESTDIR)$(ICON_PATH); \
+         ln -sf $(DESTDIR)$(icondir)/$(ICON_FILE) $(DESTDIR)$(ICON_PATH)/$(ICON_FILE); \
       fi \
    fi
 #


And finally, hplip.rc:
Code:

#!/sbin/runscript
#
# Startup/shutdown script for HPLIP
#
# Note, this script file must start before cupsd.

depend() {
    before cupsd
    after hotplug
}

start() {
        ebegin "Starting hpiod"
        start-stop-daemon --start --quiet --exec /usr/sbin/hpiod
   eend $?
        ebegin "Starting hpssd"
        start-stop-daemon --start --quiet --exec /usr/share/hplip/hpssd.py -- >/dev/null 2>&1
   eend $?
}

stop() {
        ebegin "Stopping hpiod"
        start-stop-daemon --stop --quiet --exec /usr/sbin/hpiod
   eend $?
        ebegin "Stopping hpssd"
        start-stop-daemon --stop --pidfile /var/run/hpssd.pid
        for pidfile in /var/run/*; do
      case "$( basename $pidfile )" in
             hpguid-*.pid)
                   read pid < $pidfile
                   kill $pid
                   rm $pidfile
      esac
        done
   eend $RETVAL
}


I setup the PORTDIR_OVERLAY variable in /etc/make.confn to be "/usr/local/portage" and then I did a "mkdir -p /usr/local/portage/net-print/hplip/files" to mae the directory structure. Put the ebuild in the /usr/local/portage/net-print/hplip directory and the .patch and .rc file in the /usr/local/portage/net-print/hplip/files directory.

I'm not sure how the source fetch process will work since I manually downloaded the hplip-0.8.8.tar.gz off of the hpinkjet.sf.net site and put it in my /usr/portage/distfiles dir. If you get a fetch error, just download it manually.

Hope this helps you out.
Back to top
View user's profile Send private message
zoid
n00b
n00b


Joined: 29 Dec 2003
Posts: 18

PostPosted: Tue Mar 15, 2005 10:40 pm    Post subject: Reply with quote

I tried this out but got the following error when running emerge hplip:

Code:
Calculating dependencies   visible(): invalid cat/pkg-v: net-print/hplip

!!! All ebuilds that could satisfy "hplip" have been masked.
!!! One of the following masked packages is required to complete your request:


!!! Problem in net-print/hplip dependencies.
!!! invalid CPV: net-print/hplip exceptions


This is the 1st time I've tried to build an unofficial ebuild so I may well be missing something. I did try adding
Code:
net-print/hplip ~x86
to my package.keywords file. Any suggestions?
Back to top
View user's profile Send private message
cglackin
n00b
n00b


Joined: 16 Mar 2005
Posts: 10

PostPosted: Wed Mar 16, 2005 3:00 am    Post subject: Reply with quote

zoid wrote:
I tried this out but got the following error when running emerge hplip:

Code:
Calculating dependencies   visible(): invalid cat/pkg-v: net-print/hplip

!!! All ebuilds that could satisfy "hplip" have been masked.
!!! One of the following masked packages is required to complete your request:
!!! Problem in net-print/hplip dependencies.
!!! invalid CPV: net-print/hplip exceptions


Use the following to temporarily accept a masked ebuild:

Code:
ACCEPT_KEYWORDS="~x86" emerge hplip


I haven't tried this ebuild yet. Please let us know how it went.
Back to top
View user's profile Send private message
zoid
n00b
n00b


Joined: 29 Dec 2003
Posts: 18

PostPosted: Wed Mar 16, 2005 9:08 am    Post subject: Reply with quote

cglackin wrote:

Use the following to temporarily accept a masked ebuild:

Code:
ACCEPT_KEYWORDS="~x86" emerge hplip

Doesn't this have the same effect as adding the package to package.keywords?

Anyway, I tried it with the same results.
Back to top
View user's profile Send private message
cglackin
n00b
n00b


Joined: 16 Mar 2005
Posts: 10

PostPosted: Wed Mar 16, 2005 9:42 am    Post subject: Reply with quote

Either way should have worked really.

Run the following command:
Code:
equery which hplip

It should return:
Code:
/usr/local/portage/net-print/hplip/hplip-0.8.8.ebuild

I just got this ebuild to install without error with a PSC 1210 All-In-One.

So far, printing with CUPS seems fine. I'm going to work on scanning now
with SANE and Kooka.
Back to top
View user's profile Send private message
cglackin
n00b
n00b


Joined: 16 Mar 2005
Posts: 10

PostPosted: Wed Mar 16, 2005 10:57 am    Post subject: Reply with quote

Just wanted to say Thank You, Eggman.

That ebuild and init script worked great for my PSC 1210 All-In-One.

Printing works fine in KDE with CUPS.
Scanning works great in KDE with Kooka.

I didn't have any shutdown problems with the init script either.

The HP Device Manager started up without hesitation, and showed
the ink levels properly.

I'm running the gentoo-dev-sources 2.6.10-r6 kernel with UDEV.
KDE 3.3.2
CUPS 1.1.23-r1
Kooka 0.44

As of this morning, with an emerge sync, 'emerge -pv world' is only
showing about 5 packages to upgrade.

sys-apps/texinfo-4.8 [4.7-r1]
sys-devel/gettext-0.14.1 [0.12.1-r2]
sys-devel/gnuconfig-20050223 [20040214]
sys-apps/net-tools-1.60-r11 [1.60-r9]
dev-lang/perl-5.8.5-r5 [5.8.5-r4]
Back to top
View user's profile Send private message
zoid
n00b
n00b


Joined: 29 Dec 2003
Posts: 18

PostPosted: Thu Mar 17, 2005 9:31 pm    Post subject: Reply with quote

Ok, I'm getting further with this. I'd named my file "hplip.ebuild" instead of "hplip-0.8.8.ebuild"

Using this I managed to emerge all the required dependencies, but then got an error about the package manifest not found when it started on hplip itself. I fixed this with:

Code:
ebuild /usr/local/portage/net-print/hplip/hplip-0.8.8.ebuild digest


However, now I get the following error:
Code:

 * Applying hplip-make.patch ...

 * Failed Patch: hplip-make.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/hplip-0.8.8/temp/hplip-make.patch-28229.out


!!! ERROR: net-print/hplip-0.8.8 failed.
!!! Function epatch, Line 397, Exitcode 0
!!! Failed Patch: hplip-make.patch!
!!! If you need support, post the topmost build error, NOT this status message.


/var/tmp/portage/hplip-0.8.8/temp/hplip-make.patch-28229.out is as follows:

Code:
***** hplip-make.patch *****

============================

PATCH COMMAND:  patch -p0 -g0 < /usr/local/portage/net-print/hplip/files/hplip-make.patch

============================
patching file Makefile.in
Hunk #1 FAILED at 1675.
Hunk #2 FAILED at 1715.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.in.rej
============================

PATCH COMMAND:  patch -p1 -g0 < /usr/local/portage/net-print/hplip/files/hplip-make.patch

============================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.in   2005-03-13 14:21:23.000000000 -0500
|+++ Makefile.in.new   2005-03-13 14:41:00.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
============================

PATCH COMMAND:  patch -p2 -g0 < /usr/local/portage/net-print/hplip/files/hplip-make.patch

============================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.in   2005-03-13 14:21:23.000000000 -0500
|+++ Makefile.in.new   2005-03-13 14:41:00.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
============================

PATCH COMMAND:  patch -p3 -g0 < /usr/local/portage/net-print/hplip/files/hplip-make.patch

============================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.in   2005-03-13 14:21:23.000000000 -0500
|+++ Makefile.in.new   2005-03-13 14:41:00.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
============================

PATCH COMMAND:  patch -p4 -g0 < /usr/local/portage/net-print/hplip/files/hplip-make.patch

============================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.in   2005-03-13 14:21:23.000000000 -0500
|+++ Makefile.in.new   2005-03-13 14:41:00.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored


Any ideas what to try next?
Back to top
View user's profile Send private message
cglackin
n00b
n00b


Joined: 16 Mar 2005
Posts: 10

PostPosted: Fri Mar 18, 2005 2:31 am    Post subject: Reply with quote

Most likely the patchfile formatting is a little 'off' after
cutting and pasting the text in EggMan's post.

Probably spaces at the end of lines instead of newlines.

Open up the patchfile using 'nano -w' and clean it up by pressing
enter at the end of each line in your patchfile. Then hit the
delete key to bring the next line up. You will probably see an
extra space at the beginning of the line. Delete that space.

I did not cut and paste the text, only because I wanted to
see what else was in the Makefile.in. I changed the Makefile.in
from the source manually, saved it under Makefile.in.new, and
generated a new 'diff'.

In the end, my new 'diff' looked exactly like EggMan's anyway, so the
patch he posted does work.
Back to top
View user's profile Send private message
zoid
n00b
n00b


Joined: 29 Dec 2003
Posts: 18

PostPosted: Fri Mar 18, 2005 11:07 pm    Post subject: Reply with quote

cglackin wrote:
Most likely the patchfile formatting is a little 'off' after
cutting and pasting the text in EggMan's post.

Probably spaces at the end of lines instead of newlines.

Open up the patchfile using 'nano -w' and clean it up by pressing
enter at the end of each line in your patchfile. Then hit the
delete key to bring the next line up. You will probably see an
extra space at the beginning of the line. Delete that space.

I tried this with no luck I'm afraid. The formatting was ok when I checked it. Cglackin, you say your patch was exactly the same as EggMans? How would I go about trying to create one myself? What does the patch do anyway and could I get away with not using it?
Back to top
View user's profile Send private message
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Wed Mar 30, 2005 12:37 pm    Post subject: Reply with quote

I submitted a new ebuild for hplip 0.9: https://bugs.gentoo.org/show_bug.cgi?id=73709#c20
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Thu Mar 31, 2005 10:53 pm    Post subject: Access violation while using your new ebuild Reply with quote

Hi,

I've downloaded announced ebuild and put it into my /usr/portage/net-print. After issuing:
Code:
ACCEPT_KEYWORDS="~x86" emerge hplip

whole package builds properly, but at the and (in the install stage) it fails with access violation:

Code:
make[3]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
test -z "/usr/lib/cups/backend" || mkdir -p -- "/usr/lib/cups/backend"
  /bin/sh ./libtool --mode=install /bin/install -c 'hp' '/usr/lib/cups/backend/hp'
/bin/install -c hp /usr/lib/cups/backend/hp
ACCESS DENIED  open_wr:   /usr/lib/cups/backend/hp
/bin/install: cannot create regular file `/usr/lib/cups/backend/hp': Permission denied
make[2]: *** [install-cupsPROGRAMS] Error 1
make[2]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
make: *** [install-recursive] Error 1


I haven't enough knowledge/skills/time to fix it. Can you tell me what I'm doing wrong (maybe problem with the ebuild itself?)

Thanks in advance
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Fri Apr 01, 2005 8:07 am    Post subject: Re: Access violation while using your new ebuild Reply with quote

smerf wrote:
Hi,

I've downloaded announced ebuild and put it into my /usr/portage/net-print. After issuing:
Code:
ACCEPT_KEYWORDS="~x86" emerge hplip

whole package builds properly, but at the and (in the install stage) it fails with access violation:

Code:
make[3]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
test -z "/usr/lib/cups/backend" || mkdir -p -- "/usr/lib/cups/backend"
  /bin/sh ./libtool --mode=install /bin/install -c 'hp' '/usr/lib/cups/backend/hp'
/bin/install -c hp /usr/lib/cups/backend/hp
ACCESS DENIED  open_wr:   /usr/lib/cups/backend/hp
/bin/install: cannot create regular file `/usr/lib/cups/backend/hp': Permission denied
make[2]: *** [install-cupsPROGRAMS] Error 1
make[2]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
make: *** [install-recursive] Error 1


I haven't enough knowledge/skills/time to fix it. Can you tell me what I'm doing wrong (maybe problem with the ebuild itself?)

Thanks in advance


First don't put the downloaded ebuild into /usr/portage/net-print! They'll be deleted during your next emerge sync.... Put the ebuild in your local portage, ie /usr/local/portage/net-print...

Second don't install any ebuild with ACCEPT_KEYWORDS="~x86". Put something like
Code:
net-print/hplip ~x86
into /etc/portage/package.keywords

Now, cups is installed? If not try adding the flag "cups" into your /etc/make.conf
If cups is already installed try to check if you have write permissions into /usr/lib/cups/backend/...


Last edited by neoch on Fri Apr 01, 2005 3:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
zoid
n00b
n00b


Joined: 29 Dec 2003
Posts: 18

PostPosted: Fri Apr 01, 2005 2:24 pm    Post subject: Reply with quote

Neoch, your ebuild works perfectly for me. One thing though, when I run the toolbox as root I can access all the info about my printer, but not when I run it as a normal user. The printer shows up with a cross next to it. Do you know how I can open the toolkit properly as a normal user?

Last edited by zoid on Sun Apr 03, 2005 8:00 am; edited 1 time in total
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Apr 01, 2005 4:17 pm    Post subject: Re: Access violation while using your new ebuild Reply with quote

neoch wrote:

First don't put the downloaded ebuild into /usr/portage/net-print! They'll be deleted during your next emerge sync.... Put the ebuild in your local portage, ie /usr/local/portage/net-print...

Second don't install any ebuild with ACCEPT_KEYWORDS="~x86". Put something like
Code:
net-print/hplip
into /etc/portage/package.keywords

Now, cups is installed? If not try adding the flag "cups" into your /etc/make.conf
If cups is already installed try to check if you have write permissions into /usr/lib/cups/backend/...


Well, first two hints were useful, thanks. Yes, I have cups installed and configured with another printer (and I have 'cups' in my USE), and it's not a problem with permissions (checked before posting first message). I'll keep trying to get this work :)
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
sliwowitz
Apprentice
Apprentice


Joined: 21 Jan 2005
Posts: 221
Location: Europe/Prague

PostPosted: Fri Apr 01, 2005 7:51 pm    Post subject: hplip-0.9 won't install Reply with quote

I have the same problem as smerf mentioned.

Code:
make[3]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
test -z "/usr/lib/cups/backend" || mkdir -p -- "/usr/lib/cups/backend"
  /bin/sh ./libtool --mode=install /bin/install -c 'hp' '/usr/lib/cups/backend/hp'
/bin/install -c hp /usr/lib/cups/backend/hp
ACCESS DENIED  open_wr:   /usr/lib/cups/backend/hp
/bin/install: cannot create regular file `/usr/lib/cups/backend/hp': Permission denied
make[2]: *** [install-cupsPROGRAMS] Error 1
make[2]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
make: *** [install-recursive] Error 1

!!! ERROR: net-print/hplip-0.9 failed.
!!! Function einstall, Line 524, Exitcode 2
!!! einstall failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-net-print_-_hplip-0.9-24859.log"

open_wr:   /usr/lib/cups/backend/hp


Anyone knows how to fix that one?
Back to top
View user's profile Send private message
vess
n00b
n00b


Joined: 17 Jul 2003
Posts: 3

PostPosted: Sat Apr 02, 2005 8:36 pm    Post subject: Access Violation with the 0.9 ebuild Reply with quote

Same problem. Access Violaion on /usr/lib/backend/hp. I have access to it. I've tried chmod 777, but I keep geting the error.
Back to top
View user's profile Send private message
dvdv
n00b
n00b


Joined: 26 Aug 2003
Posts: 2
Location: Europe

PostPosted: Sun Apr 03, 2005 1:57 pm    Post subject: hplip build fails Reply with quote

Same problem here:
Code:

...
>>> Install hplip-0.9 into /var/tmp/portage/hplip-0.9/image/ category net-print
Making install in prnt/hpijs
...
make  install-exec-hook
make[3]: Entering directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
if [ "yes" = "no" ]; then \
   ln -sf /var/tmp/portage/hplip-0.9/image//usr/lib/libsane-hpaio.so.1.0.0 /var/tmp/portage/hplip-0.9/image//usr/lib/sane/libsane-hpaio.so; \
   ln -sf /var/tmp/portage/hplip-0.9/image//usr/lib/libsane-hpaio.so.1.0.0 /var/tmp/portage/hplip-0.9/image//usr/lib/sane/libsane-hpaio.so.1; \
   ln -sf /var/tmp/portage/hplip-0.9/image//usr/lib/libsane-hpaio.so.1.0.0 /var/tmp/portage/hplip-0.9/image//usr/lib/sane/libsane-hpaio.so.1.0.0; \
   if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
      echo "Adding hpaio entry to /etc/sane.d/dll.conf." ; \
      echo hpaio >>/etc/sane.d/dll.conf ; \
   fi \
fi
make[3]: Leaving directory `/var/tmp/portage/hplip-0.9/work/hplip-0.9'
test -z "/usr/lib/cups/backend" || mkdir -p -- "/usr/lib/cups/backend"
  /bin/sh ./libtool --mode=install /bin/install -c 'hp' '/usr/lib/cups/backend/hp'
/bin/install -c hp /usr/lib/cups/backend/hp
ACCESS DENIED open_wr:   /usr/lib/cups/backend/hp
/bin/install: cannot create regular file `/usr/lib/cups/backend/hp': Permission denied
make[2]: *** [install-cupsPROGRAMS] Error 1
Back to top
View user's profile Send private message
nullTrace
n00b
n00b


Joined: 19 Feb 2005
Posts: 8

PostPosted: Wed Apr 06, 2005 7:21 pm    Post subject: new patch for hplip-0.8.8 Makefile.in Reply with quote

zoid,
I don't know if you have gotten that patch to work or not but I found that the patch posted previously has the right fixes in it but the lines
at which it fixes are not the same in the hplip package file that I have so I created a new patch with the correct lines. Maybe we got a different source package that has a slightly different Makefile (extra comments maybe?) Anyways heres the new patch:

Code:

*** Makefile.in   Wed Apr  6 14:40:33 2005
--- /root/Makefile.in.orig   Wed Apr  6 14:49:24 2005
***************
*** 1674,1687 ****
  install-exec-hook:
  #
  #       Do full install if not rpm_install.
     if [ "$(rpm_install)" = "no" ]; then \
!       ln -sf $(libdir)/$(SOLONG) $(sanedir)/$(SONOVER); \
!       ln -sf $(libdir)/$(SOLONG) $(sanedir)/$(SOSHORT); \
!       ln -sf $(libdir)/$(SOLONG) $(sanedir)/$(SOLONG); \
        if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
           echo "Adding hpaio entry to /etc/sane.d/dll.conf." ; \
!          echo hpaio >>/etc/sane.d/dll.conf ; \
        fi \
     fi
 
  install-data-hook:
--- 1674,1690 ----
  install-exec-hook:
  #
  #       Do full install if not rpm_install.
     if [ "$(rpm_install)" = "no" ]; then \
!       ln -sf $(DESTDIR)$(libdir)/$(SOLONG) $(DESTDIR)$(sanedir)/$(SONOVER); \
!       ln -sf $(DESTDIR)$(libdir)/$(SOLONG) $(DESTDIR)$(sanedir)/$(SOSHORT); \
!       ln -sf $(DESTDIR)$(libdir)/$(SOLONG) $(DESTDIR)$(sanedir)/$(SOLONG); \
        if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
           echo "Adding hpaio entry to /etc/sane.d/dll.conf." ; \
!          if [ $(DESTDIR) != "" ] ; then \
!             cp /etc/sane.d/dll.conf $(DESTDIR)/etc/sane.d/dll.conf; \
!          fi; \
!          echo hpaio >>$(DESTDIR)/etc/sane.d/dll.conf ; \
        fi \
     fi
 
  install-data-hook:
***************
*** 1711,1719 ****
  #
  #       Do full install if not rpm_install.
     if [ "$(rpm_install)" = "no" ]; then \
        if [ -d $(ICON_PATH) ]; then \
!          ln -sf $(DESTDIR)$(icondir)/$(ICON_FILE) $(ICON_PATH)/$(ICON_FILE); \
        fi \
     fi
  #
  #       Install pcard extension.
--- 1714,1723 ----
  #
  #       Do full install if not rpm_install.
     if [ "$(rpm_install)" = "no" ]; then \
        if [ -d $(ICON_PATH) ]; then \
!          test -d $(DESTDIR)$(ICON_PATH) || $(mkdir_p) $(DESTDIR)$(ICON_PATH); \
!          ln -sf $(DESTDIR)$(icondir)/$(ICON_FILE) $(DESTDIR)$(ICON_PATH)/$(ICON_FILE); \
        fi \
     fi
  #
  #       Install pcard extension.



If for some reason you get /bin/sh errors complaining about end of file stuff just go through the patch and make sure there is no extra lines
between the commands. Let me know if you have an problems with this.
Back to top
View user's profile Send private message
nullTrace
n00b
n00b


Joined: 19 Feb 2005
Posts: 8

PostPosted: Wed Apr 06, 2005 7:25 pm    Post subject: oops didn't read the rest of the posts closely enough Reply with quote

So if I was a little more careful about reading the posts I would have seen that zoid got hplip to work using another ebuild. Sorry for not seeing that. The patch still works if anyone else is interested.
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Wed Apr 06, 2005 9:26 pm    Post subject: Reply with quote

nullTrace,
Your patch is for hplip-0.8.8 and I have problem with version 0.9 (ebuild provided by neoch - https://bugs.gentoo.org/show_bug.cgi?id=73709#c20). What about version 0.9? Anyone knows how to make this work?
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Wed Apr 06, 2005 9:45 pm    Post subject: Re: hplip-0.9 won't install Reply with quote

I tried several times to compile my ebuild on several computers, but I'm unable to recreate the bug....

slivovice wrote:
Code:

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-net-print_-_hplip-0.9-24859.log"

open_wr:   /usr/lib/cups/backend/hp

In your /etc/make.conf you added "sandbox" to FEATURES?
If so try to remove it: FEATURES=" -sandbox"
And try again....

Good luck ;)
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Wed Apr 06, 2005 10:27 pm    Post subject: Reply with quote

neoch wrote:
I tried several times to compile my ebuild on several computers, but I'm unable to recreate the bug....

In your /etc/make.conf you added "sandbox" to FEATURES?
If so try to remove it: FEATURES=" -sandbox"
And try again....

Good luck ;)


Disabling sandbox allowed me to avoid the problem.
Thanks neoch!!!
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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