Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 257987

Summary: dev-lang/mono-2.2-r3: mkbundle2 --static doesn't work by default
Product: Gentoo Linux Reporter: Alexander E. Patrakov <patrakov>
Component: Current packagesAssignee: dotnet project <dotnet>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander E. Patrakov 2009-02-07 08:54:52 UTC
While building app-office/openoffice-3.0.0 with the "mono" USE flag:

mkbundle2 --static -L ../../unxlngi6.pro/lib --deps -o ../../unxlngi6.pro/bin/climaker ../../unxlngi6.pro/bin/climaker.exe ../../unxlngi6.pro/bin/cli_basetypes.dll
OS is: Linux
Note that statically linking the LGPL Mono runtime has more licensing restrictions than dynamically linking.
See http://www.mono-project.com/Licensing for details on licensing.
Sources: 2 Auto-dependencies: True
   embedding: /mnt/sda6/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/cli_ure/unxlngi6.pro/bin/climaker.exe
   embedding: /usr/lib/mono/2.0/mscorlib.dll
   embedding: /mnt/sda6/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/cli_ure/unxlngi6.pro/bin/cli_basetypes.dll
Compiling:
as -o temp.o temp.s 
gcc -o ../../unxlngi6.pro/bin/climaker -Wall `pkg-config --cflags mono` temp.c  `pkg-config --libs-only-L mono` -Wl,-Bstatic -lmono -Wl,-Bdynamic `pkg-config --libs-only-l mono | sed -e "s/\-lmono //"` temp.o
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lmono
collect2: ld returned 1 exit status

And indeed, static mono libraries don't exist on my system. They should either be added unconditionally, or the openoffice ebuild should check that mono is emerged with the proper USE flags.

Reproducible: Always

Steps to Reproduce:
Comment 1 Alexander E. Patrakov 2009-02-07 09:11:05 UTC
while app-office/openoffice-3.0.1 does contain the patch, it is still a bug that an option exists in the mkbundle2 manual page that actually doesn't work.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-09 12:29:58 UTC
The option works, the same as if you linked statically with a linker and the static libs didn't exist. We don't need the static libs, so we just don't build them. IOW, the solution to the problem is "don't do that."
This is a duplicate of 255845, which is fixed in openoffice 3.0.1

*** This bug has been marked as a duplicate of bug 255845 ***