pkgsrc-Bugs archive

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

pkg/56497: emacs 27 fails to build on Solaris 10 (autogen.sh shell)



>Number:         56497
>Category:       pkg
>Synopsis:       emacs 27 fails to build on Solaris 10 (autogen.sh shell)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 13 17:15:00 +0000 2021
>Originator:     Claes Nästén
>Release:        trunk 2021-11-02
>Organization:
>Environment:
SunOS 5.10 i86pc i386 i86pc
>Description:
Build of emacs27 fails when it tries to issue autogen.sh with the following error:

find . '(' -name '*.log' -o -name '*.log~' ')' -exec rm -f {} ';'
rm -f data/emacs-module/*.o data/emacs-module/*.so \
  data/emacs-module/*.dll
find . -name '*.elc' -exec rm -f {} ';'
gmake[1]: Leaving directory '/usr/pkgsrc/editors/emacs27/work/emacs-27.2/test'
[ ! -f config.log ] || mv -f config.log config.log~
rm -rf ./info
rm -f ./etc/refcards/emacsver.tex
rm -f config.cache config.log ./doc/man/emacs.1
cd . && ./autogen.sh autoconf
./autogen.sh: syntax error at line 118: `;' unexpected
gmake: *** [Makefile:1117: bootstrap] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /usr/pkgsrc/editors/emacs27
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/editors/emacs27

>How-To-Repeat:
Build editors/emacs27
>Fix:
--- editors/emacs27/Makefile.common.orig        Fri Nov 12 13:07:41 2021
+++ editors/emacs27/Makefile.common     Fri Nov 12 13:17:42 2021
@@ -66,6 +66,10 @@
        ${AR} q ${BUILDLINK_DIR}/lib/libgcc.a
 .endif
 
+.if ${OPSYS} == "SunOS" && ${OS_VARIANT} == "Solaris"
+REPLACE_SH+=    autogen.sh
+.endif
+
 .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h)
 CPPFLAGS+=     -DTERMINFO
 .elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"


Home | Main Index | Thread Index | Old Index