All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
@ 2014-06-08 12:50 Noam Camus
  2014-06-08 12:54 ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Noam Camus @ 2014-06-08 12:50 UTC (permalink / raw)
  To: buildroot

Please review below patch

> -----Original Message-----
> From: Noam Camus [mailto:noamc at ezchip.com]
> Sent: Sunday, June 08, 2014 3:45 PM
> To: Noam Camus
> Cc: Tal Zilcer
> Subject: [PATCH 1/1] toolchain-buildroot: create a relocatable one
> 
> From: Tal Zilcer <talz@ezchip.com>
> 
> This adds ability so that pre built buildroot toolchain and GDB can be
> used by others in different computers without the need to build them
> again.
> 
> Note: the toolchain/GDB is still depended on native libraries.
> 
> Signed-off-by: Tal Zilcer <talz@ezchip.com>
> Signed-off-by: Noam Camus <noamc@ezchip.com>
> ---
>  package/expat/expat.mk                  |    4 ++++
>  package/gmp/gmp.mk                      |    4 ++++
>  package/mpc/mpc.mk                      |    4 ++++
>  package/mpfr/mpfr.mk                    |    4 ++++
>  toolchain/toolchain-buildroot/Config.in |    8 ++++++++
>  5 files changed, 24 insertions(+), 0 deletions(-)
> 
> diff --git a/package/expat/expat.mk b/package/expat/expat.mk index
> 4c37ba2..c9af121 100644
> --- a/package/expat/expat.mk
> +++ b/package/expat/expat.mk
> @@ -13,5 +13,9 @@ EXPAT_DEPENDENCIES = host-pkgconf  EXPAT_LICENSE = MIT
> EXPAT_LICENSE_FILES = COPYING
> 
> +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_STATIC),y)
> +HOST_EXPAT_CONF_OPT = --disable-shared
> +endif
> +
>  $(eval $(autotools-package))
>  $(eval $(host-autotools-package))
> diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk index
> f71a210..12502da 100644
> --- a/package/gmp/gmp.mk
> +++ b/package/gmp/gmp.mk
> @@ -12,5 +12,9 @@ GMP_LICENSE = LGPLv3+
>  GMP_LICENSE_FILES = COPYING.LESSERv3
>  GMP_DEPENDENCIES = host-m4
> 
> +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_STATIC),y)
> +HOST_GMP_CONF_OPT = --disable-shared
> +endif
> +
>  $(eval $(autotools-package))
>  $(eval $(host-autotools-package))
> diff --git a/package/mpc/mpc.mk b/package/mpc/mpc.mk index
> 81ee5f0..436e86a 100644
> --- a/package/mpc/mpc.mk
> +++ b/package/mpc/mpc.mk
> @@ -11,5 +11,9 @@ MPC_LICENSE_FILES = COPYING.LESSER  MPC_INSTALL_STAGING
> = YES  MPC_DEPENDENCIES = gmp mpfr
> 
> +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_STATIC),y)
> +HOST_MPC_CONF_OPT = --disable-shared
> +endif
> +
>  $(eval $(autotools-package))
>  $(eval $(host-autotools-package))
> diff --git a/package/mpfr/mpfr.mk b/package/mpfr/mpfr.mk index
> 52d88fe..7093cf6 100644
> --- a/package/mpfr/mpfr.mk
> +++ b/package/mpfr/mpfr.mk
> @@ -13,5 +13,9 @@ MPFR_INSTALL_STAGING = YES  MPFR_DEPENDENCIES = gmp
> MPFR_MAKE_OPT = RANLIB=$(TARGET_RANLIB)
> 
> +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_STATIC),y)
> +HOST_MPFR_CONF_OPT = --disable-shared
> +endif
> +
>  $(eval $(autotools-package))
>  $(eval $(host-autotools-package))
> diff --git a/toolchain/toolchain-buildroot/Config.in
> b/toolchain/toolchain-buildroot/Config.in
> index eef9f9c..a66f816 100644
> --- a/toolchain/toolchain-buildroot/Config.in
> +++ b/toolchain/toolchain-buildroot/Config.in
> @@ -18,6 +18,14 @@ config BR2_TOOLCHAIN_BUILDROOT_VENDOR
> 
>  	  If you're not sure, just leave the default "buildroot" value.
> 
> +config BR2_TOOLCHAIN_BUILDROOT_STATIC
> +	bool "static toolchain"
> +	help
> +	  This option builds toolchain and gdb with static libraries
> +	  of mpc,mpfr,gmp, and expat.
> +	  It enable one to copy toolchain around to different directory
> +	  and even to another machine. Now toolchain is relocatable, enjoy.
> +
>  source "package/linux-headers/Config.in.host"
> 
>  choice
> --
> 1.7.1

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-08 12:50 [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one Noam Camus
@ 2014-06-08 12:54 ` Thomas Petazzoni
  2014-06-08 13:16   ` Noam Camus
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2014-06-08 12:54 UTC (permalink / raw)
  To: buildroot

Dear Noam Camus,

On Sun, 8 Jun 2014 12:50:03 +0000, Noam Camus wrote:

> Please review below patch

Please send it properly with git send-email :-)

Thanks!

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

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-08 12:54 ` Thomas Petazzoni
@ 2014-06-08 13:16   ` Noam Camus
  2014-06-08 13:46     ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Noam Camus @ 2014-06-08 13:16 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

I wish to contribute.
However my organization security rules are not allowing me to send directly with send-email outside our organization.

So I send-email to myself and only through outlook and exchange server I can forward the email to buildroot.

Isn't there a way to send a patch as file?

Editing the patch manually in outlook is something I wish to avoid.

Regards,
noam

> -----Original Message-----
> From: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
> Sent: Sunday, June 08, 2014 3:55 PM
> To: Noam Camus
> Cc: buildroot at busybox.net
> Subject: Re: [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a
> relocatable one
> 
> Dear Noam Camus,
> 
> On Sun, 8 Jun 2014 12:50:03 +0000, Noam Camus wrote:
> 
> > Please review below patch
> 
> Please send it properly with git send-email :-)
> 
> Thanks!
> 
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering http://free-electrons.com

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-08 13:16   ` Noam Camus
@ 2014-06-08 13:46     ` Thomas Petazzoni
  2014-06-08 15:27       ` Noam Camus
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2014-06-08 13:46 UTC (permalink / raw)
  To: buildroot

Dear Noam Camus,

On Sun, 8 Jun 2014 13:16:01 +0000, Noam Camus wrote:

> I wish to contribute.
> However my organization security rules are not allowing me to send
> directly with send-email outside our organization.
> 
> So I send-email to myself and only through outlook and exchange
> server I can forward the email to buildroot.
> 
> Isn't there a way to send a patch as file?

No, it has to be sent inline, because it's an integral part of our
review process to have patches sent inline, so that people can comment.

If your company IT department is unable to understand which tools the
company engineers need to properly contribute to open-source
communities, I'd say you should create a GMail account, and use that as
the SMTP server to send your e-mail. I believe that's what a lot of
people do when they have to work in hostile environments.

Best regards,

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

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-08 13:46     ` Thomas Petazzoni
@ 2014-06-08 15:27       ` Noam Camus
  2014-06-08 15:44         ` Baruch Siach
  2014-06-08 16:05         ` Thomas Petazzoni
  0 siblings, 2 replies; 11+ messages in thread
From: Noam Camus @ 2014-06-08 15:27 UTC (permalink / raw)
  To: buildroot

> If your company IT department is unable to understand which tools the
> company engineers need to properly contribute to open-source communities,
> I'd say you should create a GMail account, and use that as the SMTP server
> to send your e-mail. I believe that's what a lot of people do when they
> have to work in hostile environments.
> 

[Noam Camus] Do I need to subscribe again with my gmail account?
Is adding to command line --smtp-server=smtp.gmail.com is enough?
What about the user name in gmail?
Any working example somewhere under doc?

Regards,
Noam

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-08 15:27       ` Noam Camus
@ 2014-06-08 15:44         ` Baruch Siach
  2014-06-15 11:46           ` Noam Camus
  2014-06-08 16:05         ` Thomas Petazzoni
  1 sibling, 1 reply; 11+ messages in thread
From: Baruch Siach @ 2014-06-08 15:44 UTC (permalink / raw)
  To: buildroot

Hi Noam,

On Sun, Jun 08, 2014 at 03:27:38PM +0000, Noam Camus wrote:
> > If your company IT department is unable to understand which tools the
> > company engineers need to properly contribute to open-source communities,
> > I'd say you should create a GMail account, and use that as the SMTP server
> > to send your e-mail. I believe that's what a lot of people do when they
> > have to work in hostile environments.
> 
> [Noam Camus] Do I need to subscribe again with my gmail account?
> Is adding to command line --smtp-server=smtp.gmail.com is enough?
> What about the user name in gmail?
> Any working example somewhere under doc?

See the EXAMPLE section of the git-send-email(1) man page (online at 
http://git-scm.com/docs/git-send-email).

You git username need not be the same as your gmail account. The former is 
defined under the [user] git configuration section with the 'name' and 'email' 
parameters. The latter is defined under the [sendemail] section as described 
in the manual page I referred to above.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-08 15:27       ` Noam Camus
  2014-06-08 15:44         ` Baruch Siach
@ 2014-06-08 16:05         ` Thomas Petazzoni
  1 sibling, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2014-06-08 16:05 UTC (permalink / raw)
  To: buildroot

Dear Noam Camus,

On Sun, 8 Jun 2014 15:27:38 +0000, Noam Camus wrote:

> [Noam Camus] Do I need to subscribe again with my gmail account?

(There's no need to repeat your name here between square brackets:
quotations are sufficient to know who spoke).

Yes, you will have to subscribe again with your GMail account if the
From of your e-mails is going to be @gmail.com.

> Is adding to command line --smtp-server=smtp.gmail.com is enough?
> What about the user name in gmail?
> Any working example somewhere under doc?

Baruch gave some details about this.

Best regards,

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

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-08 15:44         ` Baruch Siach
@ 2014-06-15 11:46           ` Noam Camus
  2014-06-15 12:16             ` Baruch Siach
  0 siblings, 1 reply; 11+ messages in thread
From: Noam Camus @ 2014-06-15 11:46 UTC (permalink / raw)
  To: buildroot

> See the EXAMPLE section of the git-send-email(1) man page (online at
> http://git-scm.com/docs/git-send-email).
> 
I followed EXAMPLE section but /usr/libexec/git-core/git-send-email always complains:
Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.gmail.com encryption=tls maildomain=xxx.ezchip.com Debug=0 port=587 at /usr/libexec/git-core/git-send-email line 1041.

This is Net::SMTP->new() that always returns NULL.
I used CPAN to install latest Net::SMTP.

Any ideas?

Regards
Noam Camus

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-15 11:46           ` Noam Camus
@ 2014-06-15 12:16             ` Baruch Siach
  2014-06-15 14:06               ` Thomas De Schampheleire
  0 siblings, 1 reply; 11+ messages in thread
From: Baruch Siach @ 2014-06-15 12:16 UTC (permalink / raw)
  To: buildroot

Hi Noam,

On Sun, Jun 15, 2014 at 11:46:03AM +0000, Noam Camus wrote:
> > See the EXAMPLE section of the git-send-email(1) man page (online at
> > http://git-scm.com/docs/git-send-email).
>
> I followed EXAMPLE section but /usr/libexec/git-core/git-send-email always 
> complains:
> Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.gmail.com encryption=tls maildomain=xxx.ezchip.com Debug=0 port=587 at /usr/libexec/git-core/git-send-email line 1041.
> 
> This is Net::SMTP->new() that always returns NULL.
> I used CPAN to install latest Net::SMTP.
> 
> Any ideas?

Your friendly corporate firewall might be blocking outgoing traffic to port 
587. Try doing 'telnet smtp.gmail.com 587'. If you get timeout, this is most 
likely the reason. Your best options is to talk to your IT department to let 
you access to outgoing port 587. If that fails I can think of two workarounds:

1. Use an external server you can control from withing your corporate network 
   (SSH would be best, though I guess your firewall blocks SSH as well)

2. Tunnel SMTP over HTTP somehow. This is quite ugly.

Others on this list may have better solutions for this frustrating problem.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-15 12:16             ` Baruch Siach
@ 2014-06-15 14:06               ` Thomas De Schampheleire
  2014-06-15 15:15                 ` Noam Camus
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas De Schampheleire @ 2014-06-15 14:06 UTC (permalink / raw)
  To: buildroot

On Sun, Jun 15, 2014 at 2:16 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Noam,
>
> On Sun, Jun 15, 2014 at 11:46:03AM +0000, Noam Camus wrote:
>> > See the EXAMPLE section of the git-send-email(1) man page (online at
>> > http://git-scm.com/docs/git-send-email).
>>
>> I followed EXAMPLE section but /usr/libexec/git-core/git-send-email always
>> complains:
>> Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.gmail.com encryption=tls maildomain=xxx.ezchip.com Debug=0 port=587 at /usr/libexec/git-core/git-send-email line 1041.
>>
>> This is Net::SMTP->new() that always returns NULL.
>> I used CPAN to install latest Net::SMTP.
>>
>> Any ideas?
>
> Your friendly corporate firewall might be blocking outgoing traffic to port
> 587. Try doing 'telnet smtp.gmail.com 587'. If you get timeout, this is most
> likely the reason. Your best options is to talk to your IT department to let
> you access to outgoing port 587. If that fails I can think of two workarounds:
>
> 1. Use an external server you can control from withing your corporate network
>    (SSH would be best, though I guess your firewall blocks SSH as well)
>
> 2. Tunnel SMTP over HTTP somehow. This is quite ugly.
>
> Others on this list may have better solutions for this frustrating problem.

If it's purely a proxy problem, then you can use socat to let smtp go
through the tunnel.
Set up git to use localhost as smtp server, and a port of your choice,
for example 10587, and set up a socat instance:

socat TCP4-LISTEN:$localport,reuseaddr,fork
PROXY:$proxy:$remotehost:$remoteport,proxyport=$proxyport,resolve

where localport=10587, remotehost=smtp.gmail.com, remoteport=587,
proxy=proxy.yourcompany.com proxyport=8080 (whatever is the right port
for your proxy)

Same trick can be used to forward IRC through the proxy.

Best regards,
Thomas

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

* [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one
  2014-06-15 14:06               ` Thomas De Schampheleire
@ 2014-06-15 15:15                 ` Noam Camus
  0 siblings, 0 replies; 11+ messages in thread
From: Noam Camus @ 2014-06-15 15:15 UTC (permalink / raw)
  To: buildroot


> If it's purely a proxy problem, then you can use socat to let smtp go
> through the tunnel.
> Set up git to use localhost as smtp server, and a port of your choice, for
> example 10587, and set up a socat instance:
> 
> socat TCP4-LISTEN:$localport,reuseaddr,fork
> PROXY:$proxy:$remotehost:$remoteport,proxyport=$proxyport,resolve
> 
> where localport=10587, remotehost=smtp.gmail.com, remoteport=587,
> proxy=proxy.yourcompany.com proxyport=8080 (whatever is the right port for
> your proxy)
> 
> Same trick can be used to forward IRC through the proxy.

Thanks nice trick

Noam Camus 

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

end of thread, other threads:[~2014-06-15 15:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-08 12:50 [Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one Noam Camus
2014-06-08 12:54 ` Thomas Petazzoni
2014-06-08 13:16   ` Noam Camus
2014-06-08 13:46     ` Thomas Petazzoni
2014-06-08 15:27       ` Noam Camus
2014-06-08 15:44         ` Baruch Siach
2014-06-15 11:46           ` Noam Camus
2014-06-15 12:16             ` Baruch Siach
2014-06-15 14:06               ` Thomas De Schampheleire
2014-06-15 15:15                 ` Noam Camus
2014-06-08 16:05         ` 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.