Skip to contentSkip to conversation

mono: remove copy of host etc files on install

PATCH New Dustin Johnson 4 participants 11 messages Mar 15, 2017 – Jun 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)
package/mono/mono.mk +0 -1
index 20b920568..4996b7c60 100644
@@ -31,7 +31,6 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 define MONO_INSTALL_LIBS
 	rsync -av --exclude=*.so --exclude=*.mdb \
 		$(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
-	rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
 endef
 
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
Signature · 1 line
2.12.0.windows.1
#1 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

Hello,

Angelo, could you comment on this patch touching the Mono package?

Copying $(HOST_DIR)/etc/mono to $(TARGET_DIR)/etc has been there since you contributed the package, but apparently causes some issues. It would be nice if you could have a look at the patch proposed by Dustin.

Thanks a lot!

Thomas

Quoted 26 lines · Dustin Johnson

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)
package/mono/mono.mk +0 -1
index 20b920568..4996b7c60 100644
@@ -31,7 +31,6 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 define MONO_INSTALL_LIBS
 	rsync -av --exclude=*.so --exclude=*.mdb \
 		$(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
-	rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
 endef
 
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
author
#2 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

Angelo,

Below is the diff between staging and host. I am using a Ubuntu VM to compile for an ARM target with uCLibc.
The appropriate .so files (libc.so.0) are referenced in the config file in the staging directory but not in the host.
The patch I referenced in my commit is:
*
package/mono/0002-Adjust-libc.so-path-depending-on-C-library-being-use.patch This patch addresses the proper generation of the /etc/mono/config file in the staging directory, I believe.

Thanks!

Dusty

diff -u output/host/etc/mono/ output/staging/etc/mono/ Common subdirectories: output/host/etc/mono/2.0 and output/staging/etc/mono/2.0
Common subdirectories: output/host/etc/mono/4.0 and output/staging/etc/mono/4.0
Common subdirectories: output/host/etc/mono/4.5 and output/staging/etc/mono/4.5

staging/etc/mono/config 2017-03-15 02:31:40.272008856 +0000 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +2 -3
diff -u output/host/etc/mono/config output/staging/etc/mono/config
@@ -1,9 +1,9 @@
 <configuration>
-       <dllmap dll="i:cygwin1.dll" target="libc.so.6" os="!windows" />
-       <dllmap dll="libc" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:cygwin1.dll" target="libc.so.0" os="!windows" />
+       <dllmap dll="libc" target="libc.so.0" os="!windows"/>
        <dllmap dll="intl" target="libc.so.6" os="!windows"/>
-       <dllmap dll="intl" name="bind_textdomain_codeset"

target="libc.so.6" os="solaris"/>
- <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.6" os="solaris"/>
+ <dllmap dll="intl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>
+ <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>

        <dllmap dll="libintl" target="libc.so.6" os="!windows"/>
        <dllmap dll="i:libxslt.dll" target="libxslt.so" os="!windows"/>
        <dllmap dll="i:odbc32.dll" target="libodbc.so" os="!windows"/>
@@ -11,11 +11,11 @@
        <dllmap dll="oci" target="libclntsh.so" os="!windows"/>
        <dllmap dll="db2cli" target="libdb2_36.so" os="!windows"/>
        <dllmap dll="MonoPosixHelper"
target="$mono_libdir/libMonoPosixHelper.so" os="!windows" />
-       <dllmap dll="i:msvcrt" target="libc.so.6" os="!windows"/>
-       <dllmap dll="i:msvcrt.dll" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:msvcrt" target="libc.so.0" os="!windows"/>
+       <dllmap dll="i:msvcrt.dll" target="libc.so.0" os="!windows"/>
        <dllmap dll="sqlite" target="libsqlite.so.0" os="!windows"/>
        <dllmap dll="sqlite3" target="libsqlite3.so.0" os="!windows"/>
-       <dllmap dll="libX11" target="libX11.so.6" os="!windows" />
+       <dllmap dll="libX11" target="libX11.so" os="!windows" />
        <dllmap dll="libgdk-x11-2.0" target="libgdk-x11-2.0.so.0"
os="!windows"/>
        <dllmap dll="libgtk-x11-2.0" target="libgtk-x11-2.0.so.0"

os="!windows"/>
<dllmap dll="libXinerama" target="libXinerama.so.1" os="!windows" />
Only in output/host/etc/mono/: mconfig

Quoted 38 lines · Thomas Petazzoni

Hello,

Angelo, could you comment on this patch touching the Mono package?

Copying $(HOST_DIR)/etc/mono to $(TARGET_DIR)/etc has been there since you contributed the package, but apparently causes some issues. It would be nice if you could have a look at the patch proposed by Dustin.

Thanks a lot!

Thomas

Quoted 25 lines · Dustin Johnson

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)
package/mono/mono.mk +0 -1
index 20b920568..4996b7c60 100644
@@ -31,7 +31,6 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 define MONO_INSTALL_LIBS
      rsync -av --exclude=*.so --exclude=*.mdb \
              $(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
-     rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
 endef
 
Quoted 9 lines

package/mono/mono.mk MONO_CONF_OPTS = --disable-gtk-doc \ · line 36

Quoted 1 line
package/mono/mono.mk +0 -0
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170319/fe5a6ee2/attachment.html>

#3 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

Dusty, Thomas,

2017-03-19 17:17 GMT+01:00 Dusty <[email protected]>:

Quoted 12 lines

Angelo,

Below is the diff between staging and host. I am using a Ubuntu VM to compile for an ARM target with uCLibc.
The appropriate .so files (libc.so.0) are referenced in the config file in the staging directory but not in the host.
The patch I referenced in my commit is:
* package/mono/0002-Adjust-libc.so-path-depending-on-C-
library-being-use.patch
This patch addresses the proper generation of the /etc/mono/config file in the staging directory, I believe.

Quoted 2 lines

Thanks!

I'm looking at this but honestly I don't remember too much of it!

Quoted 106 lines

Dusty

diff -u output/host/etc/mono/ output/staging/etc/mono/ Common subdirectories: output/host/etc/mono/2.0 and output/staging/etc/mono/2.0
Common subdirectories: output/host/etc/mono/4.0 and output/staging/etc/mono/4.0
Common subdirectories: output/host/etc/mono/4.5 and output/staging/etc/mono/4.5
diff -u output/host/etc/mono/config output/staging/etc/mono/config

staging/etc/mono/config 2017-03-15 02:31:40.272008856 +0000 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +2 -3
@@ -1,9 +1,9 @@
 <configuration>
-       <dllmap dll="i:cygwin1.dll" target="libc.so.6" os="!windows" />
-       <dllmap dll="libc" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:cygwin1.dll" target="libc.so.0" os="!windows" />
+       <dllmap dll="libc" target="libc.so.0" os="!windows"/>
        <dllmap dll="intl" target="libc.so.6" os="!windows"/>
-       <dllmap dll="intl" name="bind_textdomain_codeset"

target="libc.so.6" os="solaris"/>
- <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.6" os="solaris"/>
+ <dllmap dll="intl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>
+ <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>

        <dllmap dll="libintl" target="libc.so.6" os="!windows"/>
        <dllmap dll="i:libxslt.dll" target="libxslt.so" os="!windows"/>
        <dllmap dll="i:odbc32.dll" target="libodbc.so" os="!windows"/>
staging/etc/mono/config 2017-03-15 02:31:40.272008856 +0000 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +0 -0
@@ -11,11 +11,11 @@
        <dllmap dll="oci" target="libclntsh.so" os="!windows"/>
        <dllmap dll="db2cli" target="libdb2_36.so" os="!windows"/>
        <dllmap dll="MonoPosixHelper" target="$mono_libdir/libMonoPosixHelper.so"

os="!windows" />

staging/etc/mono/config 2017-03-15 02:31:40.272008856 +0000 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +3 -3
-       <dllmap dll="i:msvcrt" target="libc.so.6" os="!windows"/>
-       <dllmap dll="i:msvcrt.dll" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:msvcrt" target="libc.so.0" os="!windows"/>
+       <dllmap dll="i:msvcrt.dll" target="libc.so.0" os="!windows"/>
        <dllmap dll="sqlite" target="libsqlite.so.0" os="!windows"/>
        <dllmap dll="sqlite3" target="libsqlite3.so.0" os="!windows"/>
-       <dllmap dll="libX11" target="libX11.so.6" os="!windows" />
+       <dllmap dll="libX11" target="libX11.so" os="!windows" />
        <dllmap dll="libgdk-x11-2.0" target="libgdk-x11-2.0.so.0"

os="!windows"/>

        <dllmap dll="libgtk-x11-2.0" target="libgtk-x11-2.0.so.0"

os="!windows"/>
<dllmap dll="libXinerama" target="libXinerama.so.1" os="!windows"
/>
Only in output/host/etc/mono/: mconfig

Quoted 47 lines · Thomas Petazzoni

Hello,

Angelo, could you comment on this patch touching the Mono package?

Copying $(HOST_DIR)/etc/mono to $(TARGET_DIR)/etc has been there since you contributed the package, but apparently causes some issues. It would be nice if you could have a look at the patch proposed by Dustin.

Thanks a lot!

Thomas

Quoted 19 lines · Dustin Johnson

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)
package/mono/mono.mk +0 -0
index 20b920568..4996b7c60 100644

package/mono/mono.mk MONO_CONF_OPTS = --disable-gtk-doc \ · line 36

Quoted 7 lines
package/mono/mono.mk +0 -1
@@ -31,7 +31,6 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 define MONO_INSTALL_LIBS
      rsync -av --exclude=*.so --exclude=*.mdb \
              $(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
-     rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
 endef
 
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS

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

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170406/35c60a32/attachment.html>
#4 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

In reply to Dusty

Dusty,

2017-03-19 17:17 GMT+01:00 Dusty <[email protected]>:

Quoted 12 lines

Angelo,

Below is the diff between staging and host. I am using a Ubuntu VM to compile for an ARM target with uCLibc.
The appropriate .so files (libc.so.0) are referenced in the config file in the staging directory but not in the host.
The patch I referenced in my commit is:
* package/mono/0002-Adjust-libc.so-path-depending-on-C-
library-being-use.patch
This patch addresses the proper generation of the /etc/mono/config file in the staging directory, I believe.

Quoted 2 lines

Thanks!

Could you send me a minimal example that exibits the problem?!

Thanks!

Quoted 106 lines

Dusty

diff -u output/host/etc/mono/ output/staging/etc/mono/ Common subdirectories: output/host/etc/mono/2.0 and output/staging/etc/mono/2.0
Common subdirectories: output/host/etc/mono/4.0 and output/staging/etc/mono/4.0
Common subdirectories: output/host/etc/mono/4.5 and output/staging/etc/mono/4.5
diff -u output/host/etc/mono/config output/staging/etc/mono/config

staging/etc/mono/config 2017-03-15 02:31:40.272008856 +0000 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +2 -3
@@ -1,9 +1,9 @@
 <configuration>
-       <dllmap dll="i:cygwin1.dll" target="libc.so.6" os="!windows" />
-       <dllmap dll="libc" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:cygwin1.dll" target="libc.so.0" os="!windows" />
+       <dllmap dll="libc" target="libc.so.0" os="!windows"/>
        <dllmap dll="intl" target="libc.so.6" os="!windows"/>
-       <dllmap dll="intl" name="bind_textdomain_codeset"

target="libc.so.6" os="solaris"/>
- <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.6" os="solaris"/>
+ <dllmap dll="intl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>
+ <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>

        <dllmap dll="libintl" target="libc.so.6" os="!windows"/>
        <dllmap dll="i:libxslt.dll" target="libxslt.so" os="!windows"/>
        <dllmap dll="i:odbc32.dll" target="libodbc.so" os="!windows"/>
staging/etc/mono/config 2017-03-15 02:31:40.272008856 +0000 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +0 -0
@@ -11,11 +11,11 @@
        <dllmap dll="oci" target="libclntsh.so" os="!windows"/>
        <dllmap dll="db2cli" target="libdb2_36.so" os="!windows"/>
        <dllmap dll="MonoPosixHelper" target="$mono_libdir/libMonoPosixHelper.so"

os="!windows" />

staging/etc/mono/config 2017-03-15 02:31:40.272008856 +0000 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +3 -3
-       <dllmap dll="i:msvcrt" target="libc.so.6" os="!windows"/>
-       <dllmap dll="i:msvcrt.dll" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:msvcrt" target="libc.so.0" os="!windows"/>
+       <dllmap dll="i:msvcrt.dll" target="libc.so.0" os="!windows"/>
        <dllmap dll="sqlite" target="libsqlite.so.0" os="!windows"/>
        <dllmap dll="sqlite3" target="libsqlite3.so.0" os="!windows"/>
-       <dllmap dll="libX11" target="libX11.so.6" os="!windows" />
+       <dllmap dll="libX11" target="libX11.so" os="!windows" />
        <dllmap dll="libgdk-x11-2.0" target="libgdk-x11-2.0.so.0"

os="!windows"/>

        <dllmap dll="libgtk-x11-2.0" target="libgtk-x11-2.0.so.0"

os="!windows"/>
<dllmap dll="libXinerama" target="libXinerama.so.1" os="!windows"
/>
Only in output/host/etc/mono/: mconfig

Quoted 47 lines · Thomas Petazzoni

Hello,

Angelo, could you comment on this patch touching the Mono package?

Copying $(HOST_DIR)/etc/mono to $(TARGET_DIR)/etc has been there since you contributed the package, but apparently causes some issues. It would be nice if you could have a look at the patch proposed by Dustin.

Thanks a lot!

Thomas

Quoted 19 lines · Dustin Johnson

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)
package/mono/mono.mk +0 -0
index 20b920568..4996b7c60 100644

package/mono/mono.mk MONO_CONF_OPTS = --disable-gtk-doc \ · line 36

Quoted 7 lines
package/mono/mono.mk +0 -1
@@ -31,7 +31,6 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 define MONO_INSTALL_LIBS
      rsync -av --exclude=*.so --exclude=*.mdb \
              $(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
-     rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
 endef
 
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS

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

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170406/39ef81c2/attachment.html>
#5 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

Here is a simple defconfig for the specific board I am using with a fresh checkout from latest Git:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
BR2_ARM_ENABLE_VFP=y
BR2_ARM_FPU_VFPV3=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/udoo/neo/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/udoo/neo/post-image.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.10" BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6sx-udoo-neo-basic imx6sx-udoo-neo-full imx6sx-udoo-neo-extended" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_PACKAGE_MONO=y
BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BOARDNAME="udoo_neo" BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.01" BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="SPL" BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS=y

And here is what I get from the differences between Staging and Target

$ diff -u output/target/etc/mono/ output/staging/etc/mono/
Common subdirectories: output/target/etc/mono/2.0 and
output/staging/etc/mono/2.0
Common subdirectories: output/target/etc/mono/4.0 and
output/staging/etc/mono/4.0
Common subdirectories: output/target/etc/mono/4.5 and
output/staging/etc/mono/4.5
diff -u output/target/etc/mono/config output/staging/etc/mono/config
--- output/target/etc/mono/config       2017-04-08 01:46:12.883008999 +0000
+++ output/staging/etc/mono/config      2017-04-08 01:57:03.535008999 +0000
@@ -1,9 +1,9 @@
 <configuration>
-       <dllmap dll="i:cygwin1.dll" target="libc.so.6" os="!windows" />
-       <dllmap dll="libc" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:cygwin1.dll" target="libc.so.0" os="!windows" />
+       <dllmap dll="libc" target="libc.so.0" os="!windows"/>
        <dllmap dll="intl" target="libc.so.6" os="!windows"/>
-       <dllmap dll="intl" name="bind_textdomain_codeset"
target="libc.so.6" os="solaris"/>
-       <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.6" os="solaris"/>
+       <dllmap dll="intl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>
+       <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>
        <dllmap dll="libintl" target="libc.so.6" os="!windows"/>
        <dllmap dll="i:libxslt.dll" target="libxslt.so" os="!windows"/>
        <dllmap dll="i:odbc32.dll" target="libodbc.so" os="!windows"/>
@@ -11,11 +11,11 @@
        <dllmap dll="oci" target="libclntsh.so" os="!windows"/>
        <dllmap dll="db2cli" target="libdb2_36.so" os="!windows"/>
        <dllmap dll="MonoPosixHelper"
target="$mono_libdir/libMonoPosixHelper.so" os="!windows" />
-       <dllmap dll="i:msvcrt" target="libc.so.6" os="!windows"/>
-       <dllmap dll="i:msvcrt.dll" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:msvcrt" target="libc.so.0" os="!windows"/>
+       <dllmap dll="i:msvcrt.dll" target="libc.so.0" os="!windows"/>
        <dllmap dll="sqlite" target="libsqlite.so.0" os="!windows"/>
        <dllmap dll="sqlite3" target="libsqlite3.so.0" os="!windows"/>
-       <dllmap dll="libX11" target="libX11.so.6" os="!windows" />
+       <dllmap dll="libX11" target="libX11.so" os="!windows" />
        <dllmap dll="libgdk-x11-2.0" target="libgdk-x11-2.0.so.0"
os="!windows"/>
        <dllmap dll="libgtk-x11-2.0" target="libgtk-x11-2.0.so.0"
os="!windows"/>
        <dllmap dll="libXinerama" target="libXinerama.so.1" os="!windows" />
Only in output/target/etc/mono/: mconfig
Quoted 133 lines · Angelo Compagnucci

Dusty,

2017-03-19 17:17 GMT+01:00 Dusty <[email protected]>:

Quoted 12 lines

Angelo,

Below is the diff between staging and host. I am using a Ubuntu VM to compile for an ARM target with uCLibc.
The appropriate .so files (libc.so.0) are referenced in the config file in the staging directory but not in the host.
The patch I referenced in my commit is:
* package/mono/0002-Adjust-libc.so-path-depending-on-C-library
-being-use.patch
This patch addresses the proper generation of the /etc/mono/config file in the staging directory, I believe.

Quoted 2 lines

Thanks!

Could you send me a minimal example that exibits the problem?!

Thanks!

Quoted 49 lines

Dusty

diff -u output/host/etc/mono/ output/staging/etc/mono/ Common subdirectories: output/host/etc/mono/2.0 and output/staging/etc/mono/2.0
Common subdirectories: output/host/etc/mono/4.0 and output/staging/etc/mono/4.0
Common subdirectories: output/host/etc/mono/4.5 and output/staging/etc/mono/4.5
diff -u output/host/etc/mono/config output/staging/etc/mono/config

staging/etc/mono/config 2017-03-15 02:31:40.272008856 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +3 -3
+0000
@@ -1,9 +1,9 @@
 <configuration>
-       <dllmap dll="i:cygwin1.dll" target="libc.so.6" os="!windows" />
-       <dllmap dll="libc" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:cygwin1.dll" target="libc.so.0" os="!windows" />
+       <dllmap dll="libc" target="libc.so.0" os="!windows"/>
        <dllmap dll="intl" target="libc.so.6" os="!windows"/>
-       <dllmap dll="intl" name="bind_textdomain_codeset"

target="libc.so.6" os="solaris"/>
- <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.6" os="solaris"/>
+ <dllmap dll="intl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>
+ <dllmap dll="libintl" name="bind_textdomain_codeset"
target="libc.so.0" os="solaris"/>

        <dllmap dll="libintl" target="libc.so.6" os="!windows"/>
        <dllmap dll="i:libxslt.dll" target="libxslt.so" os="!windows"/>
        <dllmap dll="i:odbc32.dll" target="libodbc.so" os="!windows"/>
staging/etc/mono/config 2017-03-15 02:31:40.272008856 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +0 -0
@@ -11,11 +11,11 @@
        <dllmap dll="oci" target="libclntsh.so" os="!windows"/>
        <dllmap dll="db2cli" target="libdb2_36.so" os="!windows"/>
        <dllmap dll="MonoPosixHelper" target="$mono_libdir/libMonoPosixHelper.so"

os="!windows" />

staging/etc/mono/config 2017-03-15 02:31:40.272008856 renamed from host/etc/mono/config 2017-03-12 22:53:07.450555843 +0000 +3 -3
-       <dllmap dll="i:msvcrt" target="libc.so.6" os="!windows"/>
-       <dllmap dll="i:msvcrt.dll" target="libc.so.6" os="!windows"/>
+       <dllmap dll="i:msvcrt" target="libc.so.0" os="!windows"/>
+       <dllmap dll="i:msvcrt.dll" target="libc.so.0" os="!windows"/>
        <dllmap dll="sqlite" target="libsqlite.so.0" os="!windows"/>
        <dllmap dll="sqlite3" target="libsqlite3.so.0" os="!windows"/>
-       <dllmap dll="libX11" target="libX11.so.6" os="!windows" />
+       <dllmap dll="libX11" target="libX11.so" os="!windows" />
        <dllmap dll="libgdk-x11-2.0" target="libgdk-x11-2.0.so.0"

os="!windows"/>

        <dllmap dll="libgtk-x11-2.0" target="libgtk-x11-2.0.so.0"
Quoted 58 lines

os="!windows"/>
<dllmap dll="libXinerama" target="libXinerama.so.1" os="!windows"
/>
Only in output/host/etc/mono/: mconfig

Quoted 47 lines · Thomas Petazzoni

Hello,

Angelo, could you comment on this patch touching the Mono package?

Copying $(HOST_DIR)/etc/mono to $(TARGET_DIR)/etc has been there since you contributed the package, but apparently causes some issues. It would be nice if you could have a look at the patch proposed by Dustin.

Thanks a lot!

Thomas

Quoted 19 lines · Dustin Johnson

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)
package/mono/mono.mk +0 -0
index 20b920568..4996b7c60 100644

package/mono/mono.mk MONO_CONF_OPTS = --disable-gtk-doc \ · line 36

Quoted 7 lines
package/mono/mono.mk +0 -1
@@ -31,7 +31,6 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 define MONO_INSTALL_LIBS
      rsync -av --exclude=*.so --exclude=*.mdb \
              $(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
-     rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
 endef
 
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS

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

Quoted 3 lines

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170407/ff1a6dc5/attachment.html>

#6 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

In reply to Angelo Compagnucci

Angelo,

Quoted 10 lines · Angelo Compagnucci
Quoted 10 lines

Below is the diff between staging and host. I am using a Ubuntu VM to compile for an ARM target with uCLibc.
The appropriate .so files (libc.so.0) are referenced in the config file in the staging directory but not in the host.
The patch I referenced in my commit is:
* package/mono/0002-Adjust-libc.so-path-depending-on-C-
library-being-use.patch
This patch addresses the proper generation of the /etc/mono/config file in the staging directory, I believe.

Quoted 4 lines
Quoted 2 lines

Thanks!

Could you send me a minimal example that exibits the problem?!

Do you have some further feedback on this issue? Dustin's patch is still pending, waiting for you to confirm or not the issue and indicate if Dustin's solution is the most appropriate or not.

Thanks for your feedback,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#7 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

Dear Thomas, Dusty,

2017-05-13 15:27 GMT+02:00 Thomas Petazzoni
<[email protected]>:

Quoted 14 lines

Angelo,

Quoted 10 lines · Angelo Compagnucci
Quoted 10 lines

Below is the diff between staging and host. I am using a Ubuntu VM to compile for an ARM target with uCLibc.
The appropriate .so files (libc.so.0) are referenced in the config file in the staging directory but not in the host.
The patch I referenced in my commit is:
* package/mono/0002-Adjust-libc.so-path-depending-on-C-
library-being-use.patch
This patch addresses the proper generation of the /etc/mono/config file in the staging directory, I believe.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Thanks!

Could you send me a minimal example that exibits the problem?!

Do you have some further feedback on this issue? Dustin's patch is still pending, waiting for you to confirm or not the issue and indicate if Dustin's solution is the most appropriate or not.

Sorry for the late reply. The patch is good, I tested it and it solves a real bug. Great Dustin that nailed it, good catch!

Quoted 7 lines

Thanks for your feedback,

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

Signature · 1 line
Profile: http://it.linkedin.com/in/compagnucciangelo
#8 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

In reply to Dustin Johnson

2017-03-15 3:24 GMT+01:00 Dustin Johnson <[email protected]>:

Quoted 10 lines

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

Quoted 23 lines
---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)
package/mono/mono.mk +0 -2
index 20b920568..4996b7c60 100644
@@ -31,7 +31,6 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 define MONO_INSTALL_LIBS
        rsync -av --exclude=*.so --exclude=*.mdb \
                $(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
-       rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
 endef
 
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
--

2.12.0.windows.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 1 line
Profile: http://it.linkedin.com/in/compagnucciangelo
#9 lore raw

PATCH 1/1 mono: remove copy of host etc files on install

Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Angelo" == Angelo Compagnucci <[email protected]> writes:

2017-03-15 3:24 GMT+01:00 Dustin Johnson <[email protected]>:

Quoted 9 lines

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

Quoted 4 lines
Quoted 1 line

Committed to 2017.02.x, thanks.

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

PATCH 1/1 mono: remove copy of host etc files on install

In reply to Dustin Johnson

Hello,

Quoted 9 lines · Dustin Johnson

When the mono package is installed, the autotools installer installs the /etc/mono files to the target. A post_install hook then copies over the mono libraries to the target as well as the host /etc/mono files which overrides the target files. The target specific mono configuration file (/etc/mono/config) is overridden with the host settings. This causes mono on the target to be unable to locate target specific .so files as it overrides the changes enacted by the patches for the package.

Quoted 4 lines
---
 package/mono/mono.mk | 1 -
 1 file changed, 1 deletion(-)

Applied to master, thanks. Thanks also to Angelo for having tested/reviewed the patch!

Best regards,

Thomas

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