<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>150801</bug_id>
          
          <creation_ts>2006-10-10 12:31 0000</creation_ts>
          <short_desc>hplip 1.6.9 wants to wipe /etc/sane.d/dll.conf</short_desc>
          <delta_ts>2006-11-30 08:24:04 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Printing</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rob@janerob.com</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          <cc>fcolloret@terra.es</cc>
    
    <cc>jakub@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rob@janerob.com</who>
            <bug_when>2006-10-10 12:31:43 0000</bug_when>
            <thetext>under control of dispatch-conf / etc-update naturally, but it seems that hplip changes /etc/sane.d/dll.conf to contain only &apos;hpaio&apos;.  I think it should probably add hpaio to the list of drivers in this file instead of replacing it completely.  my fault of course for having dispatch-conf set to auto-update config files I&apos;ve not touched in the past, and/or blindly accepting changes to dll.conf with etc-update thinking that &apos;it must be ok&apos;.

rob.


alpha ~ # emerge --info
Portage 2.1.2_pre2-r4 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17.6alpha-rtm i686)
=================================================================
System uname: 2.6.17.6alpha-rtm i686 AMD Athlon(tm)
Gentoo Base System version 1.12.5
Last Sync: Fri, 06 Oct 2006 10:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -pipe -march=athlon&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -pipe -march=athlon&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://adelie.polymtl.ca/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://ftp.ntua.gr/pub/linux/gentoo/&quot;
LANG=&quot;en_GB&quot;
LC_ALL=&quot;en_GB&quot;
LINGUAS=&quot;en_GB&quot;
MAKEOPTS=&quot;-j1&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 3dnow 3dnowext X Xaw3d acpi alsa apache2 apm arts audiofile bash-completion berkdb bitmap-fonts bonobo bzip2 cdparanoia cdr cli crypt css cups dlloader doc dvd dvdr eds elibc_glibc emacs emboss encode esd exif f77 fbcon fbdev foomaticdb fortran gdbm gif gimp gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg kde kerberos kernel_linux lcms libg++ libwww linguas_en_GB lzw-tiff mad mbox mikmod mmx mmx2 mmxext motif mozilla mp3 mpeg mssql ncurses nls nptl nptlonly odbc offensive ogg opengl oss pam pcre pda pdf perl perlsuid plotutils png postgres ppds pppd python qt3 qt4 quicktime readline real reflection samba scanner sdl session slang sndfile snmp softmmu spell spl sqlite sse sse-filters ssl svg svga tcpd tiff truetype truetype-fonts trusted type1-fonts udev usb userland_GNU vcd video_cards_fbdev video_cards_nv video_cards_vesa vorbis win32codecs wmf xinerama xml xmms xorg xscreensaver xv zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-10-20 11:37:37 0000</bug_when>
            <thetext>thanks fixed in 1.6.10</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-26 11:39:24 0000</bug_when>
            <thetext>*** Bug 156327 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-26 11:41:24 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; thanks fixed in 1.6.10

Apparently not... 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-26 11:41:40 0000</bug_when>
            <thetext>Reopen.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-26 11:44:32 0000</bug_when>
            <thetext>&lt;snip&gt;
[ -e /etc/sane.d/dll.conf ] &amp;&amp; cp /etc/sane.d/dll.conf .
[ -e ${ROOT}/etc/sane.d/dll.conf ] &amp;&amp; ${ROOT}/etc/sane.d/dll.conf .
&lt;/snip&gt;

The purpose of the first line is unknown to me, the second line should do something like

[ -e ${ROOT}/etc/sane.d/dll.conf ] &amp;&amp; cp ${ROOT}/etc/sane.d/dll.conf .

I guess?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-11-26 12:12:25 0000</bug_when>
            <thetext>well, I have added the missing cp thanks :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fcolloret@terra.es</who>
            <bug_when>2006-11-28 11:04:23 0000</bug_when>
            <thetext>After hplip installation, the new /etc/sane.d/dll.conf file generated contents is the same in the old /etc/sane.d/dll.conf file plus one line at the end with an &quot;hpaio&quot; word in it.

Yes. this is correct... but only it happens compiling hplip with the USE scanner

If you compile hplip with the -scanner use, the installation process installs a new /etc/init.d/dll.conf that only contains the hpaio line.

Please reopen bug and fix it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fcolloret@terra.es</who>
            <bug_when>2006-11-28 11:30:55 0000</bug_when>
            <thetext>A workaround that works for me:

In hplip-1.6.10 ebuild, in src_install() section, i changed this code:

if use scanner; then
		......
	else
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.la
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.so
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.so.1
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.so.1.0.0
	fi

adding a line after the last rm

if use scanner; then
		......
	else
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.la
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.so
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.so.1
		rm -f &quot;${D}&quot;/usr/$(get_libdir)/libsane-hpaio.so.1.0.0
		rm -f &quot;${D}&quot;/etc/sane.d/dll.conf
	fi</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-11-30 08:24:04 0000</bug_when>
            <thetext>thanks, I added your fix, too</thetext>
          </long_desc>
      
    </bug>

</bugzilla>