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

Fix build issue with libpng #25818

Closed
embray opened this issue Jul 10, 2018 · 14 comments
Closed

Fix build issue with libpng #25818

embray opened this issue Jul 10, 2018 · 14 comments

Comments

@embray
Copy link
Contributor

embray commented Jul 10, 2018

I just noticed this small bug in the DESTDIR build support for libpng. This might explain why I and others sometimes have build problems surrounding libpng.

This symlink should get deleted before it's installed in $SAGE_LOCAL. Otherwise it takes a re-installation of libpng in order to force the symlink to be removed.

Upstream: Fixed upstream, but not in a stable release.

Component: packages: standard

Author: Erik Bray

Branch/Commit: afb74b9

Reviewer: Julian Rüth

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

@embray embray added this to the sage-8.3 milestone Jul 10, 2018
@embray
Copy link
Contributor Author

embray commented Jul 10, 2018

comment:2

Fixing this (and in some cases also not fixing it) seems to break giac, which is linking with -lpng instead of -lpng16.

That would explain some of the spurious patchbot build failures I've been seeing.

@embray
Copy link
Contributor Author

embray commented Jul 10, 2018

comment:3

Hmm, it seems we need to patch giac.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 10, 2018

Changed commit from 5e10555 to afb74b9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 10, 2018

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

afb74b9patch giac's configure script to ensure it uses -lpng16 where available

@embray
Copy link
Contributor Author

embray commented Jul 10, 2018

comment:5

Adds a patch to giac to ensure that it links against -lpng16 when available, rather than -lpng.

Amusingly, almost the correct incantation, albeit a bit misspelled, was already in its configure.in but commented out.

@embray
Copy link
Contributor Author

embray commented Jul 10, 2018

Upstream: Not yet reported upstream; Will do shortly.

@embray
Copy link
Contributor Author

embray commented Jul 11, 2018

comment:7

I e-mailed the upstream patch to Bernard Parisse.

@embray
Copy link
Contributor Author

embray commented Jul 11, 2018

Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. No feedback yet.

@embray
Copy link
Contributor Author

embray commented Jul 11, 2018

comment:8

I guess?

Hi,

Thanks for the patch, it will be included in the next releases.

@embray
Copy link
Contributor Author

embray commented Jul 11, 2018

Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release.

@saraedum
Copy link
Member

Reviewer: Julian Rüth

@embray
Copy link
Contributor Author

embray commented Jul 17, 2018

comment:10

Several patchbots appear to be in some kind of broken state. I don't think it's due to this ticket; rather their owners should probably reset them.

@embray
Copy link
Contributor Author

embray commented Jul 18, 2018

comment:11

I believe this issue can reasonably be addressed for Sage 8.4.

@embray embray modified the milestones: sage-8.3, sage-8.4 Jul 18, 2018
@vbraun
Copy link
Member

vbraun commented Aug 5, 2018

Changed branch from u/embray/build/libpng/symlinks to afb74b9

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

3 participants