security/nss 3.11.1 patch c/b better?
Greg Minshall
minshall at acm.org
Fri Nov 9 17:38:21 PST 2007
hi. i'm running the venerable:
----
FreeBSD gregtx 6.1-STABLE FreeBSD 6.1-STABLE #2: Tue Oct 31 09:50:20 PST 2006
minshall at gregtx:/usr/src/sys/i386/compile/GENERIC i386
----
i installed security/nss 3.11.1. the make was complaining about:
----
syntax error at -e line 3, near "while"
syntax error at -e line 7, near "}"
Execution of -e aborted due to compilation errors.
----
in most of the subdirectories. (but the make wasn't stopping, which i found
disturbing.)
i think i tracked it down to an attempt in work/mozilla/security/coreconf/rules
.mk to invoke perl on a multi-line command line (-e) supplied script
(continued in the makefile with \), which perl apparently doesn't always like
(fairly odd behavior on perl's part, imho).
anyway, i noticed a newer mozilla distribution does things in rules.mk
slightly different, and that seems to work. appended is a shar file.
(i'm still having some trouble with nss -- not being able to find
CMMF_CertRepContentGetCAPubs() and other such, even though they should be in
-lcrmf.)
cheers, Greg Minshall
----
----# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# security/nss/files/patch-..::coreconf::rules.mk
#
echo x - security/nss/files/patch-..::coreconf::rules.mk
sed 's/^X//' >security/nss/files/patch-..::coreconf::rules.mk <<
'END-of-security/nss/files/patch-..::coreconf::rules.mk'
X*** ../coreconf/rules.mk.orig Wed Apr 12 14:01:57 2006
X--- ../coreconf/rules.mk Fri Nov 9 17:01:02 2007
X***************
X*** 114,119 ****
X--- 114,120 ----
X endif
X ifdef SHARED_LIBRARY
X $(INSTALL) -m 775 $(SHARED_LIBRARY) $(SOURCE_LIB_DIR)
X+ ln -sf $(notdir $(SHARED_LIBRARY)) $(SOURCE_LIB_DIR)/$(notdir
$(SHARED_LIBRARY:.so.1=.so))
X endif
X ifdef IMPORT_LIBRARY
X $(INSTALL) -m 775 $(IMPORT_LIBRARY) $(SOURCE_LIB_DIR)
X***************
X*** 873,880 ****
X
X ifneq (,$(filter-out OpenVMS OS2 WIN%,$(OS_TARGET)))
X # Can't use sed because of its 4000-char line length limit, so resort to
perl
X! .DEFAULT:
X! @perl -e ' \
X open(MD, "< $(DEPENDENCIES)"); \
X while (<MD>) { \
X if (m@ \.*/*$< @) { \
X--- 874,880 ----
X
X ifneq (,$(filter-out OpenVMS OS2 WIN%,$(OS_TARGET)))
X # Can't use sed because of its 4000-char line length limit, so resort to
perl
X! PERL_DEPENDENCIES_PROGRAM =
\
X open(MD, "< $(DEPENDENCIES)"); \
X while (<MD>) { \
X if (m@ \.*/*$< @) { \
X***************
X*** 901,907 ****
X } elsif ("$<" ne "$(DEPENDENCIES)") { \
X print "$(MAKE): *** No rule to make target $<. Stop.\n"; \
X exit(1); \
X! }'
X endif
X
X ############################################################################
#
X--- 901,909 ----
X } elsif ("$<" ne "$(DEPENDENCIES)") { \
X print "$(MAKE): *** No rule to make target $<. Stop.\n"; \
X exit(1); \
X! }
X! .DEFAULT:
X! @perl -e '$(PERL_DEPENDENCIES_PROGRAM)'
X endif
X
X ############################################################################
#
END-of-security/nss/files/patch-..::coreconf::rules.mk
exit
More information about the freebsd-ports
mailing list