From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 20 Nov 2007 06:41:04 +0300 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20071120034104.GB23589@solemn.turbinal> Mail-Followup-To: ALT Devel discussion list References: <20071118210710.GA30730@hint1.office.altlinux.org> <20071118211201.GB18960@basalt.office.altlinux.org> <20071120023936.GA23589@solemn.turbinal> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: <20071120023936.GA23589@solemn.turbinal> Subject: [devel] mono.pc X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2007 03:40:43 -0000 Archived-At: List-Archive: List-Post: --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 20, 2007 at 05:39:36AM +0300, Alexey Tourbin wrote: > =F4=D5=D4 =D3=CC=D5=DE=C9=CC=D3=D1 =C5=DD=A3 =CF=C4=C9=CE =D0=D2=CF=CB=CF= =CC. =E4=C5=CC=CF =D7 =D4=CF=CD, =DE=D4=CF =CD=CF=CE=CF=D7=D3=CB=C9=C5 =D0= =C1=CB=C5=D4=D9 > =C9=D3=D0=CF=CC=D8=DA=D5=C0=D4 mono.pc =C4=CC=D1 =CF=C2=CE=C1=D2=D5=D6=C5= =CE=C9=D1 mono. =FC=D4=CF =CB=C1=CB =C2=D9 =CE=C5 =D3=CF=D7=D3=C5=CD > =D0=D2=C1=D7=C9=CC=D8=CE=CF, =D0=CF=D4=CF=CD =DE=D4=CF mono.pc =D0=CF=CC= =D5=DE=C1=C5=D4=D3=D1 =CF=D4 =D3=C2=CF=D2=CB=C9 =DE=C9=D3=D4=CF =D3=C9=DB= =CE=CF=C7=CF > libmono =C9 =D0=D2=C5=C4=CE=C1=DA=CE=C1=DE=C5=CE =C4=CC=D1 =CC=C9=CE=CB= =CF=D7=CB=C9 =D3 libmono. >=20 > Name: Mono > Requires: glib-2.0 gthread-2.0 > Libs: -L${libdir} -lmono -lpthread -ldl -lpthread -lm > Cflags: -I${includedir} -D_REENTRANT >=20 > =EB=CF=D2=CF=DE=C5, =D1 =D0=CF=CC=CF=D6=C9=CC mono.pc =D7 =CE=CF=D7=D9=CA= =D0=C1=CB=C5=D4 libmono-devel, =CE=C5 =CF=D3=CF=C2=CF =D0=CF=C4=D5=CD=C1=D7 > =CF =D4=CF=CD, =DE=D4=CF =CB=D4=CF-=D4=CF =CD=CF=D6=C5=D4 =C5=C7=CF =C9= =D3=D0=CF=CC=D8=DA=CF=D7=C1=D4=D8 =C4=CC=D1 =CF=C2=CE=C1=D2=D5=D6=C5=CE=C9= =D1 mono-=D2=C1=CE=D4=C1=CA=CD=C1. >=20 > =F4=C5=D0=C5=D2=D8 =DE=D4=CF =D3 =DC=D4=C9=CD =C4=C5=CC=C1=D4=D8. =F0=C1= =CB=C5=D4=D9 libmono-devel =C9 mono (=D2=C1=CE=D4=C1=CA=CD) =CE=C5 > =C4=CF=CC=D6=CE=D9 =CD=C5=D6=C4=D5 =D3=CF=C2=CF=CA =CE=C1=D0=D2=D1=CD=D5= =C0 =DA=C1=D7=C9=D3=C5=D4=D8. =F4=CF =C5=D3=D4=D8 =C4=CF=CC=D6=CE=C1 =CF= =D3=D4=C1=D4=D8=D3=D1 > =D7=CF=DA=CD=CF=D6=CE=CF=D3=D4=D8 =D5=D3=D4=C1=CE=CF=D7=C9=D4=D8 =CF=C4= =C9=CE =C9=DA =CE=C9=C8 =C2=C5=DA =C4=D2=D5=C7=CF=C7=CF. =F0=CF=DC=D4=CF= =CD=D5 =D1 =C4=D5=CD=C1=C0 =DE=D4=CF > mono.pc =D0=D2=C9=C4=A3=D4=D3=D1 =D0=D2=CF=C4=D5=C2=CC=C9=D2=CF=D7=C1=D4= =D8 =D3=D2=C1=DA=D5 =D7 =C4=D7=D5=C8 =DC=D4=C9=C8 =D0=C1=CB=C5=D4=C1=C8. =F7=CF=D4 =C2=CF=CC=C5=C5 =D2=C1=DA=D7=C5=D2=CE=D5=D4=D9=CA =CB=CF=CD=CD=C5= =CE=D4=C1=D2=C9=CA. commit bb80483a59906285ac251dc177e9ee8a5545d28b Author: Alexey Tourbin Date: Tue Nov 20 06:31:23 2007 +0300 spec: packaged mono.pc into both mono and libmono-devel =20 mono.pc is used for two different things: 1) for linkage with libmono; 2) in configure.ac, mono packages query mono.pc to detect if mono runti= me is installed. =20 There seems to be no easy way to rearrange dependencies so as to deal w= ith this ambiguity -- mono and libmono-devel should not explicitly depend on each other. However, I noticed that currently no package requires 'pkgconfig(mono)'. This means I can package the same mono.pc file into both mono and libmono-devel without adding yet more ambiguity. =20 Note that mono now requires glib2-devel. There's not much I can do abo= ut that. glib2 dependencies cannot be moved under Requires.private, because libm= ono-devel header files include glib2-devel header files. At the same time, I can= not ignore glib2-devel dependencies in mono package, because mono.pc is not= going to work unless all dependencies are met. diff --git a/mono.spec b/mono.spec index 9589173..714def5 100644 --- a/mono.spec +++ b/mono.spec @@ -121,6 +121,8 @@ ZipLib, I18N, Cairo and Mono.* ) %_monodir/*/cscompmgd %_monodir/*/cscompmgd.dll* %_monodir/*/mscorlib.dll* +# mono.pc is packaged into both mono and libmono-devel +%_pkgconfigdir/mono.pc %_pkgconfigdir/mono-cairo.pc %doc %_man1dir/mono.* %doc %_man1dir/mint.* --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHQldQfBKgtDjnu0YRAscJAKDfDHjpc/LAtcfVnnLeg4U869wkNgCgstV+ 2NkXYtTIvN11u0JMk9TKkrY= =n/8g -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--