All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v4 0/3]  Adding GTK# package
@ 2015-02-12 13:49 Angelo Compagnucci
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation Angelo Compagnucci
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-12 13:49 UTC (permalink / raw)
  To: buildroot

This patch adds GTK# gui librrary for mono and enables inclusion
of future third party mono software libreries.

---
Changes v3 -> v4:
  - Adding missing eval autools line

Changes v1 -> v3:
  - General patch cleaning

Angelo Compagnucci (3):
  package/mono: enable mono library compilation
  system: Defaulting TZ_LOCALTIME to UTC
  package/gtksharp: new package

Angelo Compagnucci (3):
  package/mono: enable mono library compilation
  system: Defaulting TZ_LOCALTIME to UTC
  package/gtksharp: new package

 package/Config.in            |  5 +++++
 package/gtksharp/Config.in   |  9 +++++++++
 package/gtksharp/gtksharp.mk | 15 +++++++++++++++
 package/mono/mono.mk         |  1 -
 system/Config.in             |  1 +
 5 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 package/gtksharp/Config.in
 create mode 100644 package/gtksharp/gtksharp.mk

-- 
1.9.1

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

* [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation
  2015-02-12 13:49 [Buildroot] [PATCH v4 0/3] Adding GTK# package Angelo Compagnucci
@ 2015-02-12 13:49 ` Angelo Compagnucci
  2015-02-14  6:58   ` Thomas Petazzoni
  2015-02-14  9:24   ` Thomas Petazzoni
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC Angelo Compagnucci
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 3/3] package/gtksharp: new package Angelo Compagnucci
  2 siblings, 2 replies; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-12 13:49 UTC (permalink / raw)
  To: buildroot

This patch enables the compilation of mono library to be used
in third party software.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/mono/mono.mk b/package/mono/mono.mk
index 0bbf338..9ec3c24 100644
--- a/package/mono/mono.mk
+++ b/package/mono/mono.mk
@@ -21,7 +21,6 @@ MONO_AUTORECONF = YES
 MONO_CONF_OPTS = --disable-gtk-doc \
 	--with-mcs-docs=no \
 	--with-moonlight=no \
-	--disable-libraries \
 	--with-ikvm-native=no \
 	--enable-minimal=aot,profiler,debug \
 	--disable-mcs-build \
-- 
1.9.1

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

* [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC
  2015-02-12 13:49 [Buildroot] [PATCH v4 0/3] Adding GTK# package Angelo Compagnucci
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation Angelo Compagnucci
@ 2015-02-12 13:49 ` Angelo Compagnucci
  2015-02-14  7:36   ` Thomas Petazzoni
                     ` (2 more replies)
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 3/3] package/gtksharp: new package Angelo Compagnucci
  2 siblings, 3 replies; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-12 13:49 UTC (permalink / raw)
  To: buildroot

This patch sets the default timezone to UTC if not overwritten.
Some packages need a configured system timezone for properly
operating like mono based software.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 system/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/system/Config.in b/system/Config.in
index 95e10ab..d967002 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -371,6 +371,7 @@ config BR2_TARGET_TZ_ZONELIST
 
 config BR2_TARGET_LOCALTIME
 	string "default local time"
+	default "Etc/UTC"
 	help
 	  The time zone to install as the default local time, expressed as a
 	  tzdata location, such as:
-- 
1.9.1

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

* [Buildroot] [PATCH v4 3/3] package/gtksharp: new package
  2015-02-12 13:49 [Buildroot] [PATCH v4 0/3] Adding GTK# package Angelo Compagnucci
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation Angelo Compagnucci
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC Angelo Compagnucci
@ 2015-02-12 13:49 ` Angelo Compagnucci
  2015-02-14  7:44   ` Thomas Petazzoni
  2 siblings, 1 reply; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-12 13:49 UTC (permalink / raw)
  To: buildroot

This patch adds gtksharp package for mono.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 package/Config.in            |  5 +++++
 package/gtksharp/Config.in   |  9 +++++++++
 package/gtksharp/gtksharp.mk | 15 +++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 package/gtksharp/Config.in
 create mode 100644 package/gtksharp/gtksharp.mk

diff --git a/package/Config.in b/package/Config.in
index fe3d3d0..27daf2a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -464,6 +464,11 @@ menu "Lua libraries/modules"
 endmenu
 endif
 	source "package/mono/Config.in"
+if BR2_PACKAGE_MONO
+menu "Mono libraries/modules"
+	source "package/gtksharp/Config.in"
+endmenu
+endif
 	source "package/nodejs/Config.in"
 	source "package/perl/Config.in"
 if BR2_PACKAGE_PERL
diff --git a/package/gtksharp/Config.in b/package/gtksharp/Config.in
new file mode 100644
index 0000000..8f3af2e
--- /dev/null
+++ b/package/gtksharp/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_GTKSHARP
+	bool "gtk#"
+	depends on BR2_PACKAGE_MONO
+	select BR2_PACKAGE_LIBGTK3
+	select BR2_TARGET_TZ_INFO
+	help
+	  Gtk# is a .NET language binding for the GTK+ toolkit.
+
+	  http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/
diff --git a/package/gtksharp/gtksharp.mk b/package/gtksharp/gtksharp.mk
new file mode 100644
index 0000000..948db19
--- /dev/null
+++ b/package/gtksharp/gtksharp.mk
@@ -0,0 +1,15 @@
+#############################################################
+#
+# gtksharp
+#
+#############################################################
+
+GTKSHARP_VERSION = 2.99.3
+GTKSHARP_SITE = http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/
+GTKSHARP_SOURCE = gtk-sharp-$(GTKSHARP_VERSION).tar.xz
+GTKSHARP_LICENSE = LGPLv2
+GTKSHARP_LICENSE_FILES = COPYING
+GTKSHARP_INSTALL_STAGING = YES
+GTKSHARP_DEPENDENCIES += mono libgtk3
+
+$(eval $(autotools-package))
-- 
1.9.1

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

* [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation Angelo Compagnucci
@ 2015-02-14  6:58   ` Thomas Petazzoni
  2015-02-14  8:53     ` Angelo Compagnucci
  2015-02-14  9:24   ` Thomas Petazzoni
  1 sibling, 1 reply; 15+ messages in thread
From: Thomas Petazzoni @ 2015-02-14  6:58 UTC (permalink / raw)
  To: buildroot

Dear Angelo Compagnucci,

On Thu, 12 Feb 2015 14:49:30 +0100, Angelo Compagnucci wrote:

> diff --git a/package/mono/mono.mk b/package/mono/mono.mk
> index 0bbf338..9ec3c24 100644
> --- a/package/mono/mono.mk
> +++ b/package/mono/mono.mk
> @@ -21,7 +21,6 @@ MONO_AUTORECONF = YES
>  MONO_CONF_OPTS = --disable-gtk-doc \
>  	--with-mcs-docs=no \
>  	--with-moonlight=no \
> -	--disable-libraries \
>  	--with-ikvm-native=no \
>  	--enable-minimal=aot,profiler,debug \
>  	--disable-mcs-build \

Apparently, Mono was working fine with --disable-libraries, as long as
no third party libraries are used. So should we make this optional
instead? What is the size impact of this (i.e a Mono build with
--disable-libraries, and a Mono build without --disable-libraries), in
terms of installed size? If the size difference is small compared to
the overall size of Mono, then I'm fine for doing it unconditionally.

Could you comment on this?

Thanks,

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

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

* [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC Angelo Compagnucci
@ 2015-02-14  7:36   ` Thomas Petazzoni
  2015-02-14  8:09     ` Angelo Compagnucci
  2015-02-15 14:13   ` Yann E. MORIN
  2015-02-21 22:47   ` Thomas Petazzoni
  2 siblings, 1 reply; 15+ messages in thread
From: Thomas Petazzoni @ 2015-02-14  7:36 UTC (permalink / raw)
  To: buildroot

Dear Angelo Compagnucci,

On Thu, 12 Feb 2015 14:49:31 +0100, Angelo Compagnucci wrote:
> This patch sets the default timezone to UTC if not overwritten.
> Some packages need a configured system timezone for properly
> operating like mono based software.
> 
> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
> ---
>  system/Config.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/system/Config.in b/system/Config.in
> index 95e10ab..d967002 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -371,6 +371,7 @@ config BR2_TARGET_TZ_ZONELIST
>  
>  config BR2_TARGET_LOCALTIME
>  	string "default local time"
> +	default "Etc/UTC"
>  	help
>  	  The time zone to install as the default local time, expressed as a
>  	  tzdata location, such as:

Can you give more details as to what doesn't work with the current
default of an empty local time? An empty local time already means UTC,
so there should be no need to specify Etc/UTC as the local time.

Improving the commit log to give more details about the exact failure
solved by this patch would be useful.

Thanks,

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

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

* [Buildroot] [PATCH v4 3/3] package/gtksharp: new package
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 3/3] package/gtksharp: new package Angelo Compagnucci
@ 2015-02-14  7:44   ` Thomas Petazzoni
  2015-02-14  8:28     ` Angelo Compagnucci
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Petazzoni @ 2015-02-14  7:44 UTC (permalink / raw)
  To: buildroot

Dear Angelo Compagnucci,

On Thu, 12 Feb 2015 14:49:32 +0100, Angelo Compagnucci wrote:

> diff --git a/package/gtksharp/Config.in b/package/gtksharp/Config.in
> new file mode 100644
> index 0000000..8f3af2e
> --- /dev/null
> +++ b/package/gtksharp/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_GTKSHARP
> +	bool "gtk#"
> +	depends on BR2_PACKAGE_MONO

Not needed, since this Config.in file is already only included if Mono
is enabled, as per your change in package/Config.in.

> +	select BR2_PACKAGE_LIBGTK3

You can't just select libgtk3, you also need to inherit all its
dependencies. However, I am not sure in such situation if we really
want to "select" libgtk3 or to "depend" on it. The reason is that by
using "select", the user may not necessarily go to the libgtk3 option
to select the display backend. And by default, the display backend is
the Broadway backend, which most likely isn't what the user wants.

So for this case, I would personally lean towards using "depends on
BR2_PACKAGE_LIBGTK3", especially since it's quite obvious for the user
who wants gtk# that the gtk library should be installed.

> +	select BR2_TARGET_TZ_INFO

More details about why tz information are needed would be useful. In
any case, this should be:

	select BR2_TARGET_TZ_INFO if BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC

because the BR2_TARGET_TZ_INFO option is not available for Musl toolchains.

> +	help
> +	  Gtk# is a .NET language binding for the GTK+ toolkit.
> +
> +	  http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/

In the Config.in help text, we want the main web site of the project,
not the download URL. So most likely, this should instead be:

	  http://www.mono-project.com/docs/gui/gtksharp/

> diff --git a/package/gtksharp/gtksharp.mk b/package/gtksharp/gtksharp.mk
> new file mode 100644
> index 0000000..948db19
> --- /dev/null
> +++ b/package/gtksharp/gtksharp.mk
> @@ -0,0 +1,15 @@
> +#############################################################
> +#
> +# gtksharp
> +#
> +#############################################################

80 # signs are the convention.

> +
> +GTKSHARP_VERSION = 2.99.3
> +GTKSHARP_SITE = http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/

Please use the GTKSHARP_VERSION_MAJOR thing used in several other packages:

GTKSHARP_VERSION_MAJOR = 2.99
GTKSHAP_VERSION = $(GTKSHARP_VERSION_MAJOR).3
GTKSHARP_SITE = ......./gtk-sharp/$(GTKSHARP_VERSION_MAJOR)/

> +GTKSHARP_SOURCE = gtk-sharp-$(GTKSHARP_VERSION).tar.xz
> +GTKSHARP_LICENSE = LGPLv2
> +GTKSHARP_LICENSE_FILES = COPYING
> +GTKSHARP_INSTALL_STAGING = YES
> +GTKSHARP_DEPENDENCIES += mono libgtk3

Minor detail: the += sign is not needed here, you could just do '='.

Other than that looks good. Really, the only thing a bit weird about
this series is the time zone related thing.

Thanks,

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

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

* [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC
  2015-02-14  7:36   ` Thomas Petazzoni
@ 2015-02-14  8:09     ` Angelo Compagnucci
  0 siblings, 0 replies; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-14  8:09 UTC (permalink / raw)
  To: buildroot

Dear Thomas Petazzoni,

2015-02-14 8:36 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Angelo Compagnucci,
>
> On Thu, 12 Feb 2015 14:49:31 +0100, Angelo Compagnucci wrote:
>> This patch sets the default timezone to UTC if not overwritten.
>> Some packages need a configured system timezone for properly
>> operating like mono based software.
>>
>> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
>> ---
>>  system/Config.in | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/system/Config.in b/system/Config.in
>> index 95e10ab..d967002 100644
>> --- a/system/Config.in
>> +++ b/system/Config.in
>> @@ -371,6 +371,7 @@ config BR2_TARGET_TZ_ZONELIST
>>
>>  config BR2_TARGET_LOCALTIME
>>       string "default local time"
>> +     default "Etc/UTC"
>>       help
>>         The time zone to install as the default local time, expressed as a
>>         tzdata location, such as:
>
> Can you give more details as to what doesn't work with the current
> default of an empty local time? An empty local time already means UTC,
> so there should be no need to specify Etc/UTC as the local time.
>
> Improving the commit log to give more details about the exact failure
> solved by this patch would be useful.

I just discovered that problems is in the whole Mono libraries, not
only in gtk#.
Without /etc/timezone and /etc/localtime files this is the error:

System.TimeZoneNotFoundException: Exception of type
'System.TimeZoneNotFoundException' was thrown.
  at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0
  at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time)
[0x00000] in <filename unknown>:0
  at System.TimeZone.GetLocalTimeDiff (DateTime time) [0x00000] in
<filename unknown>:0
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0
  at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TimeZoneNotFoundException:
Exception of type 'System.TimeZoneNotFoundException' was thrown.
  at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0
  at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time)
[0x00000] in <filename unknown>:0
  at System.TimeZone.GetLocalTimeDiff (DateTime time) [0x00000] in
<filename unknown>:0
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0
  at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0

Mono libraries wants an explicit localtime to work, cannot be empty.

I do you suggest to solve this problem? Obviously it belongs to the
mono package, but how to solve it in a clean way?

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



-- 
Profile: http://it.linkedin.com/in/compagnucciangelo

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

* [Buildroot] [PATCH v4 3/3] package/gtksharp: new package
  2015-02-14  7:44   ` Thomas Petazzoni
@ 2015-02-14  8:28     ` Angelo Compagnucci
  0 siblings, 0 replies; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-14  8:28 UTC (permalink / raw)
  To: buildroot

Dear Thomas Petazzoni,

2015-02-14 8:44 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Angelo Compagnucci,
>
> On Thu, 12 Feb 2015 14:49:32 +0100, Angelo Compagnucci wrote:
>
>> diff --git a/package/gtksharp/Config.in b/package/gtksharp/Config.in
>> new file mode 100644
>> index 0000000..8f3af2e
>> --- /dev/null
>> +++ b/package/gtksharp/Config.in
>> @@ -0,0 +1,9 @@
>> +config BR2_PACKAGE_GTKSHARP
>> +     bool "gtk#"
>> +     depends on BR2_PACKAGE_MONO
>
> Not needed, since this Config.in file is already only included if Mono
> is enabled, as per your change in package/Config.in.

Ok!

>> +     select BR2_PACKAGE_LIBGTK3
>
> You can't just select libgtk3, you also need to inherit all its
> dependencies. However, I am not sure in such situation if we really
> want to "select" libgtk3 or to "depend" on it. The reason is that by
> using "select", the user may not necessarily go to the libgtk3 option/she need to enable
> to select the display backend. And by default, the display backend is
> the Broadway backend, which most likely isn't what the user wants.
>
> So for this case, I would personally lean towards using "depends on
> BR2_PACKAGE_LIBGTK3", especially since it's quite obvious for the user
> who wants gtk# that the gtk library should be installed.

Honestly, I will stay with "select" but expanding it with all libgtk3
selects and depens is impractical, so let's go for depend.
For the backend side, users should be a little bit aware of what they
are doing and selecting a proper backend.

We can default on another backend for libgtk3, but this is not
strictly related to gtk#. I think that having an X11 default backend
for libgtk3 is more sensible than broadway.

>
>> +     select BR2_TARGET_TZ_INFO
>
> More details about why tz information are needed would be useful. In
> any case, this should be:
>
>         select BR2_TARGET_TZ_INFO if BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
>
> because the BR2_TARGET_TZ_INFO option is not available for Musl toolchains.

Please refer to the thread regarding "[PATCH v4 2/3] system:
Defaulting TZ_LOCALTIME to UTC" for a better explanation.

>
>> +     help
>> +       Gtk# is a .NET language binding for the GTK+ toolkit.
>> +
>> +       http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/
>
> In the Config.in help text, we want the main web site of the project,
> not the download URL. So most likely, this should instead be:
>
>           http://www.mono-project.com/docs/gui/gtksharp/

Ok!

>> diff --git a/package/gtksharp/gtksharp.mk b/package/gtksharp/gtksharp.mk
>> new file mode 100644
>> index 0000000..948db19
>> --- /dev/null
>> +++ b/package/gtksharp/gtksharp.mk
>> @@ -0,0 +1,15 @@
>> +#############################################################
>> +#
>> +# gtksharp
>> +#
>> +#############################################################
>
> 80 # signs are the convention.

Ok, I just copied from another package!

>
>> +
>> +GTKSHARP_VERSION = 2.99.3
>> +GTKSHARP_SITE = http://ftp.gnome.org/pub/gnome/sources/gtk-sharp/2.99/
>
> Please use the GTKSHARP_VERSION_MAJOR thing used in several other packages:
>
> GTKSHARP_VERSION_MAJOR = 2.99
> GTKSHAP_VERSION = $(GTKSHARP_VERSION_MAJOR).3
> GTKSHARP_SITE = ......./gtk-sharp/$(GTKSHARP_VERSION_MAJOR)/

Ok!

>> +GTKSHARP_SOURCE = gtk-sharp-$(GTKSHARP_VERSION).tar.xz
>> +GTKSHARP_LICENSE = LGPLv2
>> +GTKSHARP_LICENSE_FILES = COPYING
>> +GTKSHARP_INSTALL_STAGING = YES
>> +GTKSHARP_DEPENDENCIES += mono libgtk3
>
> Minor detail: the += sign is not needed here, you could just do '='.

OK!

> Other than that looks good. Really, the only thing a bit weird about
> this series is the time zone related thing.
>
> Thanks,

Thank you too Thomas!

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



-- 
Profile: http://it.linkedin.com/in/compagnucciangelo

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

* [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation
  2015-02-14  6:58   ` Thomas Petazzoni
@ 2015-02-14  8:53     ` Angelo Compagnucci
  2015-02-14  9:17       ` Thomas Petazzoni
  0 siblings, 1 reply; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-14  8:53 UTC (permalink / raw)
  To: buildroot

Dear Thomas Petazzoni,

2015-02-14 7:58 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Angelo Compagnucci,
>
> On Thu, 12 Feb 2015 14:49:30 +0100, Angelo Compagnucci wrote:
>
>> diff --git a/package/mono/mono.mk b/package/mono/mono.mk
>> index 0bbf338..9ec3c24 100644
>> --- a/package/mono/mono.mk
>> +++ b/package/mono/mono.mk
>> @@ -21,7 +21,6 @@ MONO_AUTORECONF = YES
>>  MONO_CONF_OPTS = --disable-gtk-doc \
>>       --with-mcs-docs=no \
>>       --with-moonlight=no \
>> -     --disable-libraries \
>>       --with-ikvm-native=no \
>>       --enable-minimal=aot,profiler,debug \
>>       --disable-mcs-build \
>
> Apparently, Mono was working fine with --disable-libraries, as long as
> no third party libraries are used. So should we make this optional
> instead? What is the size impact of this (i.e a Mono build with
> --disable-libraries, and a Mono build without --disable-libraries), in
> terms of installed size? If the size difference is small compared to
> the overall size of Mono, then I'm fine for doing it unconditionally.
>
> Could you comment on this?

libmono* size is ~6mb and the overrall size of mono with only 4.5
libraries is ~60mb so it's a ~3.6%. If think it's too much, I'll add
an option to enable/disable compilation of it.
I think that the size is small (if compared to the entire size) and
could be enabled without too much thinking. Obviously, a user can
manually remove files he/she not uses, there are tons of libraries
rarely used that can be removed. But this is an optimization step that
only the software developer can do.

Sincerely, Angelo

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



-- 
Profile: http://it.linkedin.com/in/compagnucciangelo

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

* [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation
  2015-02-14  8:53     ` Angelo Compagnucci
@ 2015-02-14  9:17       ` Thomas Petazzoni
  2015-02-14  9:19         ` Angelo Compagnucci
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Petazzoni @ 2015-02-14  9:17 UTC (permalink / raw)
  To: buildroot

Dear Angelo Compagnucci,

On Sat, 14 Feb 2015 09:53:56 +0100, Angelo Compagnucci wrote:

> libmono* size is ~6mb and the overrall size of mono with only 4.5
> libraries is ~60mb so it's a ~3.6%. If think it's too much, I'll add
> an option to enable/disable compilation of it.

6 MB of 60 MB is 10%, not 3.6%. But ok, fair enough, I believe it's
quite reasonable to have this by default: Mono is anyway a huge beast.
I'll apply this patch.

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

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

* [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation
  2015-02-14  9:17       ` Thomas Petazzoni
@ 2015-02-14  9:19         ` Angelo Compagnucci
  0 siblings, 0 replies; 15+ messages in thread
From: Angelo Compagnucci @ 2015-02-14  9:19 UTC (permalink / raw)
  To: buildroot

Dear Thomas Petazzoni,

2015-02-14 10:17 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Angelo Compagnucci,
>
> On Sat, 14 Feb 2015 09:53:56 +0100, Angelo Compagnucci wrote:
>
>> libmono* size is ~6mb and the overrall size of mono with only 4.5
>> libraries is ~60mb so it's a ~3.6%. If think it's too much, I'll add
>> an option to enable/disable compilation of it.
>
> 6 MB of 60 MB is 10%, not 3.6%.

Honestly I don't know why i wrote such and idiocy, sorry!

> But ok, fair enough, I believe it's
> quite reasonable to have this by default: Mono is anyway a huge beast.
> I'll apply this patch.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com



-- 
Profile: http://it.linkedin.com/in/compagnucciangelo

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

* [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation Angelo Compagnucci
  2015-02-14  6:58   ` Thomas Petazzoni
@ 2015-02-14  9:24   ` Thomas Petazzoni
  1 sibling, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2015-02-14  9:24 UTC (permalink / raw)
  To: buildroot

Dear Angelo Compagnucci,

On Thu, 12 Feb 2015 14:49:30 +0100, Angelo Compagnucci wrote:
> This patch enables the compilation of mono library to be used
> in third party software.
> 
> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>

Applied, thanks.

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

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

* [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC Angelo Compagnucci
  2015-02-14  7:36   ` Thomas Petazzoni
@ 2015-02-15 14:13   ` Yann E. MORIN
  2015-02-21 22:47   ` Thomas Petazzoni
  2 siblings, 0 replies; 15+ messages in thread
From: Yann E. MORIN @ 2015-02-15 14:13 UTC (permalink / raw)
  To: buildroot

Angelo, All,

On 2015-02-12 14:49 +0100, Angelo Compagnucci spake thusly:
> This patch sets the default timezone to UTC if not overwritten.
> Some packages need a configured system timezone for properly
> operating like mono based software.
> 
> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>

I was at first a bit sceptic about the "Etc/" prefix, but indeed, UTC is
not a "top-level" timezone; I was confusing it with GMT, which is a
"top-level" timezone. So:

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  system/Config.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/system/Config.in b/system/Config.in
> index 95e10ab..d967002 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -371,6 +371,7 @@ config BR2_TARGET_TZ_ZONELIST
>  
>  config BR2_TARGET_LOCALTIME
>  	string "default local time"
> +	default "Etc/UTC"
>  	help
>  	  The time zone to install as the default local time, expressed as a
>  	  tzdata location, such as:
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC
  2015-02-12 13:49 ` [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC Angelo Compagnucci
  2015-02-14  7:36   ` Thomas Petazzoni
  2015-02-15 14:13   ` Yann E. MORIN
@ 2015-02-21 22:47   ` Thomas Petazzoni
  2 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2015-02-21 22:47 UTC (permalink / raw)
  To: buildroot

Dear Angelo Compagnucci,

On Thu, 12 Feb 2015 14:49:31 +0100, Angelo Compagnucci wrote:
> This patch sets the default timezone to UTC if not overwritten.
> Some packages need a configured system timezone for properly
> operating like mono based software.
> 
> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>

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] 15+ messages in thread

end of thread, other threads:[~2015-02-21 22:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12 13:49 [Buildroot] [PATCH v4 0/3] Adding GTK# package Angelo Compagnucci
2015-02-12 13:49 ` [Buildroot] [PATCH v4 1/3] package/mono: enable mono library compilation Angelo Compagnucci
2015-02-14  6:58   ` Thomas Petazzoni
2015-02-14  8:53     ` Angelo Compagnucci
2015-02-14  9:17       ` Thomas Petazzoni
2015-02-14  9:19         ` Angelo Compagnucci
2015-02-14  9:24   ` Thomas Petazzoni
2015-02-12 13:49 ` [Buildroot] [PATCH v4 2/3] system: Defaulting TZ_LOCALTIME to UTC Angelo Compagnucci
2015-02-14  7:36   ` Thomas Petazzoni
2015-02-14  8:09     ` Angelo Compagnucci
2015-02-15 14:13   ` Yann E. MORIN
2015-02-21 22:47   ` Thomas Petazzoni
2015-02-12 13:49 ` [Buildroot] [PATCH v4 3/3] package/gtksharp: new package Angelo Compagnucci
2015-02-14  7:44   ` Thomas Petazzoni
2015-02-14  8:28     ` Angelo Compagnucci

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.