sagemath/sage

spkg-configure.m4 for bzip2

embray opened this issue · 15 comments

Spun off from #27168.

Component: packages: standard

Author: Erik Bray, Dima Pasechnik

Branch: 4ec5dc0

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/27182

comment:1

This also reminds me, we probably should add a section in the installation docs (especially for Linux) listing optional -devel packages that should be installed in order to take advantage of supported system packages where possible.

comment:2

For testing tickets like this it's best to start from a fresh install, since otherwise I think, even if the ./configure script now detects your system's bzip2, it's not like it will uninstall the package already installed spkg.

comment:3

Tested a fresh build and ptestlong with my system's bzip2 (also 1.0.6). Actually, I think this software's creator has stopped maintaining it. There was some discussion about that a bit ago on the Cygwin mailing list IIRC.

comment:4

the branch does not seem to contain spkg-configure.m4 :-)
(at least using the trac view)

No, it's just not there. Forgotten commit?

comment:6

Lol. Must be a forgotten git add.

Branch pushed to git repo; I updated commit sha1. New commits:

4ec5dc0Trac #27182: add configure-time detection of the system's libbz2

Changed commit from 0cb4942 to 4ec5dc0

comment:8

looks good to me. See #27212 for ditto for GMP, by the way.

Reviewer: Dima Pasechnik

Changed commit from 4ec5dc0 to none

comment:12

Sanity check: does that last AC_CHECK_PROG really do what it's supposed to?

SAGE_SPKG_CONFIGURE([bzip2], [
    AC_CHECK_HEADER(bzlib.h, [], [sage_spkg_install_bzip2=yes])
    AC_SEARCH_LIBS([BZ2_bzCompress], [bz2], [], [sage_spkg_install_bzip2=yes])
    AC_CHECK_PROG(bzip2, [break], [sage_spkg_install_bzip2=yes])
])
comment:13

Replying to @orlitzky:

Sanity check: does that last AC_CHECK_PROG really do what it's supposed to?

SAGE_SPKG_CONFIGURE([bzip2], [
    AC_CHECK_HEADER(bzlib.h, [], [sage_spkg_install_bzip2=yes])
    AC_SEARCH_LIBS([BZ2_bzCompress], [bz2], [], [sage_spkg_install_bzip2=yes])
    AC_CHECK_PROG(bzip2, [break], [sage_spkg_install_bzip2=yes])
])

hmm, no. It should be AC_PATH_PROG([BZIP2], [bzip2], [sage_spkg_install_bzip2=yes])

  • the test as specified always passes.
comment:14

I've opened #28956 to deal with it.