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

correct AC_CHECK_PROG call in spkg-configure for bzip2 #28956

Closed
dimpase opened this issue Jan 6, 2020 · 12 comments
Closed

correct AC_CHECK_PROG call in spkg-configure for bzip2 #28956

dimpase opened this issue Jan 6, 2020 · 12 comments

Comments

@dimpase
Copy link
Member

dimpase commented Jan 6, 2020

as noticed in #27182 comment:12
it is incorrect, and always fails

configure:10531: checking for break
configure:10561: result: no

As the fail action is noop, it "works", always.

CC: @orlitzky

Component: build: configure

Author: Dima Pasechnik

Branch/Commit: 03ded4b

Reviewer: Erik Bray, Michael Orlitzky

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

@dimpase dimpase added this to the sage-9.1 milestone Jan 6, 2020
@dimpase
Copy link
Member Author

dimpase commented Jan 6, 2020

Branch: u/dimpase/packages/bz2fix

@dimpase
Copy link
Member Author

dimpase commented Jan 6, 2020

Author: Dima Pasechnik

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 6, 2020

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

6b64d68correct AC_CHECK/PATH_PROG call, refactor

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 6, 2020

Commit: 6b64d68

@embray
Copy link
Contributor

embray commented Jan 6, 2020

Reviewer: Erik Bray

@orlitzky
Copy link
Contributor

orlitzky commented Jan 6, 2020

Changed reviewer from Erik Bray to Erik Bray, Michael Orlitzky

@orlitzky
Copy link
Contributor

orlitzky commented Jan 6, 2020

comment:5

I still think this is funky. If I rename my /bin/bzip2 program, the test succeeds:

$ sudo mv /bin/bzip2 /bin/bzip2.bak
$ ./configure
...
configure: === checking whether to install the bzip2 SPKG ===
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for library containing BZ2_bzCompress... -lbz2
checking for bzip2... sage_spkg_install_bzip2=yes
...
    bzip2-1.0.6-20150304.p0 will not be installed (configure check)

The value of the bzip2prog variable is being set to the string sage_spkg_install_bzip2=yes but that snippet is never actually executed.

@dimpase
Copy link
Member Author

dimpase commented Jan 6, 2020

comment:6

oops. I forgot that the semantic of these macros is different, they don't specify actions.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 7, 2020

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

03ded4badd forgotten test (arrgh!)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 7, 2020

Changed commit from 6b64d68 to 03ded4b

@orlitzky
Copy link
Contributor

orlitzky commented Jan 7, 2020

comment:9

I think we have a winner.

@vbraun
Copy link
Member

vbraun commented Jan 11, 2020

Changed branch from u/dimpase/packages/bz2fix to 03ded4b

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