All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash.
@ 2018-06-11 18:18 Min Xu
  2018-06-11 18:18 ` [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency Min Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Min Xu @ 2018-06-11 18:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Min Xu <xuminready@gmail.com>
---
 package/shadowsocks-libev/shadowsocks-libev.hash | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/shadowsocks-libev/shadowsocks-libev.hash b/package/shadowsocks-libev/shadowsocks-libev.hash
index e8be8a8..fffe9fd 100644
--- a/package/shadowsocks-libev/shadowsocks-libev.hash
+++ b/package/shadowsocks-libev/shadowsocks-libev.hash
@@ -5,4 +5,3 @@ sha256 5521cf623a07fd1e393528516a83acd2b66c5d4bb4535a52662806a6a060c606 shadowso
 sha256 736883f97d44dbec288bb82819f18f4f86d02ae3192f6a9abefa00db76bace41  COPYING
 sha256 c41a4bc2c4c43e4daa3051e77e31b2d5c8500498afaeac6d831d55a4bb8de3fb  libbloom/LICENSE
 sha256 4fa2ada54f8c0410ec243265378242ffe862386d5ac517f8dd30a1911d25ae93  libcork/COPYING
-sha256 4b3adc9ce620fa868f1dda328203dbccbd3e9f5fbafb49c581edc386a504ee1a  libipset/LICENSE.txt
-- 
2.11.0

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

* [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency
  2018-06-11 18:18 [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash Min Xu
@ 2018-06-11 18:18 ` Min Xu
  2018-06-17 13:43   ` Thomas Petazzoni
  2018-06-11 18:18 ` [Buildroot] [PATCH v2 3/3] shadowsocks-libev: Adding the __sync related dependency Min Xu
  2018-06-17 13:35 ` [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash Thomas Petazzoni
  2 siblings, 1 reply; 6+ messages in thread
From: Min Xu @ 2018-06-11 18:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Min Xu <xuminready@gmail.com>
---
 package/shadowsocks-libev/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/shadowsocks-libev/Config.in b/package/shadowsocks-libev/Config.in
index d02e5a9..82c88e9 100644
--- a/package/shadowsocks-libev/Config.in
+++ b/package/shadowsocks-libev/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_SHADOWSOCKS_LIBEV
 	bool "shadowsocks-libev"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # require pthreads
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_C_ARES
 	select BR2_PACKAGE_LIBEV
-- 
2.11.0

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

* [Buildroot] [PATCH v2 3/3] shadowsocks-libev: Adding the __sync related dependency
  2018-06-11 18:18 [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash Min Xu
  2018-06-11 18:18 ` [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency Min Xu
@ 2018-06-11 18:18 ` Min Xu
  2018-06-17 13:35 ` [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash Thomas Petazzoni
  2 siblings, 0 replies; 6+ messages in thread
From: Min Xu @ 2018-06-11 18:18 UTC (permalink / raw)
  To: buildroot

To fixup libcork linking errors:
"undefined reference to `__sync_val_compare_and_swap_4'"
Fixes
http://autobuild.buildroot.net/results/552b09ffe951c429422529c895f4c3ec723cf5ab

http://autobuild.buildroot.net/results/4810526381e15a194767753d324875bfbf5e3dde
http://autobuild.buildroot.net/results/9cb76805c2f2952aa434d143831ee03c7d43aa52

http://autobuild.buildroot.net/results/d00c5f9e1e7a6a40fac5763a06977b351b7875da
http://autobuild.buildroot.net/results/0612f2dc09a8763fdf2111ee8d0c223c8531262a

Signed-off-by: Min Xu <xuminready@gmail.com>
---
 package/shadowsocks-libev/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/shadowsocks-libev/Config.in b/package/shadowsocks-libev/Config.in
index 82c88e9..972e329 100644
--- a/package/shadowsocks-libev/Config.in
+++ b/package/shadowsocks-libev/Config.in
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_SHADOWSOCKS_LIBEV
 	bool "shadowsocks-libev"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # for libcork
+	depends on BR2_TOOLCHAIN_HAS_SYNC_8 || !BR2_ARCH_IS_64 # for libcork
 	depends on BR2_TOOLCHAIN_HAS_THREADS # require pthreads
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_C_ARES
-- 
2.11.0

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

* [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash.
  2018-06-11 18:18 [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash Min Xu
  2018-06-11 18:18 ` [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency Min Xu
  2018-06-11 18:18 ` [Buildroot] [PATCH v2 3/3] shadowsocks-libev: Adding the __sync related dependency Min Xu
@ 2018-06-17 13:35 ` Thomas Petazzoni
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2018-06-17 13:35 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 11 Jun 2018 11:18:21 -0700, Min Xu wrote:
> Signed-off-by: Min Xu <xuminready@gmail.com>
> ---
>  package/shadowsocks-libev/shadowsocks-libev.hash | 1 -
>  1 file changed, 1 deletion(-)

I've applied, but there are a few minor things that could have been
done better (yes, even for such a simple patch):

 1. Use a small letter to start the commit title, i.e:

    shadowsocks-libev: drop the useless patch

 2. Remove the final dot in the commit title

 3. Add a commit log that explains *why* you're doing this change. I've
    added the following commit log:

    In commit f8d44394777fb9b45befaee3333d974dfe5e745d
    ("shadowsocks-libev: new package"), when this package was
    introduced, the hash for a license file that isn't available in
    upstream's tarball was added to the license file. Obviously, this
    hash serves no purpose, so drop it.
    
Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency
  2018-06-11 18:18 ` [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency Min Xu
@ 2018-06-17 13:43   ` Thomas Petazzoni
  2018-06-18  7:13     ` xu min
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2018-06-17 13:43 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 11 Jun 2018 11:18:22 -0700, Min Xu wrote:
> Signed-off-by: Min Xu <xuminready@gmail.com>

Here again, the commit log was empty, which is not good. It should have
explained *why* you did this change.

> ---
>  package/shadowsocks-libev/Config.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/shadowsocks-libev/Config.in b/package/shadowsocks-libev/Config.in
> index d02e5a9..82c88e9 100644
> --- a/package/shadowsocks-libev/Config.in
> +++ b/package/shadowsocks-libev/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_SHADOWSOCKS_LIBEV
>  	bool "shadowsocks-libev"
> +	depends on BR2_TOOLCHAIN_HAS_THREADS # require pthreads
>  	depends on BR2_USE_MMU # fork()
>  	select BR2_PACKAGE_C_ARES
>  	select BR2_PACKAGE_LIBEV

When you add a dependency on a toolchain option, you need to add the
corresponding Config.in comment:

+comment "shadowsocks-libev needs a toolchain w/ threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_TOOLCHAIN_HAS_THREADS

I've added that, extended the commit log and applied.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency
  2018-06-17 13:43   ` Thomas Petazzoni
@ 2018-06-18  7:13     ` xu min
  0 siblings, 0 replies; 6+ messages in thread
From: xu min @ 2018-06-18  7:13 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

Thank you for your help. I'll keep learning and improving my commit.

MinXu

On Sun, Jun 17, 2018 at 6:43 AM Thomas Petazzoni <
thomas.petazzoni@bootlin.com> wrote:

> Hello,
>
> On Mon, 11 Jun 2018 11:18:22 -0700, Min Xu wrote:
> > Signed-off-by: Min Xu <xuminready@gmail.com>
>
> Here again, the commit log was empty, which is not good. It should have
> explained *why* you did this change.
>
> > ---
> >  package/shadowsocks-libev/Config.in | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/package/shadowsocks-libev/Config.in
> b/package/shadowsocks-libev/Config.in
> > index d02e5a9..82c88e9 100644
> > --- a/package/shadowsocks-libev/Config.in
> > +++ b/package/shadowsocks-libev/Config.in
> > @@ -1,5 +1,6 @@
> >  config BR2_PACKAGE_SHADOWSOCKS_LIBEV
> >       bool "shadowsocks-libev"
> > +     depends on BR2_TOOLCHAIN_HAS_THREADS # require pthreads
> >       depends on BR2_USE_MMU # fork()
> >       select BR2_PACKAGE_C_ARES
> >       select BR2_PACKAGE_LIBEV
>
> When you add a dependency on a toolchain option, you need to add the
> corresponding Config.in comment:
>
> +comment "shadowsocks-libev needs a toolchain w/ threads"
> +       depends on BR2_USE_MMU
> +       depends on !BR2_TOOLCHAIN_HAS_THREADS
>
> I've added that, extended the commit log and applied.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com
>


-- 

*Best Regards*

*XuMin's Ready?*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180618/9a8041f3/attachment.html>

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

end of thread, other threads:[~2018-06-18  7:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-11 18:18 [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash Min Xu
2018-06-11 18:18 ` [Buildroot] [PATCH v2 2/3] shadowsocks-libev: Adding the pthreads dependency Min Xu
2018-06-17 13:43   ` Thomas Petazzoni
2018-06-18  7:13     ` xu min
2018-06-11 18:18 ` [Buildroot] [PATCH v2 3/3] shadowsocks-libev: Adding the __sync related dependency Min Xu
2018-06-17 13:35 ` [Buildroot] [PATCH v2 1/3] shadowsocks-libev: Drop the useless hash Thomas Petazzoni

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.