pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/48747: lang/scheme48 installation fails in sed
>Number: 48747
>Category: pkg
>Synopsis: lang/scheme48 installation fails in sed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 15 20:50:00 +0000 2014
>Originator: Stefan
>Release: Linux pkgsrc 2014Q1
>Organization:
>Environment:
>Description:
lang/scheme48 installation fails in sed
# bmake install
:
:
:
sed -e 's,@incdir\@,/usr/local/include,g'
\
-e 's,@libdir\@,/usr/local/lib,g' \
-e 's,@CC\@,gcc,g' \
-e 's,@LD\@,gcc,g' \
-e 's,@DYNAMIC_EXTERNALS_CFLAGS\@,-fPIC,g' \
-e 's,@DYNAMIC_EXTERNALS_LDFLAGS\@,-shared -L/usr/lib
-Wl,-R/usr/local/lib -rdynamic,g' \
< ./build/scheme48-config.in > $config_script && \
chmod +x $config_script
sed: -e expression #6, char 55: unknown option to `s'
make: *** [install-no-doc] Error 1
*** Error code 2
Stop.
The problem is the "," in the linker flags as it's already used by sed as
delimiter. The sed delimiter should be changed.
I have "GNU sed version 4.1.5". I also tried textproc/gsed which version 4.2.2
and it fails, too.
>How-To-Repeat:
bmake install
>Fix:
--- Makefile.in.orig 2014-04-15 13:40:07.000000000 -0700
+++ Makefile.in 2014-04-15 13:41:34.000000000 -0700
@@ -522,12 +522,12 @@
done
# install the scheme48-config script
config_script=$(DESTDIR)$(bindir)/$(CONFIG_SCRIPT) && \
- sed -e 's,@incdir\@,$(incdir),g' \
- -e 's,@libdir\@,$(libdir),g' \
- -e 's,@CC\@,$(CC),g' \
- -e 's,@LD\@,$(LD),g' \
- -e 's,@DYNAMIC_EXTERNALS_CFLAGS\@,$(DYNAMIC_EXTERNALS_CFLAGS),g' \
- -e 's,@DYNAMIC_EXTERNALS_LDFLAGS\@,$(DYNAMIC_EXTERNALS_LDFLAGS),g' \
+ sed -e 's=@incdir\@=$(incdir)=g' \
+ -e 's=@libdir\@=$(libdir)=g' \
+ -e 's=@CC\@=$(CC)=g' \
+ -e 's=@LD\@=$(LD)=g' \
+ -e 's=@DYNAMIC_EXTERNALS_CFLAGS\@=$(DYNAMIC_EXTERNALS_CFLAGS)=g' \
+ -e 's=@DYNAMIC_EXTERNALS_LDFLAGS\@=$(DYNAMIC_EXTERNALS_LDFLAGS)=g' \
< $(srcdir)/build/$(CONFIG_SCRIPT).in > $$config_script && \
chmod +x $$config_script
# install the external modules
Home |
Main Index |
Thread Index |
Old Index