[MacPorts] #51345: vlc @2.2.2_4 Compile error
MacPorts
noreply at macports.org
Tue May 10 09:40:42 PDT 2016
#51345: vlc @2.2.2_4 Compile error
--------------------------+--------------------------------
Reporter: dietervdw@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: VLC |
--------------------------+--------------------------------
Comment (by rjvbertin@…):
Here's a patch to apply in `port dir VLC`, hopefully it'll make the build
succeed:
{{{
diff --git a/multimedia/VLC/Portfile b/multimedia/VLC/Portfile
index 8e67a2e..1899dcf 100644
--- a/multimedia/VLC/Portfile
+++ b/multimedia/VLC/Portfile
@@ -184,7 +184,9 @@ if {(${subport} eq ${name}) || (${subport} eq
"lib${name}")} {
depends_lib-append port:lua52
# depends_lib-append port:lua
- compiler.blacklist gcc-4.2 llvm-gcc-4.2 {clang < 300}
+ # VLC doesn't currently build for me using port:clang-3.8
+ compiler.blacklist-append \
+ gcc-4.2 llvm-gcc-4.2 macports-clang-3.8 {clang <
300}
patchfiles buildfix-package.mak.patch \
configure.ac-no-arch.patch \
@@ -203,6 +205,9 @@ if {(${subport} eq ${name}) || (${subport} eq
"lib${name}")} {
${worksrcpath}/modules/access/Makefile.am
}
}
+ post-configure {
+ system -W ${worksrcpath} "patch -Np0 -i ${filespath}/patch-
static_assert.diff"
+ }
use_autoreconf yes
autoreconf.cmd ./bootstrap
diff --git a/multimedia/VLC/files/patch-static_assert.diff
b/multimedia/VLC/files/patch-static_assert.diff
new file mode 100644
index 0000000..f00a7df
--- /dev/null
+++ b/multimedia/VLC/files/patch-static_assert.diff
@@ -0,0 +1,11 @@
+--- config.h.orig 2016-03-22 15:34:33.000000000 +0000
++++ config.h 2016-03-22 15:34:57.000000000 +0000
+@@ -793,6 +793,7 @@
+ /* Define to `int' if <stddef.h> does not define. */
+ /* #undef ssize_t */
+
++#define static_assert _Static_assert
+ #include <vlc_fixups.h>
+
+
+
}}}
--
Ticket URL: <https://trac.macports.org/ticket/51345#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list