Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48173 - net-print/xprint needs to be updated to work with x11-base/xorg-x11
Summary: net-print/xprint needs to be updated to work with x11-base/xorg-x11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-17 16:01 UTC by Howard B. Golden
Modified: 2004-07-05 05:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Howard B. Golden 2004-04-17 16:01:40 UTC
After installing x11-base/xorg-x11, the fonts directories are in a new location. There is a need to update net-print/xprint, specifically /usr/sbin/xprint, to look for the fonts in the new location. (I don't have a patch yet, but I will make one, test it and post it when tested.)

Reproducible: Always
Steps to Reproduce:
1. emerge xorg-x11 xprint

Actual Results:  
/usr/sbin/xprint still refers to old location for fonts, not where xorg-x11 puts
them.

Expected Results:  
/usr/sbin/xprint should look in both the old and new locations for fonts.

'emerge info' not applicable, but here it is:

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/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/ /var/bind
/var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox usersandbox"
GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://gentoo.ccccom.com
http://128.213.5.34/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.ccccom.com"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d acl acpi acpi4linux alsa amd antlr apache2 apm arts
artswrappersuid avi berkdb bonobo caps cdr clamav crypt cups directfb dnd doc
droproot dv dvd dvdr encode esd ethereal evo expat fbcon foomaticdb
foreign-package foreign-sysvinit freetds gb gd gd-external gdbm gif ginac gnome
gnomedb gpm gstreamer gtk gtk2 gtkhtml guile idea imap imlib innodb ipv6 jabber
jack java javamail jikes jpeg junit kde kerberos ldap libg++ libgda libwww mad
maildir mbox mdb mikmod mmx motif mozilla moznoirc moznomail mpeg mysql ncurses
nls nptl oci8 odbc ofx oggvorbis opengl oss pam parse-clocks pda pdflib perl
pg-hier pic plotutils png postgres ppds python qt quicktime radeon readline ruby
ruby18 samba sasl sdk sdl slang slp snmp spell ssl svga tcltk tcpd tetex tiff
truetype type1 usb utf8 video_cards_radeon wmf wxwindows x86 xml xml2 xmms xv
zeo zlib"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-18 23:23:21 UTC
Printing team bug.
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-05-09 04:58:07 UTC
what about xprint-009, is this still not compatible?
Comment 3 Howard B. Golden 2004-05-09 15:47:18 UTC
Re: Comment #2: Heinrich, in xprint-009, in the /usr/sbin/xprint script, it DOES scan the /usr/share/fonts directory. This MAY BE sufficient.

However, I wonder if it should read the fonts list out of the /etc/X11/xorg.conf file as well (if the file exists), just as it now reads the fonts out of /etc/X11/XF86Config and /etc/X11/XF86Config-4. (This is done in the function get_fontlist_from_xf86config().)

So what I'm saying is that I wonder if there should be a similar attempt to read from /etc/X11/xorg.conf? This could be done by adding the following line to /usr/sbin/xprint:

[ -f "/etc/X11/xorg.conf" ]   && srcxf86configfile="/etc/X11/xorg.conf"

after this line:

[ -f "/etc/X11/XF86Config" ]   && srcxf86configfile="/etc/X11/XF86Config"

This would only be necessary if there are fonts NOT IN /usr/share/fonts. If we are sure that all fonts are in /usr/share/fonts then xprint-009 is fine the way it is. (I don't know enough about how flexible font locations are allowed to be, so I don't know if this suggestion is redundant.)
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-07-05 05:00:22 UTC
the fonts in /etc/X11/xorg.conf (XFree86.conf) are deprecated, so i don't think it should use them. So i will close this one.