Article View: news.software.readers
Article #171984Slrnface fixed! (Was Re: Blinky, add view X-Face to your slrn page)
From: Jonathan A.
Date: Mon, 22 Aug 2005 02:01
Date: Mon, 22 Aug 2005 02:01
76 lines
4280 bytes
4280 bytes
On Sun, 21 Aug 2005 20:37:43 +0200, J. E. Peters
<mail4jep@web.de> appears to have said:
> x-face would'nt display in my xterm. As I learnt from the Debian bug
> reports this fact is due to a fault in the xlibs.
>
> I just applied the following patch and recompiled the xface package.
AHA! I hoped that if I watched this thread, someone would tell me how
to fix the dang thing! Thank you. (Apologies to all for the subject
change, but I think this warrants its very own title.)
One thing, though. The diff you posted has no tab chars, while the
original code does. Maybe they got lost in a copy'n'paste. Not that it's
a big deal to hand edit, but here's a diff that works for the slrnface.c
found in the supposed original tarball from Debian if anyone needs it:
==========CUT HERE=========
--- slrnface.c.orig 2002-08-24 17:33:52.000000000 -0400
+++ slrnface.c 2005-08-21 15:58:33.000000000 -0400
@@ -534,8 +534,8 @@
* line parameters directly, so at least that will work.
*/
- if (strpbrk (terminal.res_name, ".*?")
- || strpbrk (terminal.res_class, ".*?"))
+ if (1 /*strpbrk (terminal.res_name, ".*?")
+ || strpbrk (terminal.res_class, ".*?")*/)
{
force_cmd_line (*argc, argv);
}
==========CUT HERE=========
The source tarball which I used to create the diff is here:
http://ftp.debian.org/debian/pool/main/s/slrnface/slrnface_2.1.1.orig.tar.gz
Those of you who want to try this, do *not* copy and paste the diff,
but save this article to file, and crop out the diff with (vim) your
favorite (vim) text editor.
Then, save the results as, say, slrnface.c.diff, and it should be as
simple as this:
tar zxvpf slrnface_2.1.1.orig.tar.gz
cd slrnface-2.1.1
patch < /path/to/slrnface.c.diff
make
YMMV, but for some fool reason, I get "cannot find -lXt" when compiling
with the original Makefile. Even though /usr/X11R6/lib is on my
LD_LIBRARY_PATH, and in /etc/ld.so.conf, I am obliged to edit the
Makefile so that the X_LIBS line reads:
X_LIBS = -L/usr/X11R6/lib -lXt -lX11 # X libs
Note that this patch means that the Xresources described in TFM no
longer work, and you'll have to edit slrnface.sl to add any options.
Look for the line:
success = system ("slrnface " + home) shr 8;
and add the arguments in between the quotes, such as:
success = system ("slrnface -xOffsetPix 5" + home) shr 8;
I'm running X.org 6.8.2, compface-1.5.1, and rxvt. Also works for me
in xterm.
ciao,
Jonathan
--
Don't just hit reply. Email address is broken. Thank
your friendly neighborhood spammer. Email replies to:
user: daboid domain: cox<dot>net
Technical Details
Message-ID:
<slrndgicf9.6b0.invalid@yomomma.example.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!cox.net!news-xfer.cox.net!p01!lakeread01.POSTED!53ab2750!not-for-mailReferences:
<slrndgelh4.cpk.ohmster@ohmster.com> <slrndgeqll.a8r.no.spam@thurston.blinkynet.net> <slrndgf0lt.eg1.ohmster@ohmster.com> <slrndgf5vr.a8r.no.spam@thurston.blinkynet.net> <jmcmt2-nbn.ln1@ID-107770.user.individual.net> <slrndghbkr.snj.no.spam@thurston.blinkynet.net> <deahln$kl4$04$1@news.t-online.com>Show Full Headers
Complete Article Headers
Message-ID: <slrndgicf9.6b0.invalid@yomomma.example.net>
Subject: Slrnface fixed! (Was Re: Blinky, add view X-Face to your slrn page)
Date: Mon, 22 Aug 2005 02:01:09 GMT
From: "Jonathan A." <invalid@example.net>
References: <slrndgelh4.cpk.ohmster@ohmster.com> <slrndgeqll.a8r.no.spam@thurston.blinkynet.net> <slrndgf0lt.eg1.ohmster@ohmster.com> <slrndgf5vr.a8r.no.spam@thurston.blinkynet.net> <jmcmt2-nbn.ln1@ID-107770.user.individual.net> <slrndghbkr.snj.no.spam@thurston.blinkynet.net> <deahln$kl4$04$1@news.t-online.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!cox.net!news-xfer.cox.net!p01!lakeread01.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.readers
Organization: Not today, maybe tomorrow.
X-No-Spam: please
X-No-Bananas: yes
X-Face: ZgLr2<e]c^"#,JTP$:[Se@zON"Y@NDxip_i)TR'*t)|-c,.7Q=ip~:\"9xk:]=%|)wFBg+qg.PWsdim}}9Y,XH71U6:!uc!Q6O~*bPs`JLXIhN0*|v)UgQ~^LHD65lHZ"q\z1alWeicJna\]wYSe01<fnQ.z<+KKu_Gx+7W~d.jk6>|OI*g"AFh&4a9ROCO5$#ueIVw*Aj1^ttarULuoUakaw3D`7ASZ2Y&I(UhO-09CV{0uMwX[E+;
)n,U(md_^Sx
User-Agent: slrn/0.9.8.1-jwk1 (Linux)
Lines: 76
NNTP-Posting-Host: 68.107.207.7
X-Complaints-To: abuse@cox.net
X-Trace: lakeread01 1124676069 68.107.207.7 (Sun, 21 Aug 2005 22:01:09 EDT)
NNTP-Posting-Date: Sun, 21 Aug 2005 22:01:09 EDT