* [devel] Package noarch && arch subpackage @ 2011-01-26 17:58 Rinat Bikov 2011-01-26 18:54 ` Vladimir Lettiev 2011-01-26 19:11 ` Alexey Tourbin 0 siblings, 2 replies; 5+ messages in thread From: Rinat Bikov @ 2011-01-26 17:58 UTC (permalink / raw) To: ALT Linux Team development discussions Здравствуйте! А можно у нас при помощи rpm как-нибудь сделать так, чтобы основной пакет был noarch, а подпакет - arch? Вот здесь: http://www.altlinux.org/Spec#BuildArch сказано, что указание архитектуры влияет на все подпакеты, а в подпакетах может быть указано только noarch в качестве архитектуры. А что делать, если у меня основной пакет noarch, а подпакет - архитектурно-зависимый? :) Неужели разделять на 2 независимых пакета с различными spec'ами? -- С уважением, Ринат Биков. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] Package noarch && arch subpackage 2011-01-26 17:58 [devel] Package noarch && arch subpackage Rinat Bikov @ 2011-01-26 18:54 ` Vladimir Lettiev 2011-01-26 19:02 ` Ivan A. Melnikov 2011-01-26 19:11 ` Alexey Tourbin 1 sibling, 1 reply; 5+ messages in thread From: Vladimir Lettiev @ 2011-01-26 18:54 UTC (permalink / raw) To: ALT Linux Team development discussions On Wed, Jan 26, 2011 at 08:58:49PM +0300, Rinat Bikov wrote: > Здравствуйте! > А можно у нас при помощи rpm как-нибудь сделать так, чтобы основной > пакет был noarch, а подпакет - arch? > Вот здесь: http://www.altlinux.org/Spec#BuildArch сказано, что > указание архитектуры влияет на все подпакеты, а в подпакетах может > быть указано только noarch в качестве архитектуры. > А что делать, если у меня основной пакет noarch, а подпакет - > архитектурно-зависимый? :) Можно поменять местами: сделать подпакет основным, а основной как подпакет. > Неужели разделять на 2 независимых пакета с различными spec'ами? -- Vladimir Lettiev aka crux ✉ theCrux@gmail.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] Package noarch && arch subpackage 2011-01-26 18:54 ` Vladimir Lettiev @ 2011-01-26 19:02 ` Ivan A. Melnikov 2011-01-26 19:09 ` Rinat Bikov 0 siblings, 1 reply; 5+ messages in thread From: Ivan A. Melnikov @ 2011-01-26 19:02 UTC (permalink / raw) To: devel On Wed, 26 Jan 2011 21:54:04 +0300 Vladimir Lettiev <thecrux@gmail.com> wrote: > On Wed, Jan 26, 2011 at 08:58:49PM +0300, Rinat Bikov wrote: > > Здравствуйте! > > А можно у нас при помощи rpm как-нибудь сделать так, чтобы основной > > пакет был noarch, а подпакет - arch? > > Вот здесь: http://www.altlinux.org/Spec#BuildArch сказано, что > > указание архитектуры влияет на все подпакеты, а в подпакетах может > > быть указано только noarch в качестве архитектуры. > > А что делать, если у меня основной пакет noarch, а подпакет - > > архитектурно-зависимый? :) > > Можно поменять местами: сделать подпакет основным, а основной как > подпакет. Как вариант -- вообще не делать основного пакета ;) -- WBR, Ivan A. Melnikov ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] Package noarch && arch subpackage 2011-01-26 19:02 ` Ivan A. Melnikov @ 2011-01-26 19:09 ` Rinat Bikov 0 siblings, 0 replies; 5+ messages in thread From: Rinat Bikov @ 2011-01-26 19:09 UTC (permalink / raw) To: ALT Linux Team development discussions 26 января 2011 г. 22:02 пользователь Ivan A. Melnikov написал: >> On Wed, Jan 26, 2011 at 08:58:49PM +0300, Rinat Bikov wrote: >> > Здравствуйте! >> > А можно у нас при помощи rpm как-нибудь сделать так, чтобы основной >> > пакет был noarch, а подпакет - arch? >> > Вот здесь: http://www.altlinux.org/Spec#BuildArch сказано, что >> > указание архитектуры влияет на все подпакеты, а в подпакетах может >> > быть указано только noarch в качестве архитектуры. >> > А что делать, если у меня основной пакет noarch, а подпакет - >> > архитектурно-зависимый? :) >> >> Можно поменять местами: сделать подпакет основным, а основной как >> подпакет. > > Как вариант -- вообще не делать основного пакета ;) Основной пакет сделать метапакетом? :) -- С уважением, Ринат Биков. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] Package noarch && arch subpackage 2011-01-26 17:58 [devel] Package noarch && arch subpackage Rinat Bikov 2011-01-26 18:54 ` Vladimir Lettiev @ 2011-01-26 19:11 ` Alexey Tourbin 1 sibling, 0 replies; 5+ messages in thread From: Alexey Tourbin @ 2011-01-26 19:11 UTC (permalink / raw) To: ALT Linux Team development discussions On Wed, Jan 26, 2011 at 08:58:49PM +0300, Rinat Bikov wrote: > Здравствуйте! > А можно у нас при помощи rpm как-нибудь сделать так, чтобы основной > пакет был noarch, а подпакет - arch? Нет, пока нельзя (и в других версиях rpm тоже нельзя). Одна из проблем - rpm перезагружает макросы, когда встречает таг BuildArch в основном пакете (для "BuildAarch: noarch" загружается /usr/lib/rpm/noarch-alt-linux/macros). Другая проблема - это, по сути, придумать обозначение, как указать, что основной пакет нужно сделать noarch, но не загружать noarch макросы, а остальные пакеты оставить arch. Виктор force@ предлагал когда-то сделать новый таг в спекфайле (TargetArch). Сейчас мне пришла в голову мысль: может, лучше использовать перегрузку операторов, как в языке Си+плюс? Тогда можно будет записать, например, "BuildArch(pre): noarch", и это будет как раз означать, что только основной подпакет нужно сделать noarch. Или ещё лучше: "BuildArch(ru_RU): noarch". Это тогда будет значить, что только Русская национальная операционная сисьтема полностью поддерживает noarch подпакеты. К сожалению, в обоих случаях (новый таг или перегрузка операторов) старый rpm не сможет даже распарсить спекфайл с новой конструкцией. > Вот здесь: http://www.altlinux.org/Spec#BuildArch сказано, что > указание архитектуры влияет на все подпакеты, а в подпакетах может > быть указано только noarch в качестве архитектуры. > А что делать, если у меня основной пакет noarch, а подпакет - > архитектурно-зависимый? :) > Неужели разделять на 2 независимых пакета с различными spec'ами? > > -- > С уважением, Ринат Биков. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-01-26 19:11 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-01-26 17:58 [devel] Package noarch && arch subpackage Rinat Bikov 2011-01-26 18:54 ` Vladimir Lettiev 2011-01-26 19:02 ` Ivan A. Melnikov 2011-01-26 19:09 ` Rinat Bikov 2011-01-26 19:11 ` Alexey Tourbin
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