While trying to compile hdf5 with c++ support (cxx USE flag) I noticed that the
parameters were being incorrectly passed to the configure script giving the
following error:
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --prefix=/usr --enable-zlib --enable-fortran
--disable-parallel --with-ssl --enable-linux-lfs --sysconfdir=/etc
--infodir=/usr/share/info --libdir=/usr/lib --mandir=/usr/share/man
--enable-shared --with-pic --enable-cxx --with-pthread --enable-threadsafe
--enable-production --build=i686-pc-linux-gnu
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: --enable-cxx --with-pthread
--enable-threadsafe --enable-production
I changed sci-libs/hdf5-1.6.6.ebuild:144 from
"${myconf}" || die "configure failed"
to
${myconf} || die "configure failed"
and now it compiles successfully.
Reproducible: Always
Steps to Reproduce:
1. emerge sci-libs/hdf5
2.
3.
Actual Results:
c++ support not compiled/installed.
Expected Results:
It should have compiled support for c++ and installed the headers, examples,
etc.