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

[debian-devel:14720] Re: new gs-ja/gs-aladdin-vflib



>> On Mon, 3 Dec 2001 12:37:39 +0900
>> kohda@xxxxxxxxxxxxxxxxxxxx (Atsuhito Kohda) said as follows:

>> リビルドã—よã†ã¨ã—ã¦ä»¥ä¸‹ã®æ‰‹é †ã§ä½œæ¥­ã—ãŸã®ã§ã™ãŒã€

>念ã®ç‚ºã§ã™ãŒï¼Œã“れ㯠vflib-support 㨠jpdrivers-support 共㫠yes ã«ã—
>ãŸã®ã§ã—ょã†ã‹ï¼Œãã‚Œã¨ã‚‚ã©ã¡ã‚‰ã‹ã ã‘ã§ã—ょã†ã‹ï¼Ÿ

最åˆã¯ vflib-support ã ã‘ã‚’ yes ã«ã—ã¦ä½œæ¥­ã—ã¦ã€æ¬¡ã« jpdrivers-support 
ã‚‚ yes ã«ã—ã¾ã—ãŸã€‚ã©ã¡ã‚‰ã®å ´åˆã‚‚åŒã˜ã‚¨ãƒ©ãƒ¼ãŒå‡ºãŸã¨æ€ã„ã¾ã™ã€‚

;; 添付ã—ãŸã‚¨ãƒ©ãƒ¼ã¯ã€ä¸¡æ–¹ã¨ã‚‚ã« yes ã«ã—ãŸçŠ¶æ³ã§æŽ¡å–ã—ã¾ã—ãŸã€‚


>ã¤ã„ã§ã« libglib1.2-dev ã¯ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã¦ã¾ã™ã§
>ã—ょã†ã‹ï¼Ÿ

    $ dpkg --status libglib1.2-dev | head -8
    Package: libglib1.2-dev
    Status: install ok installed
    Priority: optional
    Section: devel
    Installed-Size: 413
    Maintainer: Akira TAGOH <tagoh@debian.org>
    Source: glib1.2
    Version: 1.2.10-2

ã¨ãªã£ã¦ã„ã¾ã™ã‹ã‚‰ã€ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã¦ã„ã¾ã™ã­ã€‚

>> ã”覧ã®é€šã‚Šã€paper.h ãŒå­˜åœ¨ã—ãªã„よã€ã¨ã„ã†ã‚¨ãƒ©ãƒ¼ã§æ­¢ã¾ã£ã¦ã—ã¾ã„ã¾ã™ã€‚
>> ã¡ã‚‡ã£ã¨èª¿ã¹ã¦ã¿ãŸã¨ã“ã‚ã€libpaperg-dev ã«å«ã¾ã‚Œã¦ã„るよã†ãªã®ã§ã€ã“ã®
>> パッケージを Build-Depends: ã«è¿½åŠ ã™ã‚‹å¿…è¦ãŒã‚ã‚‹ã¨æ€ã†ã®ã§ã™ãŒã€ã©ã†ã§
>> ã—ょã†ã‹?

>ã¯ã„,ãã®é€šã‚Šã§ã—ょã†ã­ã€‚paper.h ã¯ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã‚‚å¿…è¦
>ã¿ãŸã„ãªã®ã§è¿½åŠ ã—ã¦ãŠãã¾ã™ã€‚

># ã“ã®ã‚ãŸã‚Šã¾ã å…¨ç„¶æ•´ç†ã—ãã‚Œã¦ã¾ã›ã‚“ ^^ï¼›

>> ã¨ã„ã†ã‚¨ãƒ©ãƒ¼ã§æ­¢ã¾ã‚Šã¾ã—ãŸã€‚ã“れ㯠libgimpprint-dev ã«å«ã¾ã‚Œã¦ã„るよã†
>> ã§ã™ãŒã€ã“ã¡ã‚‰ã®å ´åˆã¯å˜ç´”ã« Build-Depends: ã«è¿½åŠ ã™ã‚‹ã®ã§ã¯ãªãã¦ã€å­˜
>> 在ã—ãªã„å ´åˆã¯ç„¡è¦–ã—ã¦ãれるよã†ã«ãªã£ã¦ãれるã¨å¬‰ã—ã„ã¨æ€ã„ã¾ã™ã€‚

ã™ã¿ã¾ã›ã‚“ã€ã“ã£ã¡ã®æ–¹ã®ã‚¨ãƒ©ãƒ¼ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ãŒé–“é•ã£ã¦ã¾ã—ãŸã€‚æ­£ã—ãã¯ä»¥ä¸‹
ã®é€šã‚Šã€‚

gcc `cat ./obj/cc.tr`  -DHAVE_MKSTEMP -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wtraditional -fno-builtin -fno-common  -I./obj -I./src  -o ./obj/gdevstp.o -c `gimpprint-config --cflags` gimp-print/gdevstp.c
/bin/sh: gimpprint-config: command not found
gimp-print/gdevstp.c:37: gimp-print/gimp-print.h: ãã®ã‚ˆã†ãªãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリã¯ã‚ã‚Šã¾ã›ã‚“
make[1]: *** [obj/gdevstp.o] エラー 1
make[1]: Leaving directory `/home/tsuchiya/work/elisp/debian/tools/gs-aladdin-vflib/gs-aladdin-vflib-7.03'
make: *** [build-stamp] エラー 2

>当然ã®å¸Œæœ›ã§ã—ょã†ãŒï¼Œãã†ã™ã‚‹ã«ã¯ debian/devices ã®ä¿®æ­£ãŒå¿…è¦ã ã¨æ€
>ã„ã¾ã™ã€‚

良ã分ã‹ã£ã¦ã„ãªã„ã®ã§ã™ãŒã€ã¨ã‚Šã‚ãˆãš debian/gen-makefile を以下ã®ã‚ˆ
ã†ã«å¤‰æ›´ã™ã‚‹ã¨ã€libgimpprint-dev ãŒã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã¦ã„ãªã„å ´åˆã¯ stp 
デãƒã‚¤ã‚¹ã‚’コンパイルã—ãªã„よã†ã«ãªã‚Šã¾ã™ã€‚

--- debian/gen-makefile.ORIG	Tue Dec  4 00:59:05 2001
+++ debian/gen-makefile	Tue Dec  4 00:49:45 2001
@@ -32,6 +32,14 @@
 close DEVICES;
 print "done\n";
 
+## When libgimpprint-dev is not installed, remove stp from compiling device list.
+{
+    open DPKG, "dpkg --status libgimpprint-dev|" or die "can't run dpkg: $!";
+    ( ( grep( /^Status: /, <DPKG> ) )[$[] =~ /ok\s+installed$/ )
+	or @devices = grep( $_ ne 'stp', @devices );
+    close DPKG;
+}
+
 if (defined $ENV{GS_CC}) {
 	print "WARNING: Using $ENV{GS_CC} to compile ghostscript!!!}\n";
 	print "Press return to continue...\n";
ã‚‚ã†å°‘ã—å‡ã£ãŸã“ã¨ã‚’ã™ã‚‹ãªã‚‰ã°ã€ä»¥ä¸‹ã®ã‚ˆã†ã« debian/gen-makefile を変
æ›´ã™ã‚‹ã®ã¯ã©ã†ã§ã—ょã†ã‹ã€‚ã“ã®ã‚ˆã†ã«å¤‰æ›´ã™ã‚‹ã¨ã€debian/exclude-devices 
ãŒå­˜åœ¨ã—ãŸå ´åˆã«ã¯ã€ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã®ä¸­èº«ã‚’検査ã—ã¦ã€æŒ‡å®šã•ã‚Œã¦ã„るドライ
ãƒã‚’ compile ã—ãªã„よã†ã«ã—ã¾ã™ã€‚

--- gen-makefile.ORIG	Tue Dec  4 00:59:05 2001
+++ gen-makefile	Tue Dec  4 01:10:45 2001
@@ -32,6 +32,17 @@
 close DEVICES;
 print "done\n";
 
+if( -f "debian/exclude-devices" ){
+    open( EX, "<debian/exclude-devices" ) or die "can't open debian/exclude-devices: $!";
+    my %exclude;
+    while( <EX> ){
+	s/\s+$//;
+	$exclude{$_}++ unless( /^#/ or /^$/ );
+    }
+    close EX;
+    @devices = grep( ! $exclude{$_}, @devices );
+}
+
 if (defined $ENV{GS_CC}) {
 	print "WARNING: Using $ENV{GS_CC} to compile ghostscript!!!}\n";
 	print "Press return to continue...\n";
-- 
土屋 雅稔  ( TSUCHIYA Masatoshi )