All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] mpv: bump to version 0.19.0
@ 2016-08-20 14:42 Gustavo Zacarias
  2016-08-20 20:39 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Gustavo Zacarias @ 2016-08-20 14:42 UTC (permalink / raw)
  To: buildroot

And drop upstreamed patch.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 .../mpv/0002-wscript-improve-stdatomic-check.patch | 47 ----------------------
 package/mpv/mpv.hash                               |  2 +-
 package/mpv/mpv.mk                                 |  2 +-
 3 files changed, 2 insertions(+), 49 deletions(-)
 delete mode 100644 package/mpv/0002-wscript-improve-stdatomic-check.patch

diff --git a/package/mpv/0002-wscript-improve-stdatomic-check.patch b/package/mpv/0002-wscript-improve-stdatomic-check.patch
deleted file mode 100644
index c2a307e..0000000
--- a/package/mpv/0002-wscript-improve-stdatomic-check.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 5a635a0066b10d2ba25e0ce78cc57b2be619371c Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-Date: Mon, 8 Aug 2016 23:34:32 +0200
-Subject: [PATCH] wscript: improve stdatomic check
-
-The current stdatomic check verifies the availability of the function by
-calling atomic_load(). It also uses this test to check if linking
-against libatomic is needed or not.
-
-Unfortunately, on specific architectures (namely SPARC), using
-atomic_load() does *not* require linking against libatomic, while other
-atomic operations do. Due to this, mpv's wscript concludes that
-stdatomic is available, and that linking against libatomic is not
-needed, causing the following link failure:
-
-[190/190] Linking build/mpv
-audio/out/ao.c.13.o: In function `ao_query_and_reset_events':
-/home/peko/autobuild/instance-0/output/build/mpv-0.18.1/build/../audio/out/ao.c:399: undefined reference to `__atomic_fetch_and_4'
-
-In order to fix this, the stdatomic check is adjusted to call
-atomic_fetch_add() instead, which does require libatomic. Thanks to
-this, the wscript realizes that linking against libatomic is needed, and
-the build works fine.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
-Submitted upstream: https://github.com/mpv-player/mpv/pull/3403
-
- wscript | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/wscript b/wscript
-index a18df6f..4c49caf 100644
---- a/wscript
-+++ b/wscript
-@@ -154,7 +154,7 @@ main_dependencies = [
-         'func': check_libs(['atomic'],
-             check_statement('stdatomic.h',
-                 'atomic_int_least64_t test = ATOMIC_VAR_INIT(123);'
--                'int test2 = atomic_load(&test)'))
-+                'atomic_fetch_add(&test, 1)'))
-     }, {
-         'name': 'atomic-builtins',
-         'desc': 'compiler support for __atomic built-ins',
--- 
-2.7.4
-
diff --git a/package/mpv/mpv.hash b/package/mpv/mpv.hash
index 8a2f44b..1594cb9 100644
--- a/package/mpv/mpv.hash
+++ b/package/mpv/mpv.hash
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256	e413d57fec4ad43b9f9b848f38d13fb921313fc9a4a64bf1e906c8d0f7a46329	v0.18.1.tar.gz
+sha256	3df5811942cd1d71f48eb4720092fdafec11885bf6dd6d1d3e6413f32e5d67e2	v0.19.0.tar.gz
 sha256	01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b	waf-1.8.12
diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index d2ed3f2..123dff4 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MPV_VERSION = 0.18.1
+MPV_VERSION = 0.19.0
 MPV_WAF_VERSION = 1.8.12
 MPV_SITE = https://github.com/mpv-player/mpv/archive
 MPV_SOURCE = v$(MPV_VERSION).tar.gz
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] mpv: bump to version 0.19.0
  2016-08-20 14:42 [Buildroot] [PATCH] mpv: bump to version 0.19.0 Gustavo Zacarias
@ 2016-08-20 20:39 ` Thomas Petazzoni
  2016-08-24  1:03   ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2016-08-20 20:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 20 Aug 2016 11:42:11 -0300, Gustavo Zacarias wrote:
> And drop upstreamed patch.
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  .../mpv/0002-wscript-improve-stdatomic-check.patch | 47 ----------------------
>  package/mpv/mpv.hash                               |  2 +-
>  package/mpv/mpv.mk                                 |  2 +-
>  3 files changed, 2 insertions(+), 49 deletions(-)
>  delete mode 100644 package/mpv/0002-wscript-improve-stdatomic-check.patch

I'm glad to see that my efforts to upstream those fixes allow us to
drop patches. That said, the patch did not exist in next, where I
applied your patch, so the final commit is just a regular bump.

Applied to next, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] mpv: bump to version 0.19.0
  2016-08-20 20:39 ` Thomas Petazzoni
@ 2016-08-24  1:03   ` Arnout Vandecappelle
  2016-08-24 14:43     ` Thomas Petazzoni
  2016-08-24 22:20     ` Peter Korsgaard
  0 siblings, 2 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-08-24  1:03 UTC (permalink / raw)
  To: buildroot

On 20-08-16 22:39, Thomas Petazzoni wrote:
> Hello,
> 
> On Sat, 20 Aug 2016 11:42:11 -0300, Gustavo Zacarias wrote:
>> And drop upstreamed patch.
>>
>> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
>> ---
>>  .../mpv/0002-wscript-improve-stdatomic-check.patch | 47 ----------------------
>>  package/mpv/mpv.hash                               |  2 +-
>>  package/mpv/mpv.mk                                 |  2 +-
>>  3 files changed, 2 insertions(+), 49 deletions(-)
>>  delete mode 100644 package/mpv/0002-wscript-improve-stdatomic-check.patch
> 
> I'm glad to see that my efforts to upstream those fixes allow us to
> drop patches. That said, the patch did not exist in next, where I
> applied your patch, so the final commit is just a regular bump.

 So, you have to remember to drop the patch when you merge next into master...

 Wouldn't it be a good idea to regularly merge master into next? That would
reduce the likelihood of forgetting such things.

 Regards,
 Arnout


-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] mpv: bump to version 0.19.0
  2016-08-24  1:03   ` Arnout Vandecappelle
@ 2016-08-24 14:43     ` Thomas Petazzoni
  2016-08-24 22:20     ` Peter Korsgaard
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2016-08-24 14:43 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 24 Aug 2016 03:03:00 +0200, Arnout Vandecappelle wrote:

> > I'm glad to see that my efforts to upstream those fixes allow us to
> > drop patches. That said, the patch did not exist in next, where I
> > applied your patch, so the final commit is just a regular bump.  
> 
>  So, you have to remember to drop the patch when you merge next into master...

Yep.

>  Wouldn't it be a good idea to regularly merge master into next? That would
> reduce the likelihood of forgetting such things.

Cc'ing Peter on this, I'm not sure what's the best process for this.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] mpv: bump to version 0.19.0
  2016-08-24  1:03   ` Arnout Vandecappelle
  2016-08-24 14:43     ` Thomas Petazzoni
@ 2016-08-24 22:20     ` Peter Korsgaard
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2016-08-24 22:20 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

Hi,

 >  So, you have to remember to drop the patch when you merge next into master...

 >  Wouldn't it be a good idea to regularly merge master into next? That would
 > reduce the likelihood of forgetting such things.

It is true that merging next into master after a release can be somewhat
painful and it is easy to miss this kind of stuff. I don't know if
merging back and forth will work better, but I'll play a bit around with
it and perhaps I can try merging master into next for each release
candidate starting from the 2016.11 cycle.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-24 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-20 14:42 [Buildroot] [PATCH] mpv: bump to version 0.19.0 Gustavo Zacarias
2016-08-20 20:39 ` Thomas Petazzoni
2016-08-24  1:03   ` Arnout Vandecappelle
2016-08-24 14:43     ` Thomas Petazzoni
2016-08-24 22:20     ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.