Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340221 - dev-lang/mono-2.8 install broken mono.pc file
Summary: dev-lang/mono-2.8 install broken mono.pc file
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-09 03:30 UTC by Maciej Mrozowski
Modified: 2010-10-10 21:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Mrozowski gentoo-dev 2010-10-09 03:30:59 UTC
Latest mono installs mono.pc which is now broken (missing Cflags and Ldflags entries) and other packages which relying on it will now miscompile.

chroot pkgconfig # cat mono.pc 
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/lib64
includedir=${prefix}/include/mono-2.0
sysconfdir=/etc

Name: Mono
Description: Mono Runtime
Version: 2.8


mono-2.pc file is useful however. Even if it's supposed to be a new mono pkg-config entry superseding mono.pc, old one should work nevertheless, maybe even being symlink to mono-2.pc.

chroot pkgconfig # cat mono-2.pc 
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/lib64
includedir=${prefix}/include/mono-2.0
sysconfdir=/etc

Name: Mono
Description: Mono Runtime
Version: 2.8
Libs: -L${libdir}  -lmono-2.0  -lm -lrt  -ldl -lpthread
Cflags: -I${includedir} -D_REENTRANT
Comment 1 Pacho Ramos gentoo-dev 2010-10-10 21:37:11 UTC
As talked with upstream, this is the expected behavior:

"mono-2.pc is for C embedding. mono.pc is for .NET. The change is intentional."

But feel free to reopen if it is causing some problem (you refer to some mis-compilation problem but without providing and example neither build.log)