Bug 130645 - net-print/cnijfilter-2.60 - Canon pixma/pixus drivers (new ebuild)
|
Bug#:
130645
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: NEW
|
Severity: enhancement
|
Priority: P2
|
|
Resolution:
|
Assigned To: maintainer-wanted@gentoo.org
|
Reported By: kiegel@gmx.de
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: net-print/cnijfilter-2.60 - Canon pixma/pixus drivers (new ebuild)
|
|
Keywords: EBUILD
|
|
Status Whiteboard:
|
|
Opened: 2006-04-20 12:44 0000
|
These drivers are designed for Canon ip2200, ip4200, ip6600d, ip7500 and mp500.
But they might also work with ip1600, mp150, mp170, mp450 and ip6600pd.
You can choose which driver to install by useflag. Also you can choose whether
to compile some simple GTK+-1.2 based Maintenance Tools for cleaning nozzles,
aligning the printhead, and other things.
It's almost completely compiled from GPL2-source except for some proprietary
binary libraries.
cnijtools are currently available only on ~x86, but the basic drivers without
these maintenance tools are also available for ~amd64 (as 32-bit version using
some emul-linux-.. packages).
net-print/cnijfilter-2.60 is a successor of net-print/bjfilter-2.50 (bug
#128560) and for ~amd64 it depends on app-emulation/emul-linux-x86-bjdeps-0.1
(bug #129352).
It DOES NOT make the bjfilter ebuild obsolete, but adds a new range of
supported printers.
Created an attachment (id=89824) [details]
net-print/cnijfilter/cnijfilter-2.60.ebuild
Bugfix Summary
The issue: some libraries are expected to be in /usr/lib/bjlib but copied to
/urs/lib/cnijlib
changed
... --enable-libpath=${_libdir}/bjlib
into
... --enable-libpath=${_libdir}/cnijlib
Created an attachment (id=92300) [details]
net-print/cnijfilter/files/cnijfilter-2.60-ip4200-ppd.patch
There has been a problem with this patch (incorrect whitespaces at the end of
each line). It should work now.
I'm sorry.
Created an attachment (id=92394) [details]
net-print/cnijfilter/cnijfilter-2.60.ebuild
code compactification
renaming of useflags for consistency with the bjfilter ebuild
new "unstablecups" useflag for compatibility with newest CUPS
Created an attachment (id=92765) [details]
net-print/cnijfilter/cnijfilter-2.60.ebuild
1) Added neccessary check of the 'LINGUAS'-variable:
if [ -z "$LINGUAS" ]; then # -z tests to see if the argument is empty
ewarn "You didn't specify 'LINGUAS' in your make.conf. Assuming"
ewarn "english localisation, i.e. 'LINGUAS=\"en\"'."
LINGUAS="en"
fi
2) Fixed 'servicetools' dependencies. It now tells 'amd64' users why
'servicetools' currently won't compile and how to fix this:
"You can't build this package with 'servicetools' on amd64, because you would
need to compile '>=gnome-base/libglade-0.6' and '>=dev-libs/libxml-1.8' with
'export ABI=x86' first. That's exactly what 'emul-linux-x86-bjdeps-0.1' does
with 'dev-libs/popt-1.6'. I encourage you to adapt this ebuild to build 32bit
versions of 'libxml' and 'libglade' too!"
Created an attachment (id=94410) [details]
net-print/cnijfilter/cnijfilter-2.60.ebuild
-> won't depend on non-existing bjdeps-0.2 anymore if 'servicetools' and
'amd64' is enabled but instead print out an error
Created an attachment (id=100540) [details]
net-print/cnijfilter/cnijfilter-2.60-r2.ebuild
this revision should now work out-of-the-box with every cups version available
in portage.
(removed broken "unstablecups" flag and performing automatic detection of
cups-version instead.)
Created an attachment (id=100713) [details]
net-print/cnijfilter/cnijfilter-2.60-r3.ebuild
>> directory structure fixed
>> introduced a useflag "nocupsdetection" to override the autodetection and instead use symlinks to be compatible with all cups versions. This is useful for binary packages only.
>> gtk-dependency fix
One problem with these latest ebuilds: you put the dependency as =gtk+-1.2, but
I think you meant =gtk+-1.2*.
Just a nitpick; I haven't tested them thoroughly, but -r1 works great for me so
I think -r5 will, too.
Please add it to portage.
Hi colin, on my system the build failed with:
/usr/lib32/libssl.so.0.9.7: undefined reference to `HMAC_CTX_set_flags'
collect2: ld returned 1 exit status
distcc[12183] ERROR: compile (null) on localhost failed
make[2]: *** [pstocanonij] Error 1
make[2]: Leaving directory
`/var/tmp/portage/net-print/cnijfilter-2.60-r6/work/cnijfilter-2.60/pstocanonij/filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/net-print/cnijfilter-2.60-r6/work/cnijfilter-2.60/pstocanonij'
make: *** [all] Error 2
!!! ERROR: net-print/cnijfilter-2.60-r6 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3392: Called src_compile
cnijfilter-2.60-r6.ebuild, line 131: Called die
!!! Couldn't make pstocanonij
!!! If you need support, post the topmost build error, and the call stack if
relevant.
!!! A complete build log is located at
'/var/log/portage/net-print:cnijfilter-2.60-r6:20070305-043016.log'.
!!! This ebuild is from an overlay: '/usr/local/portage'
So I upgraded my app-emulation/emul-linux-x86-baselibs to 10.1 (I believe it
was 8.x before) which made this use /usr/lib32/libssl.so.0.9.8 instead of
/usr/lib32/libssl.so.0.9.7 and it worked.
Maybe we should specify >=app-emulation/emul-linux-x86-baselibs-10.1 ?
Regards, Jeff
Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4,
2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.8
Timestamp of tree: Wed, 28 Feb 2007 05:01:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks metadata-transfer
noclean parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.netnitco.net
http://adelie.polymtl.ca/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="fr en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa amd64 apm bash-completion berkdb bitmap-fonts
browserplugin bzip2 cdr cli cracklib crypt css cups dri dts dvd dvdr emacs fam
ffmpeg firefox flac fortran gdbm gecko-sdk gif glut gpm gtk gtk2 hal howl iconv
ipv6 isdnlog java joystick jpeg kde libcaca libg++ libvisual mad midi mikmod
mng modplug mp3 mpeg msn musepack ncurses nfs nls nptl nptlonly nsplugin nvidia
offensive ogg oggvorbis opengl pam pcre perl pic png ppds pppd python qt3 qt4
quicktime readline reflection samba session sid slang sndfile socks5 spell spl
ssl svg tcltk tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb
userlocales vcd visualization vorbis wma xcomposite xine xml xorg xv xvid zlib"
ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi
null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard
mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
lcdm001 mtxorb ncurses text" LINGUAS="fr en" USERLAND="GNU" VIDEO_CARDS="nvidia
vesa fbdev nv"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Please try it without distcc..
Sorry I can't now, emul-linux-x86-baselibs 8 isn't in portage anymore. Anyways
I don't think distcc has anything to do with it, since I can compile it fine
with newer baselibs (ssl).
I don't understand your last post. Is there still a problem?
New version 2.70 is out... adding support for new printers.
*** Bug 177970 has been marked as a duplicate of this bug. ***
--09:54:11--
ftp://download.canon.jp/pub/driver/bj/linux/cnijfilter-common-2.60-1.src.rpm
(try: 5) => `/mnt/nfs_portage/distfiles/cnijfilter-common-2.60-1.src.rpm'
Connecting to download.canon.jp|202.228.134.41|:21... connected.
Logging in as anonymous ...
Error in server response, closing control connection.
Giving up.
Is there another source for this file? The 2.70 src rpm isn't available either.
Sorry I can't reproduce this bug. Maybe there was a problem with the FTP-Server
which is fixed by now.
There is a newer version of the Canon driver available, 2.80. Even though it
looks like the 2.70 release does work for printers like the ip3500 (and maybe
4500), the quality is not perfect. Shouldn't those printers be able to provide
a subpixel resolution of 4800x1200dpi? The ppd for the ip3300 only allows a
maximum of 600. I have to mention though that the ip3500 ppd in 2.80 doesn't
allow more than 600dpi either, so this might just be a feature of the
rasteriser.
Here's the driver page - looks like no source there though:
http://cweb.canon.jp/drv-upd/bj/bjlinux280.html
(In reply to comment #28)
> Shouldn't those printers be able to provide
> a subpixel resolution of 4800x1200dpi? The ppd for the ip3300 only allows a
> maximum of 600. I have to mention though that the ip3500 ppd in 2.80 doesn't
> allow more than 600dpi either, so this might just be a feature of the
> rasteriser.
I've got iP4200 but it's max resolution is 600DPI, higher resolutions are
created by raster (ie. 16 times printhead goes throu this same part of picture)
and it's controlled by quality option. Besides those drivers still doesn't
provide CD printing, so it sucks :/
Emerge fails with :
make all-recursive
make[1]: Entering directory
`/var/tmp/portage/net-print/cnijfilter-2.70/work/cnijfilter-2.70/mp600/cnijfilter'
Making all in src
make[2]: Entering directory
`/var/tmp/portage/net-print/cnijfilter-2.70/work/cnijfilter-2.70/mp600/cnijfilter/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
bjferror.o -MD -MP -MF .deps/bjferror.Tpo -c -o bjferror.o bjferror.c
mv -f .deps/bjferror.Tpo .deps/bjferror.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
bjfilter.o -MD -MP -MF .deps/bjfilter.Tpo -c -o bjfilter.o bjfilter.c
mv -f .deps/bjfilter.Tpo .deps/bjfilter.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
bjfimage.o -MD -MP -MF .deps/bjfimage.Tpo -c -o bjfimage.o bjfimage.c
mv -f .deps/bjfimage.Tpo .deps/bjfimage.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
bjfoption.o -MD -MP -MF .deps/bjfoption.Tpo -c -o bjfoption.o bjfoption.c
bjfoption.c: In Funktion »SetCmdOption«:
bjfoption.c:548: Warnung: Übergabe des Arguments 3 von »poptGetContext« von
inkompatiblem Zeigertyp
mv -f .deps/bjfoption.Tpo .deps/bjfoption.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
bjfpos.o -MD -MP -MF .deps/bjfpos.Tpo -c -o bjfpos.o bjfpos.c
mv -f .deps/bjfpos.Tpo .deps/bjfpos.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
bjfrcaccess.o -MD -MP -MF .deps/bjfrcaccess.Tpo -c -o bjfrcaccess.o
bjfrcaccess.c
mv -f .deps/bjfrcaccess.Tpo .deps/bjfrcaccess.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
getipc.o -MD -MP -MF .deps/getipc.Tpo -c -o getipc.o getipc.c
getipc.c: In Funktion »GetIPCData«:
getipc.c:67: Warnung: Übergabe des Arguments 3 von »accept« von
inkompatiblem Zeigertyp
mv -f .deps/getipc.Tpo .deps/getipc.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT
bjflist.o -MD -MP -MF .deps/bjflist.Tpo -c -o bjflist.o bjflist.c
mv -f .deps/bjflist.Tpo .deps/bjflist.Po
gcc -O2 -L../../295/libs_bin -o cif bjferror.o bjfilter.o bjfimage.o
bjfoption.o bjfpos.o bjfrcaccess.o getipc.o bjflist.o -lcnbpcmcm295
-lcnbpess295 -lm -ldl -ltiff -lpng -lcnbpcnclapi295 -lcnbpcnclbjcmd295
-lcnbpcnclui295 -lpopt
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible ../../295/libs_bin/libcnbpcmcm295.so when searching for
-lcnbpcmcm295
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lcnbpcmcm295
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [cif] Fehler 1
make[2]: Leaving directory
`/var/tmp/portage/net-print/cnijfilter-2.70/work/cnijfilter-2.70/mp600/cnijfilter/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/net-print/cnijfilter-2.70/work/cnijfilter-2.70/mp600/cnijfilter'
make: *** [all] Fehler 2
*
* ERROR: net-print/cnijfilter-2.70 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* cnijfilter-2.70.ebuild, line 147: Called src_compile_pr
* cnijfilter-2.70.ebuild, line 218: Called die
* The specific snippet of code:
* make || die "Couldn't make ${_pr}/cnijfilter"
* The die message:
* Couldn't make mp600/cnijfilter
*
* If you need support, post the topmost build error, and the call stack if
relevant.
* A complete build log is located at
'/var/tmp/portage/net-print/cnijfilter-2.70/temp/build.log'.
* This ebuild is from an overlay: '/usr/local/portage/'
any idea? emerge --info says:
Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0,
2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Mon, 11 Feb 2008 07:00:01 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config
/usr/kde/4.0/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/init.d /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox
sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE"
LC_ALL="de_DE"
LINGUAS="de en"
MAKEOPTS="-s -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts berkdb bitmap-fonts bluetooth cli cracklib
crypt cups dbus doc dri fortran gdbm gif gpm hal iconv ieee1394 ipv6 isdnlog
java jpeg jpeg2k kde kdehiddenvisibility mbrola midi mmx mp3 mudflap ncurses
nls nptl nptlonly nvidia opengl openmp pam pcmcia pcre perl png pppd python qt
readline reflection samba session spl sse sse2 ssl svg tcpd truetype-fonts
type1-fonts udev unicode usb wifi xcomposite xorg zlib" ALSA_CARDS="ali5451
als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938
es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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
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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
thanks!
when i switch to gcc-3.4 the error is the same.
it seems to be a incompatible library.
but a dont know where it come frome.
What does net-print/bjfilter-2.50 (bug #128560) provide that
net-print/cnijfilter-3.00 (this bug #130645) does not include?
(In reply to comment #40)
> What does net-print/bjfilter-2.50 (bug #128560) provide that
> net-print/cnijfilter-3.00 (this bug #130645) does not include?
Sorry for self-answering:
Marek Kozlowski pointed out in bug #253153 that no version of the driver
includes support for older versions. He also gave me a nice link:
http://www.canon-europe.com/Support/Software/Linux/PIXMA/index.asp
In particular net-print/bjfilter-2.50 supports:
PIXMA iP1000
PIXMA iP1500
While 2.60 supports only:
PIXMA iP2200
PIXMA iP4200
2.70 and 2.80 support several other, newer devices (see above link), while 3.00
is not documented at all (on that page).
I am can't download distributive, but from
http://linsovet.com/canon-pixma-ip1600
I do:
Distributive of canon driver 24301.tgz - you can download from
http://software.canon-europe.com/files/soft24301/software/24301.tgz
They contain:
guideip2200-2.60-1.tar.gz
iP2200_Linux_260.tar.gz
cnijfilter-common-2.60-4.src.rpm
cnijfilter-ip4200-2.60-4.i386.rpm
cnijfilter-ip4200-lprng-2.60-4.i386.rpm
~ # tar -zxf 24301.tgz
~ # tar -zxf iP2200_Linux_260.tar.gz
~ # cp cnijfilter-common-2.60-1.src.rpm /usr/portage/distfiles/
And i can emerge cnijfilter-2.60-r6.ebuild
I'd appreciate cnijfilter 2.90 ebuild. My printer is PIXMA iP100 (portable) and
I'm afraid only 2.90 supports it...