Skip to contentSkip to conversation

package/gstreamer/gst-plugins-base: Fix build on x86 if emmintrin.h is available but can't be used

PATCH New Bernd Kuhls 3 participants 3 messages Jan 30, 2016 – Feb 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/gstreamer/gst-plugins-base: Fix build on x86 if emmintrin.h is available but can't be used

I stumbled across this error using a musl-based allyesconfig but I doubt it is related to musl. The autobuilders did not catch this problem yet but the patch I found fits my config (BR2_i386=y, BR2_x86_i586=y) and it solved the problem right away.

---
v2: used GST_PLUGINS_BASE_PATCH instead of including the patch file
(Thomas)

 package/gstreamer/gst-plugins-base/gst-plugins-base.hash | 2 ++
 package/gstreamer/gst-plugins-base/gst-plugins-base.mk   | 2 ++
 2 files changed, 4 insertions(+)
package/gstreamer/gst-plugins-base/gst-plugins-base.hash +2 -0
index 77eba71..7c691f3 100644
@@ -1,2 +1,4 @@
 # From http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-0.10.36.tar.xz.md5
 md5	3d2337841b132fe996e5eb2396ac9438	gst-plugins-base-0.10.36.tar.xz
+# Locally computed
+sha256	2c509252f103847a85c4a64d1d4519ab521d8f0021400cc7ebcf725fc5584a0d	sse.patch
package/gstreamer/gst-plugins-base/gst-plugins-base.mk +2 -0
index e1374ed..902ee05 100644
@@ -7,6 +7,8 @@
 GST_PLUGINS_BASE_VERSION = 0.10.36
 GST_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST_PLUGINS_BASE_VERSION).tar.xz
 GST_PLUGINS_BASE_SITE = http://gstreamer.freedesktop.org/src/gst-plugins-base
+GST_PLUGINS_BASE_PATCH = \
+	http://git.alpinelinux.org/cgit/aports/plain/main/gst-plugins-base0.10/sse.patch
 GST_PLUGINS_BASE_INSTALL_STAGING = YES
 GST_PLUGINS_BASE_LICENSE = GPLv2+, LGPLv2+
 GST_PLUGINS_BASE_LICENSE_FILES = COPYING COPYING.LIB
Signature · 1 line
2.7.0.rc3
#1 lore raw

PATCH v2 1/1 package/gstreamer/gst-plugins-base: Fix build on x86 if emmintrin.h is available but can't be used

Quoted 30 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

I stumbled across this error using a musl-based allyesconfig but I doubt it is related to musl. The autobuilders did not catch this problem yet but the patch I found fits my config (BR2_i386=y, BR2_x86_i586=y) and it solved the problem right away.

---
v2: used GST_PLUGINS_BASE_PATCH instead of including the patch file
(Thomas)

 package/gstreamer/gst-plugins-base/gst-plugins-base.hash | 2 ++
 package/gstreamer/gst-plugins-base/gst-plugins-base.mk   | 2 ++
 2 files changed, 4 insertions(+)
package/gstreamer/gst-plugins-base/gst-plugins-base.hash +2 -0
index 77eba71..7c691f3 100644
@@ -1,2 +1,4 @@
 # From http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-0.10.36.tar.xz.md5
 md5	3d2337841b132fe996e5eb2396ac9438	gst-plugins-base-0.10.36.tar.xz
+# Locally computed
+sha256	2c509252f103847a85c4a64d1d4519ab521d8f0021400cc7ebcf725fc5584a0d	sse.patch
package/gstreamer/gst-plugins-base/gst-plugins-base.mk +0 -0
index e1374ed..902ee05 100644

package/gstreamer/gst-plugins-base/gst-plugins-base.mk line 11

Quoted 5 lines
package/gstreamer/gst-plugins-base/gst-plugins-base.mk +2 -0
@@ -7,6 +7,8 @@
 GST_PLUGINS_BASE_VERSION = 0.10.36
 GST_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST_PLUGINS_BASE_VERSION).tar.xz
 GST_PLUGINS_BASE_SITE = http://gstreamer.freedesktop.org/src/gst-plugins-base
+GST_PLUGINS_BASE_PATCH = \
+	http://git.alpinelinux.org/cgit/aports/plain/main/gst-plugins-base0.10/sse.patch

Thanks, but I'm not too happy about these git.alphinelinux.org downloads as:

- We have no guarantees that the URL stays valid (E.G. doesn't specify any git version).

- The filename is very generic (sse.patch), so we end up with that on sources.buildroot.net and basically have to keep it "forever".

As these patches are very small and already in upstream git I have instead picked them (it turned out the alphinelinux patch was a squash of two commits) from the upstream git repo and added them in buildroot.

Committed with that fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH v2 1/1 package/gstreamer/gst-plugins-base: Fix build on x86 if emmintrin.h is available but can't be used

Quoted 1 line · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

[snip]

Quoted 19 lines

Review

Quoted 1 line
(quoted diff) +0 -0

b/package/gstreamer/gst-plugins-base/gst-plugins-base.mk

package/gstreamer/gst-plugins-base/gst-plugins-base.mk line 11

Quoted 9 lines

index e1374ed..902ee05 100644

package/gstreamer/gst-plugins-base/gst-plugins-base.mk +2 -0
@@ -7,6 +7,8 @@
 GST_PLUGINS_BASE_VERSION = 0.10.36
 GST_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST_PLUGINS_BASE_VERSION).tar.xz
 GST_PLUGINS_BASE_SITE = http://gstreamer.freedesktop.org/src/gst-plugins-base
+GST_PLUGINS_BASE_PATCH = \
+  

http://git.alpinelinux.org/cgit/aports/plain/main/gst-plugins-base0.10/sse.patch

Thanks, but I'm not too happy about these git.alphinelinux.org downloads as:

- We have no guarantees that the URL stays valid (E.G. doesn't specify any git version).

Quoted 6 lines

- The filename is very generic (sse.patch), so we end up with that on sources.buildroot.net and basically have to keep it "forever".

As these patches are very small and already in upstream git I have instead picked them (it turned out the alphinelinux patch was a squash of two commits) from the upstream git repo and added them in buildroot.

Hi Bernd,

I told you earlier that we prefer to download patches rather than include them
in Buildroot, but I was wrong about that, sorry. It seems we (= Peter :-) only prefer to download patches when they're really large.

Again, sorry for misinforming you.

Regards,
Arnout

Quoted 3 lines

Committed with that fixed, thanks.

Signature · 6 lines
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF