Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622274 - dev-libs/expat-2.2.1: compilation fails when CONFIG_SHELL is not bash
Summary: dev-libs/expat-2.2.1: compilation fails when CONFIG_SHELL is not bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash 622296
  Show dependency tree
 
Reported: 2017-06-20 06:43 UTC by Fabian Groffen
Modified: 2022-08-27 18:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2017-06-20 06:43:11 UTC
configure:

checking for an ANSI C99-conforming __func__... yes
/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/configure: 16992: test: x: unexpected operator
configure: creating ./config.status
config.status: creating Makefile

make:

libtool: compile:  x86_64-pc-solaris2.11-gcc -I/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib -I. -O2 -pipe -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -DHAVE_EXPAT_CONFIG_H -c /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlrole.c  -fPIC -DPIC -o lib/.libs/xmlrole.o
/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c: In function ‘XML_GetBuffer’:
/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c:1973:33: error: expected expression before ‘)’ token
     if (keep > XML_CONTEXT_BYTES)
                                 ^
/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c:2013:37: error: expected expression before ‘)’ token
         if (keep > XML_CONTEXT_BYTES)
                                     ^
/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c: At top level:
/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c:710:1: warning: ‘writeRandomBytes_getrandom’ defined but not used [-Wunused-function]
 writeRandomBytes_getrandom(void * target, size_t count) {
 ^
libtool: compile:  x86_64-pc-solaris2.11-gcc -I/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib -I. -O2 -pipe -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -DHAVE_EXPAT_CONFIG_H -c /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmltok.c  -fPIC -DPIC -o lib/.libs/xmltok.o
make: *** [Makefile:208: lib/xmlparse.lo] Error 1
make: *** Waiting for unfinished jobs....

Running emerge with CONFIG_SHELL=`which bash` makes it compile fine.  I have this problem on multiple Gentoo Linux machines, using dash as CONFIG_SHELL.
Comment 1 Sebastian Pipping gentoo-dev 2017-06-20 18:29:07 UTC
I hope this is it.  Else, please re-open.


commit 723ffbdf98c2d72dd9a2747c9abe9aa23c46e3ec
Author: Sebastian Pipping <sping@g.o>
Date:   Tue Jun 20 20:17:49 2017 +0200

    dev-libs/expat: Fix compilation (bug #622274)
    
    https://github.com/libexpat/libexpat/pull/49
    https://github.com/libexpat/libexpat/issues/50
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-libs/expat/expat-2.2.1.ebuild                  |  9 +++++++-
 .../files/expat-2.2.1-getrandom-detection.patch    | 24 ++++++++++++++++++++
 dev-libs/expat/files/expat-2.2.1-posix-shell.patch | 26 ++++++++++++++++++++++
 3 files changed, 58 insertions(+), 1 deletion(-)

https://github.com/gentoo/gentoo/commit/723ffbdf98c2d72dd9a2747c9abe9aa23c46e3ec
Comment 2 Alexander Tsoy 2017-06-21 13:07:27 UTC
Interesting.. It's now fails to compile with dash as /bin/sh
bug 622360
Comment 3 Fabian Groffen gentoo-dev 2017-06-21 13:16:35 UTC
hmm, this afternoon CONFIG_SHELL=/path/to/dash worked fine.