ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Не отрабатывают условия в спеке
@ 2019-08-20 18:38 Антон Мидюков
  2019-08-20 18:48 ` Dmitry V. Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Антон Мидюков @ 2019-08-20 18:38 UTC (permalink / raw)
  To: ALT Devel discussion list

Здравствуйте

Нужен свежий взгляд на проблему.

Метапакеты openscada, openscada-visStation, openscada-server, 
openscada-plc лишились зависимостей после коммита mike@:

http://git.altlinux.org/gears/o/openscada.git?p=openscada.git;a=commitdiff;h=927daf4ebebe152df9c2898c1db6ff97e6307c8c

Почему не отрабатывают такие условия в спеке?

%{?_enabled_DBArch:Requires: %name-Archive.DBArch = %EVR}

если выше

%def_enable DBArch

Первым делом попробовал

-%{?_enabled_DBArch:Requires: %name-Archive.DBArch = %EVR}

+%{?_enable_DBArch:Requires: %name-Archive.DBArch = %EVR}

Не помогает.

-- 
С уважением, Антон Мидюков <antohami@altlinux.org>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Не отрабатывают условия в спеке
  2019-08-20 18:38 [devel] Не отрабатывают условия в спеке Антон Мидюков
@ 2019-08-20 18:48 ` Dmitry V. Levin
  2019-08-20 19:05   ` Michael Shigorin
  2019-08-21  6:14   ` Антон Мидюков
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry V. Levin @ 2019-08-20 18:48 UTC (permalink / raw)
  To: ALT Devel discussion list

On Wed, Aug 21, 2019 at 01:38:34AM +0700, Антон Мидюков wrote:
> Здравствуйте
> 
> Нужен свежий взгляд на проблему.
> 
> Метапакеты openscada, openscada-visStation, openscada-server, 
> openscada-plc лишились зависимостей после коммита mike@:
> 
> http://git.altlinux.org/gears/o/openscada.git?p=openscada.git;a=commitdiff;h=927daf4ebebe152df9c2898c1db6ff97e6307c8c
> 
> Почему не отрабатывают такие условия в спеке?
> 
> %{?_enabled_DBArch:Requires: %name-Archive.DBArch = %EVR}

Там в спеке эта опечатка сделана 130 раз, требуется
$ sed -i s/_enabled_/_enable_/ openscada.spec


-- 
ldv


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Не отрабатывают условия в спеке
  2019-08-20 18:48 ` Dmitry V. Levin
@ 2019-08-20 19:05   ` Michael Shigorin
  2019-08-27  8:03     ` Sergey V Turchin
  2019-08-21  6:14   ` Антон Мидюков
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Shigorin @ 2019-08-20 19:05 UTC (permalink / raw)
  To: devel

On Tue, Aug 20, 2019 at 09:48:17PM +0300, Dmitry V. Levin wrote:
> > Почему не отрабатывают такие условия в спеке?
> > %{?_enabled_DBArch:Requires: %name-Archive.DBArch = %EVR}
> Там в спеке эта опечатка сделана 130 раз, требуется
> $ sed -i s/_enabled_/_enable_/ openscada.spec

Виноват :-(

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Не отрабатывают условия в спеке
  2019-08-20 18:48 ` Dmitry V. Levin
  2019-08-20 19:05   ` Michael Shigorin
@ 2019-08-21  6:14   ` Антон Мидюков
  1 sibling, 0 replies; 5+ messages in thread
From: Антон Мидюков @ 2019-08-21  6:14 UTC (permalink / raw)
  To: devel

21.08.2019 1:48, Dmitry V. Levin пишет:
> On Wed, Aug 21, 2019 at 01:38:34AM +0700, Антон Мидюков wrote:
>> Здравствуйте
>>
>> Нужен свежий взгляд на проблему.
>>
>> Метапакеты openscada, openscada-visStation, openscada-server,
>> openscada-plc лишились зависимостей после коммита mike@:
>>
>> http://git.altlinux.org/gears/o/openscada.git?p=openscada.git;a=commitdiff;h=927daf4ebebe152df9c2898c1db6ff97e6307c8c
>>
>> Почему не отрабатывают такие условия в спеке?
>>
>> %{?_enabled_DBArch:Requires: %name-Archive.DBArch = %EVR}
> Там в спеке эта опечатка сделана 130 раз, требуется
> $ sed -i s/_enabled_/_enable_/ openscada.spec

Я первым делом все их исправил, но решил проверить отработку условий на 
BuildRequires, так как не надо было ждать, пока соберётся.

-%if_enabled MySQL
-BuildRequires: libMySQL-devel
-%endif
-%if_enabled FireBird
-BuildRequires: firebird-devel
-%endif
-%if_enabled PostgreSQL
-BuildRequires: postgresql-devel
-%endif
-%if_enabled System
-BuildRequires: libsensors3-devel
-%endif
-%if_enabled SNMP
-BuildRequires: libnet-snmp-devel
-%endif
-%if_enabled Comedi
-BuildRequires: libcomedi-devel
-%endif
+%{?_enable_MySQL:BuildRequires: libMySQL-devel}
+%{?_enable_FireBird:BuildRequires: firebird-devel}
+%{?_enable_PostgreSQLL:BuildRequires: postgresql-devel}
+%{?_enable_System:BuildRequires: libsensors3-devel}
+%{?_enable_SNMP:BuildRequires: libnet-snmp-devel}
+%{?_enable_Comedi:BuildRequires: libcomedi-devel}

И вот они не отрабатывали. И только сейчас увидел опечатку у себя: 
PostgreSQLL

Получается, сам себя заморочил.

Пакет исправленный в Сизиф уже отправил. Спасибо :-)

-- 
С уважением, Антон Мидюков <antohami@altlinux.org>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Не отрабатывают условия в спеке
  2019-08-20 19:05   ` Michael Shigorin
@ 2019-08-27  8:03     ` Sergey V Turchin
  0 siblings, 0 replies; 5+ messages in thread
From: Sergey V Turchin @ 2019-08-27  8:03 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Tuesday, 20 August 2019 22:05:30 MSK Michael Shigorin wrote:
> On Tue, Aug 20, 2019 at 09:48:17PM +0300, Dmitry V. Levin wrote:
> > > Почему не отрабатывают такие условия в спеке?
> > > %{?_enabled_DBArch:Requires: %name-Archive.DBArch = %EVR}
> > 
> > Там в спеке эта опечатка сделана 130 раз, требуется
> > $ sed -i s/_enabled_/_enable_/ openscada.spec
> 
> Виноват :-(
Вот поэтому я и просил сделать именование одинаковым, а не по правилам 
английского. Ты сам же и попался. ;-)

-- 
Regards, Sergey.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-27  8:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20 18:38 [devel] Не отрабатывают условия в спеке Антон Мидюков
2019-08-20 18:48 ` Dmitry V. Levin
2019-08-20 19:05   ` Michael Shigorin
2019-08-27  8:03     ` Sergey V Turchin
2019-08-21  6:14   ` Антон Мидюков

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