[Momonga-devel.ja:01445] ncpfsのビルド、perlのmandirについて


 Kanji Naitoです。

ncpfsですが、私の環境ではビルドできませんでしたので調べてみました。
%configureをrpm -showrc でマクロを確認し、根本的な解決なのか分りませんが、
%{_target_platform}を削除するとビルドできました。

# 環境は P-III (Coppermine) kernel-cm-2.4.20-31m ,rpm-4.0.4-44mです。
# ビルドできないのは、私だけなのだろうか?

また、mknmz_MANdbですが、perlのmanファイルは、mandirに移動している
様なので、perlmandirを削除しました。

それぞれのdiffを下につけています。また、ncpfsのログを添付いたします。


$ diff -up ncpfs.spec.orig ncpfs.spec
--- ncpfs.spec.orig     2003-03-05 00:00:00.000000000 +0900
+++ ncpfs.spec  2003-03-05 00:00:00.000000000 +0900
@@ -36,7 +36,21 @@ Install ipxutils if you need to configur
 %setup -q

 %build
-%configure --disable-pam --disable-function-sections
+./configure --disable-pam --disable-function-sections \
+            --prefix=%{_prefix} \
+            --exec-prefix=%{_exec_prefix} \
+            --bindir=%{_bindir} \
+            --sbindir=%{_sbindir} \
+            --sysconfdir=%{_sysconfdir} \
+            --datadir=%{_datadir} \
+            --includedir=%{_includedir} \
+            --libdir=%{_libdir} \
+            --libexecdir=%{_libexecdir} \
+            --localstatedir=%{_localstatedir} \
+            --sharedstatedir=%{_sharedstatedir} \
+            --mandir=%{_mandir} \
+            --infodir=%{_infodir}
+#            %{_target_platform}
 %ifnarch ppc
 make CFLAGS_OPTIONS="%{optflags}"
 make CFLAGS_OPTIONS="%{optflags}" -C ipxdump


$momocvs diff -up mknmz_MANdb.in
Index: mknmz_MANdb.in
===================================================================
RCS file: /home/cvs/pkgs/namazu_MANdb/mknmz_MANdb.in,v
retrieving revision 1.1
diff -u -p -r1.1 mknmz_MANdb.in
--- mknmz_MANdb.in      29 Apr 2002 13:19:38 -0000      1.1
+++ mknmz_MANdb.in      4 Mar 2003 00:00:00 -0000
@@ -28,10 +28,9 @@ arealimit='ja'
 # man directories
 mandir=/usr/share/man
 xmandir=/usr/X11R6/man
-perlmandir=/usr/lib/perl5/man

 # make language/area list
-areas=`(find $mandir $xmandir $perlmandir -maxdepth 1 -type d | \
+areas=`(find $mandir $xmandir -maxdepth 1 -type d | \
   /bin/sed 's|[^/]*/||g;/man/d' ; \
   find $idxdir -maxdepth 1 -type d -name 'MAN.*' | \
   /bin/sed 's|^.*MAN\.||') | sort -u`
@@ -55,7 +54,7 @@ for area in $areas; do
     cd $dbdir
     # make index if not locked
     if ( mv mknmz.log mknmz.log.$$ 2> /dev/null ; ); then
-      LANG=$lang $mknmz $mandir/$area $xmandir/$area $perlmandir/$area 
\
+      LANG=$lang $mknmz $mandir/$area $xmandir/$area \
        >| mknmz.log.$$ 2>&1 || \
        echo mknmz died >> mknmz.log.$$
       rm -f NMZ.lock2 NMZ.*.tmp NMZ.slog
@@ -78,7 +77,7 @@ if [ ! -d $dbdir ]; then
 fi
 cd $dbdir
 if ( mv mknmz.log mknmz.log.$$ 2> /dev/null ; ); then
-  LANG=$lang $mknmz $mandir/man? $xmandir/man? $perlmandir/man? \
+  LANG=$lang $mknmz $mandir/man? $xmandir/man? \
     >| mknmz.log.$$ 2>&1 || \
     echo mknmz died >> mknmz.log.$$
   rm -f NMZ.lock2 NMZ.*.tmp NMZ.slog

Attachment: ncpfs-log.tar.gz
Description: GNU Zip compressed data