[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#192138: xfonts-scalable.postinst trouble with xftcache on speedo



reopen 192138 "Jack.R" <jack.r@free.fr>
thanks

On Thu, Oct 09, 2003 at 08:17:25PM +0200, Jack.R wrote:
> Sorry for that lake of information, first time for me to submit a bug report.
> Of course, not sure if I should reply to you or to 192138@bugs.debian.org.
> Hope it is the right way.
> 
> As /var/cache/apt/archives did not contain any other xfonts-scalable version
> (an apt-get clean has been made in the past), I get back to original script,
> add "set -x" and launch it manualy by "./xfonts-scalable.postinst> report.txt 2>&1
> Here is the result.

Thank you!  I see the problem.

Please save the attached patch as /tmp/xfonts-scalable.postinst.diff and
apply it with the following command:

# cd /var/lib/dpkg/info && patch -p0 < tmp/xfonts-scalable.postinst.diff

It should apply cleanly (but will warn of offsets -- that's expected).

After applying this patch, please re-run the script:

# dpkg --configure xfonts-scalable

(or, if dpkg thinks the package is already configured:

# /var/lib/dpkg/info/xfonts-scalable.postinst configure

)

Please let me know if this patch resolves the problem.

-- 
G. Branden Robinson                |     Communism is just one step on the
Debian GNU/Linux                   |     long road from capitalism to
branden@debian.org                 |     capitalism.
http://people.debian.org/~branden/ |     -- Russian saying
Index: xfonts-scalable.postinst
===================================================================
--- xfonts-scalable.postinst	(revision 640)
+++ xfonts-scalable.postinst	(working copy)
@@ -294,15 +294,16 @@
       if which $CMD > /dev/null 2>&1; then
         SHORTCMD=$(basename $CMD)
         message_nonl "Running $SHORTCMD in $DIR font directory..."
-        # KLUDGE: xftcache dies anyway in XFree86 4.3.0
         if [ "$SHORTCMD" = "xftcache" ]; then
+          if [ "$DIR" = "Speedo" ]; then
+            # do nothing; xftcache SEGVs (*sometimes*) when asked to process the
+            # Speedo directory
+            CMD=:
+          fi
+          # KLUDGE: xftcache needs to be handed the full path; the command goes
+          # away anyway in XFree86 4.3.0
           DIR=/usr/X11R6/lib/X11/fonts/$DIR
         fi
-        if [ "$SHORTCMD" = "xftcache" -a "$DIR" = "Speedo" ]; then
-          # do nothing; xftcache SEGVs (*sometimes*) when asked to process the
-          # Speedo directory
-          :
-        else
           $CMD $DIR
         fi
         message "done."

Attachment: signature.asc
Description: Digital signature


Reply to: