pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/53746: pkgsrc/devel/SDL2 on NetBSD/arm 8.0 causes undefinedreference
The following reply was made to PR pkg/53746; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: pkg/53746: pkgsrc/devel/SDL2 on NetBSD/arm 8.0 causes undefinedreference
Date: Sat, 1 Dec 2018 21:34:26 +0900
> It looks upstream of raspberrypi-userland has an issue and
> (rejected) pull request for the vchostif lib:
>
> https://github.com/raspberrypi/firmware/issues/149
> https://github.com/raspberrypi/userland/pull/304
The following patch (build libvchostif.so instead of libvchostif.a)
solves the problem:
https://gist.github.com/tsutsui/1f6f35610c0d7a51e475a3053c20b879
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/misc/raspberrypi-userland/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- PLIST 1 Nov 2016 16:45:27 -0000 1.4
+++ PLIST 1 Dec 2018 11:48:53 -0000
@@ -243,7 +243,7 @@ lib/libmmal_vc_client.so
lib/libopenmaxil.so
lib/libvcfiled_check.a
lib/libvchiq_arm.so
-lib/libvchostif.a
+lib/libvchostif.so
lib/libvcilcs.a
lib/libvcos.so
lib/libvcsm.so
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/misc/raspberrypi-userland/distinfo,v
retrieving revision 1.9
diff -u -p -r1.9 distinfo
--- distinfo 16 Apr 2017 19:25:25 -0000 1.9
+++ distinfo 1 Dec 2018 11:48:53 -0000
@@ -9,4 +9,5 @@ SHA1 (patch-host__applications_linux_app
SHA1 (patch-host__applications_linux_apps_tvservice_tvservice.c) = 2cc304252c102d46603f6649eb959984e9d44b1f
SHA1 (patch-interface_vchiq__arm_vchiq__lib.c) = a9535aa96ba3374f2a559899c6baff9ddc935f3f
SHA1 (patch-interface_vcos_CMakeLists.txt) = f96c052af9c1d10f3f386efc1b5d0006559e4e67
+SHA1 (patch-interface_vmcs__host_CMakeLists.txt) = 39640e8a443fb966a1d40e0d8ccfa3a6aa510814
SHA1 (patch-interface_vmcs__host_linux_vcfiled_CMakeLists.txt) = 29694762b02a75749300ebfb4fe78464f2ac20ff
--- /dev/null 2018-12-01 19:36:39.062391837 +0900
+++ patches/patch-interface_vmcs__host_CMakeLists.txt 2018-12-01 14:44:24.414015257 +0900
@@ -0,0 +1,16 @@
+$NetBSD$
+
+- build libvchostif as shared lib to avoid undefined references
+ on linking libEGL.so
+
+--- interface/vmcs_host/CMakeLists.txt.orig 2017-01-07 08:24:37.000000000 +0000
++++ interface/vmcs_host/CMakeLists.txt
+@@ -9,7 +9,7 @@ add_definitions(-fno-strict-aliasing)
+
+ include_directories(${VMCS_TARGET}/vcfiled)
+
+-add_library(vchostif
++add_library(vchostif SHARED
+ ${VMCS_TARGET}/vcfilesys.c ${VMCS_TARGET}/vcmisc.c
+ vc_vchi_gencmd.c vc_vchi_filesys.c
+ vc_vchi_tvservice.c vc_vchi_cecservice.c
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index