Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spkg-configure.m4 for bzip2 #27182

Closed
embray opened this issue Jan 31, 2019 · 15 comments
Closed

spkg-configure.m4 for bzip2 #27182

embray opened this issue Jan 31, 2019 · 15 comments

Comments

@embray
Copy link
Contributor

embray commented Jan 31, 2019

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

@embray embray added this to the sage-8.7 milestone Jan 31, 2019
@embray
Copy link
Contributor Author

embray commented Jan 31, 2019

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.

@embray
Copy link
Contributor Author

embray commented Jan 31, 2019

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.

@embray
Copy link
Contributor Author

embray commented Jan 31, 2019

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.

@dimpase
Copy link
Member

dimpase commented Jan 31, 2019

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?

@dimpase
Copy link
Member

dimpase commented Jan 31, 2019

@embray
Copy link
Contributor Author

embray commented Jan 31, 2019

comment:6

Lol. Must be a forgotten git add.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 31, 2019

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

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

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 31, 2019

Changed commit from 0cb4942 to 4ec5dc0

@dimpase
Copy link
Member

dimpase commented Feb 4, 2019

comment:8

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

@dimpase
Copy link
Member

dimpase commented Feb 4, 2019

Reviewer: Dima Pasechnik

@vbraun
Copy link
Member

vbraun commented Feb 5, 2019

Changed branch from u/embray/build/bzip2-spkg-configure to 4ec5dc0

@dimpase
Copy link
Member

dimpase commented Feb 12, 2019

Changed commit from 4ec5dc0 to none

@orlitzky
Copy link
Contributor

orlitzky commented Jan 6, 2020

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])
])

@dimpase
Copy link
Member

dimpase commented Jan 6, 2020

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.

@dimpase
Copy link
Member

dimpase commented Jan 6, 2020

comment:14

I've opened #28956 to deal with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants