pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/42235: [PATCH] add DragonFly support back to mplayer&co.



>Number:         42235
>Category:       pkg
>Synopsis:       [PATCH] add DragonFly support back to mplayer&co.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 26 12:10:00 +0000 2009
>Originator:     Rumko
>Release:        /
>Organization:
>Environment:
DragonFly rumko.rumko.net 2.5.1-DEVELOPMENT DragonFly 
v2.5.1.125.gc25f3d-DEVELOPMENT #25: Sat Oct 24 19:38:35 CEST 2009     
root%rumko.rumko.net@localhost:/usr/obj/usr/src/sys/MYPRECIOUS  i386
>Description:
After the latest update of mplayer&co., trying to build it on DragonFly dies 
with:
libdvdread4/bswap.h:100:2: error: #error "You need to add endian swap macros 
for you're system"

The attached fix, fixes this problem and makes mplayer&co. compile on DragonFly 
again.
>How-To-Repeat:

>Fix:
diff --git a/multimedia/mplayer-share/distinfo 
b/multimedia/mplayer-share/distinfo
index 08d85ff..de7b547 100644
--- a/multimedia/mplayer-share/distinfo
+++ b/multimedia/mplayer-share/distinfo
@@ -4,6 +4,7 @@ SHA1 (mplayer/mplayer-20091017.tar.bz2) = 
8ee97842812b9867f192f521b96bb1b6e1742a
 RMD160 (mplayer/mplayer-20091017.tar.bz2) = 
015d3847b05f4d674d4740e55f117ce6085d5cc3
 Size (mplayer/mplayer-20091017.tar.bz2) = 8525942 bytes
 SHA1 (patch-aa) = 24007024e4b6bfa212817681e8d07cc079aee13b
+SHA1 (patch-ab) = 78229dc4df4ce55ae5ee4e56177eb16d93526141
 SHA1 (patch-ac) = 13ea17bcdde5ebc7e04eeb5eb833dca0cd623ba2
 SHA1 (patch-ad) = 0a43a47538f0f18f8b6aa230367821b8bb51e932
 SHA1 (patch-ae) = 5a1f1d9f6480fb67a2a12d9088990ed546e1b1e4
diff --git a/multimedia/mplayer-share/patches/patch-ab 
b/multimedia/mplayer-share/patches/patch-ab
new file mode 100644
index 0000000..fdc149a
--- /dev/null
+++ b/multimedia/mplayer-share/patches/patch-ab
@@ -0,0 +1,15 @@
+--- libdvdread4/bswap.h.orig   2009-10-26 11:55:21 +0100
++++ libdvdread4/bswap.h        2009-10-26 11:57:32 +0100
+@@ -73,6 +73,12 @@
+  * functionality!
+  */
+
++#elif defined(__DragonFly__)
++#include <sys/endian.h>
++#define B2N_16(x) x = be16toh(x)
++#define B2N_32(x) x = be32toh(x)
++#define B2N_64(x) x = be64toh(x)
++
+ #elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || 
defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__)
+ #define B2N_16(x)                             \
+  x = ((((x) & 0xff00) >> 8) |                 \



Home | Main Index | Thread Index | Old Index