unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Herbert J. Skuhra" <h.skuhra@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 11797@debbugs.gnu.org
Subject: bug#11797: trunk does not build on NetBSD
Date: Thu, 28 Jun 2012 12:18:14 +0200	[thread overview]
Message-ID: <CADfJ1PZb39AdqyrJTXOLmywhK0+QOGzxQYHkHOsGSu2dnM5OEA@mail.gmail.com> (raw)
In-Reply-To: <cpzk7oz4fv.fsf@fencepost.gnu.org>

On Thu, Jun 28, 2012 at 2:05 AM, Glenn Morris <rgm@gnu.org> wrote:
> "Herbert J. Skuhra" wrote:
>
>> 1. I have to modify the configure script so that it checks for -lpng15
>> instead of -lpng
>
> Not the main part of your report of course, but really?
> There's no "libpng" on NetBSD, only "libpng15"?

I've built png from pkgsrc and I have only:

/usr/pkg/lib/libpng15.la
/usr/pkg/lib/libpng15.a
/usr/pkg/lib/libpng15.so
/usr/pkg/lib/libpng15.so.15
/usr/pkg/lib/libpng15.so.15.11.0

> Isn't that a PITA for compiling a bunch of software, not just Emacs?

Yes, when the software does not use pkg-config or libpng-confg to
detect libpng.

> You aren't just missing the equivalent of a "libpng-devel" package that
> provides the unversioned .so?

pkgsrc has a workaround for software that does not use pkg-config or
libpng-config.

Excerpt from /usr/pkgsrc/graphics/png/buildlink3.mk:

# Some software directly tries to link against -lpng instead of
# using pkg-config or libpng-config to find the proper arguments
# instead of installing symlinks. Work around this with buildlink
# magic: packages outside pkgsrc will need to be converted to
# one of the proper methods or fail.
BUILDLINK_TRANSFORM+=   l:png:png15





  reply	other threads:[~2012-06-28 10:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27  9:44 bug#11797: trunk does not build on NetBSD Herbert J. Skuhra
2012-06-28  0:05 ` Glenn Morris
2012-06-28 10:18   ` Herbert J. Skuhra [this message]
2012-06-28 17:29     ` Glenn Morris
2012-07-07  2:35 ` Paul Eggert
2012-07-07  9:14 ` Han Boetes
2012-07-13  1:27 ` bug#11797: fixed in trunk Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADfJ1PZb39AdqyrJTXOLmywhK0+QOGzxQYHkHOsGSu2dnM5OEA@mail.gmail.com \
    --to=h.skuhra@gmail.com \
    --cc=11797@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).