From: Alexey Tourbin <at@altlinux.ru> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: [devel] mono.pc Date: Tue, 20 Nov 2007 06:41:04 +0300 Message-ID: <20071120034104.GB23589@solemn.turbinal> (raw) In-Reply-To: <20071120023936.GA23589@solemn.turbinal> [-- Attachment #1: Type: text/plain, Size: 2471 bytes --] On Tue, Nov 20, 2007 at 05:39:36AM +0300, Alexey Tourbin wrote: > Тут случился ещё один прокол. Дело в том, что моновские пакеты > используют mono.pc для обнаружения mono. Это как бы не совсем > правильно, потом что mono.pc получается от сборки чисто сишного > libmono и предназначен для линковки с libmono. > > Name: Mono > Requires: glib-2.0 gthread-2.0 > Libs: -L${libdir} -lmono -lpthread -ldl -lpthread -lm > Cflags: -I${includedir} -D_REENTRANT > > Короче, я положил mono.pc в новый пакет libmono-devel, не особо подумав > о том, что кто-то может его использовать для обнаружения mono-рантайма. > > Теперь что с этим делать. Пакеты libmono-devel и mono (рантайм) не > должны между собой напрямую зависеть. То есть должна остаться > возможность установить один из них без другого. Поэтому я думаю что > mono.pc придётся продублировать сразу в двух этих пакетах. Вот более развернутый комментарий. commit bb80483a59906285ac251dc177e9ee8a5545d28b Author: Alexey Tourbin <at@altlinux> Date: Tue Nov 20 06:31:23 2007 +0300 spec: packaged mono.pc into both mono and libmono-devel 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 runtime is installed. There seems to be no easy way to rearrange dependencies so as to deal with 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. Note that mono now requires glib2-devel. There's not much I can do about that. glib2 dependencies cannot be moved under Requires.private, because libmono-devel header files include glib2-devel header files. At the same time, I cannot 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.* [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-11-20 3:41 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-11-18 21:10 ` [devel] Q: fontconfig-2.5.0-alt1 Dmitry V. Levin 2007-11-19 7:23 ` Valery V. Inozemtsev 2007-11-19 10:02 ` Sergey Bolshakov 2007-11-19 10:04 ` Slava Semushin 2007-11-19 10:05 ` Valery V. Inozemtsev 2007-11-19 10:19 ` Sergey Bolshakov 2007-11-18 21:12 ` [devel] [cyber] I: Sisyphus-20071119 i586 beehive_status: +17 -15 (106) Dmitry V. Levin 2007-11-19 8:23 ` Alexey Shabalin 2007-11-19 12:56 ` Alexey Shabalin 2007-11-20 2:10 ` [devel] " Alexey Tourbin 2007-11-20 2:39 ` Alexey Tourbin 2007-11-20 3:41 ` Alexey Tourbin [this message] 2007-11-27 5:55 ` Ildar Mulyukov 2007-11-27 6:50 ` Alexey Tourbin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20071120034104.GB23589@solemn.turbinal \ --to=at@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git