hns - 日記自動生成システム - Version 2.19.9

先月 2010年12月 来月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2010年12月02日(木) 旧暦 [n年日記] [更新:"2010/12/02 21:49:14"]

#1 [pkgsrc][NetBSD] print/cups, cups-1.4.3nb9

I am getting some error while doing make package. I could not figure out why, but just for my record:
  190  cd print/cups
  191  make clean
  192  cvs update -dPA
  194  make package |& tee ~/prep/cups-1.4.3nb9.log
=> Checking file-check results for cups-1.4.3nb9
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /export/pkgsrc/print/cups/work/.destdir/usr/pkg/libexec/cups/backend/dnssd
ERROR:         /export/pkgsrc/print/cups/work/.destdir/usr/pkg/libexec/cups/backend/mdns
*** Error code 1
modena@makoto 10:37:03/101202(..print/cups)% grep Permission ~/prep/cups-1.4.3nb9.log
strip: unable to copy file '/export/pkgsrc/print/cups/work/
 .destdir/usr/pkg/lib/libcups.so.2.0.8' reason: Permission denied
 .destdir/usr/pkg/lib/libcups.a' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsimage.so.2.0.3' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsimage.a' reason: Permission denied
 .destdir/usr/pkg/lib/libcupscgi.so.1.0.0' reason: Permission denied
 .destdir/usr/pkg/lib/libcupscgi.a' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsdriver.so.1.0.0' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsdriver.a' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsppdc.so.1.0.0' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsppdc.a' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsmime.so.1.0.0' reason: Permission denied
 .destdir/usr/pkg/lib/libcupsmime.a' reason: Permission denied
modena@makoto 10:37:28/101202(..print/cups)%
After all, the files pointed out above are installed.
modena@makoto 10:55:26/101202(..print/cups)% grep dns_sd ~/prep/cups-1.4.3nb9.log 
checking dns_sd.h usability... yes
checking dns_sd.h presence... yes
checking for dns_sd.h... yes
checking for current version of dns_sd library... no
dnssd is enabled by option, but it is not found on the system, it will be skipped. How PLIST is to be handled.

If the option 'dnssd' is enabled, packaging should check its relevant library and say no if not installed (not available).

in options.mk, it looks properly coded:
 30  PLIST_VARS+=            dnssd
 31  .if !empty(PKG_OPTIONS:Mdnssd)
 32  .include "../../net/mDNSResponder/buildlink3.mk"
 33  CONFIGURE_ARGS+=        --enable-dnssd
 34  PLIST.dnssd=            yes
 35  .else
 36  CONFIGURE_ARGS+=        --disable-dnssd
 37  .endif
And it seems to me DNS Responder is installed recently.
modena@makoto 11:04:03/101202(..print/cups)% pkg_info|grep DNS  
p5-Net-DNS-0.66     Perl5 module for DNS resolution
mDNSResponder-108nb1 Apple's mDNS responder

modena@makoto 11:04:50/101202(..print/cups)% ls -l /usr/pkg/lib/libdns_sd*
-rwxr-xr-x  1 root  wheel  19726 Dec  1 23:16 /usr/pkg/lib/libdns_sd.so
modena@makoto 11:04:54/101202(..print/cups)% 
Then, why configure says no.
in configure.log says:
configure:9920: checking for current version of dns_sd library
configure:9939: cc -c -I/usr/include/krb5  -O2 -I/usr/pkg/include -I/usr/include/krb5 -I/usr/include -
I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/inclu
de/krb5  -I/usr/pkg/include -I/usr/include/krb5 -I/usr/include conftest.c >&5
conftest.c: In function 'main':
conftest.c:102: error: 'kDNSServiceFlagsShareConnection' undeclared (first use in this function)
conftest.c:102: error: (Each undeclared identifier is reported only once
conftest.c:102: error: for each function it appears in.)
configure:9939: $? = 1
configure: failed program was:
mDNSResponder 108 is too old, the current one is 258.13. But it is not easy to build it. So here is the patch:
cvs diff: Diffing .
Index: options.mk
===================================================================
RCS file: /e/cvsync/cvsync/pkgsrc/print/cups/options.mk,v
retrieving revision 1.11
diff -u -r1.11 options.mk
--- options.mk  14 Jul 2010 11:25:19 -0000      1.11
+++ options.mk  2 Dec 2010 02:16:18 -0000
@@ -4,7 +4,11 @@
 PKG_OPTIONS_REQUIRED_GROUPS=   pdftops
 PKG_OPTIONS_GROUP.pdftops=     ghostscript poppler
 PKG_SUPPORTED_OPTIONS= acl dbus dnssd kerberos libusb pam slp tcpwrappers threads
-PKG_SUGGESTED_OPTIONS= dbus dnssd kerberos libusb poppler slp
+PKG_SUGGESTED_OPTIONS= dbus kerberos libusb poppler slp
+.if ${OPSYS} == "Darwin"
+PKG_SUGGESTED_OPTIONS+=        dnssd
+.endif
+
 PKG_OPTIONS_LEGACY_OPTS+=      xpdf:poppler gs:ghostscript
 
 .include "../../mk/bsd.options.mk"
cvs diff: Diffing files
cvs diff: Diffing patches
Says the current version is 214.3.2.
I may be doing something wrong. net/mDNSResponder was too old (in my machine).

Updating mDNSResponder to recentt resolve the problem:

As stated above, the current version of nDNSResponder with pkgsrc is 214.3.2. With this version, the cups packages OK.



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)