NetBSD Problem Report #47797

From www@NetBSD.org  Sun May  5 20:46:57 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 86D4D63EC86
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  5 May 2013 20:46:57 +0000 (UTC)
Message-Id: <20130505204656.C4FB263EC86@www.NetBSD.org>
Date: Sun,  5 May 2013 20:46:56 +0000 (UTC)
From: szptvlfn@a-net.email.ne.jp
Reply-To: szptvlfn@a-net.email.ne.jp
To: gnats-bugs@NetBSD.org
Subject: lang/racket is missing libpng.so and also jpeg's one
X-Send-Pr-Version: www-1.0

>Number:         47797
>Category:       pkg
>Synopsis:       lang/racket is missing libpng.so and also jpeg's one
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    asau
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun May 05 20:50:00 +0000 2013
>Last-Modified:  Sun May 05 21:17:22 +0000 2013
>Originator:     Ryosuke Moro
>Release:        6.99.7
>Organization:
>Environment:
>Description:
-- first
ffi-lib: couldn't open "libpng.so" (Shared object "libpng.so" not found)
raco setup:   ffi-lib: couldn't open "libpng.so" (Shared object "libpng.so"
not found)
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/racket/work/racket-5.3.3/src
*** Error code 1
Stop.

-- second
raco setup:   jpeg: unsupported library version: 90
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/racket/work/racket-5.3.3/src
*** Error code 1

Stop.
>How-To-Repeat:
make install

>Fix:
Index: patches/patch-collects_racket_draw_unsafe_png.rkt
===================================================================
diff -u patch-collects_racket_draw_unsafe_png.rkt.orig patch-collects_racket_draw_unsafe_png.rkt
--- patch-collects_racket_draw_unsafe_png.rkt.orig	2012-08-08 19:07:04.000000000 +0900
+++ patch-collects_racket_draw_unsafe_png.rkt	2013-02-20 19:21:15.000000000 +0900
@@ -1,13 +1,15 @@
-$NetBSD: patch-collects_racket_draw_unsafe_png.rkt,v 1.2 2012/08/08 06:55:32 asau Exp $
+$NetBSD$

---- collects/racket/draw/unsafe/png.rkt.orig	2012-06-02 05:21:31.000000000 +0000
+Changes to Libpng from version 1.5.x to 1.6.x
+
+--- collects/racket/draw/unsafe/png.rkt.orig	2013-02-13 22:46:41.000000000 +0000
 +++ collects/racket/draw/unsafe/png.rkt
 @@ -10,7 +10,7 @@
    [(unix)
     ;; Most Linux distros supply "libpng12", while other Unix
     ;; variants often have just "libpng", etc.
 -   (ffi-lib "libpng15" '("15" "")
-+   (ffi-lib "libpng15" '("15" "0" "")
++   (ffi-lib "libpng16" '("16" "")
  	    #:fail (lambda ()
  		     (ffi-lib "libpng12" '("0" "")
  			      #:fail (lambda ()
Index: patches/patch-collects_racket_draw_unsafe_jpeg.rkt
===================================================================
diff -Nu /dev/null patch-collects_racket_draw_unsafe_jpeg.rkt
--- /dev/null	2013-05-06 04:52:02.000000000 +0900
+++ patch-collects_racket_draw_unsafe_jpeg.rkt	2013-02-20 20:03:40.000000000 +0900
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- collects/racket/draw/unsafe/jpeg.rkt.orig	2013-02-13 22:46:41.000000000 +0000
++++ collects/racket/draw/unsafe/jpeg.rkt
+@@ -96,7 +96,7 @@
+               (string->number (cadr m))
+               "unknown"))))))
+ 
+-(unless (member JPEG_LIB_VERSION '(62 64 70 80))
++(unless (member JPEG_LIB_VERSION '(62 64 70 80 90))
+   (error 'jpeg "unsupported library version: ~e" JPEG_LIB_VERSION))
+ 
+ (define-syntax-rule (cstruct-type/version elem ...)

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->asau
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 05 May 2013 21:17:22 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.