Hi
I'm having a problem with the audit_pkg script. The package I'm trying
to port has a bunch on interface spec files which end in .i and building
the package fails because of the script audit_pkg.
SUNWswig: ERROR: /usr/share/swig/1.3.35/attribute.i does not belong in a
"usr" p
ackage
SUNWswig: ERROR: /usr/share/swig/1.3.35/carrays.i does not belong in a
"usr" pac
kage
SUNWswig: ERROR: /usr/share/swig/1.3.35/cdata.i does not belong in a
"usr" packa
ge
SUNWswig: ERROR: /usr/share/swig/1.3.35/cmalloc.i does not belong in a
"usr" pac
kage
SUNWswig: ERROR: /usr/share/swig/1.3.35/constraints.i does not belong in
a "usr"
package
line 43 causes the process to fail as best I can tell so no package will
be built.
34 audit() {
35 pkg=$1
36 pkgtype=$2
37 shift 2
38 files=$*
39
40 failed=0
41 for f in $files
42 do
43 egrep -v '^(#|i|!)' $f | \
44 egrep -v '^[ ]*$' | \
45 nawk -v pkg=${pkg} -v pkgtype=${pkgtype} ' \
46 BEGIN { stat=0; } \
47 { \
48 if ((pkgtype == "root") && ($3 ~ /^usr/ )) { \
49 printf( \
50 "%s: ERROR: %s does not belong in a \"%s\"
package\n", \
51 pkg, $3, pkgtype); \
52 stat=1; \
53 } \
any suggestions
Bruce Rothermal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bruce_rothermal.vcf
Type: text/x-vcard
Size: 305 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/sfwnv-discuss/attachments/20080619/dc2ce46b/attachment.vcf>