pkgsrc-Bugs archive

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

pkg/28620: Failed to make fzk.dic when making inputmethod/ja-freewnn-dict on Mac OS X.



>Number:         28620
>Category:       pkg
>Synopsis:       Failed to make fzk.dic when making inputmethod/ja-freewnn-dict 
>on Mac OS X.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 12 03:33:00 +0000 2004
>Originator:     Noritoshi Demizu
>Release:        Mac OS X 10.3.6
>Organization:
>Environment:
Darwin xxx 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004; 
root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
When I tried to make inputmethod/ja-freewnn-dict after fixing
LOCALBASE (See pkg/28618), I got the following message.

  make FZK_FLAG=-DKANSAI std.fzk
  /usr/bin/cpp -traditional  -DKANSAI fzk.master | egrep -v '^(# |$)' | 
/usr/pkg/sbin/atof -h ../../Wnn/jd/hinsi.data std.fzk
  Bad format near line 0 "#pragmaGCCset_debug_pwd"".
  File must start with attribute
  *** Error code 1

The cause is cpp on Mac OS X inserts the following line to the output.

  #pragma GCC set_debug_pwd 
"/xxx/inputmethod/ja-freewnn-dict/work/Xsi/Wnn/pubdic"

This line should be removed by the "egrep -v" command above.
>How-To-Repeat:
on Mac OS X 10.3.6, after fixing pkg/28618,

  $ cd inputmethod/ja-freewnn-dict
  $ bmake
>Fix:
Add the following patch under inputmethod/ja-freewnn-lib/patches.

--- Wnn/pubdic/Makefile.in-ORG  Fri Dec 10 17:51:18 2004
+++ Wnn/pubdic/Makefile.in      Fri Dec 10 18:21:04 2004
@@ -996,7 +996,7 @@
        @echo "skipping make in my dir"
 
 std.fzk: $(FZK_SRC)
-       $(CPP) $(FZK_FLAG) fzk.master | egrep -v '^(# |$$)' | $(ATOF) -h 
$(HINSI) $@
+       $(CPP) $(FZK_FLAG) fzk.master | egrep -v '^(# |#pragma|$$)' | $(ATOF) 
-h $(HINSI) $@
 
 full.fzk: $(FZK_SRC)
        $(MAKE) FZK_FLAG=-DKANSAI std.fzk




Home | Main Index | Thread Index | Old Index