ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: For Qt/KDE manteiners
@ 2002-10-02 17:14 Sergey V. Turchin
  2002-10-02 17:30 ` Alexander Bokovoy
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Sergey V. Turchin @ 2002-10-02 17:14 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all!

Не нашел способа обойти несмену soname у Qt3-3.0.5,
чем этот:

Все пакеты зависящие от Qt должны иметь зависимость
Requires: libqt3-c++compiled = 3.2
KDE-шные 
Requires: kdelibs-c++compiled = 3.2

Они соответственно это предоставляют начиная с 
libqt3-3.0.5-alt11
kdelibs-3.0.3-alt8

Строки зависимостей можно получить способом,
показаным в прикрепленных файлах.

Пересоберите пожалуйста все свои Qt/KDE программы
с указанием таких зависимостей.

- -- 
Regards, ZerG

### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9mymN+zBIrxwqPwgRAlT8AKCE3uguTY2TyetPXjduyVDWP2Ok9QCgkVJ9
v8npy9kg/kZ+lXpnhqOO4DI=
=T138
-----END PGP SIGNATURE-----

[-- Attachment #2: gccver.c --]
[-- Type: text/x-csrc, Size: 185 bytes --]

#include <ansidecl.h>
#include <stdio.h>
int main(int argc, char **argv) {
	if(argc==1)
		printf("%u\n", GCC_VERSION);
	else
		printf("%u.%u\n", __GNUC__, __GNUC_MINOR__);
	return 0;
}

[-- Attachment #3: qt_kde_program.spec --]
[-- Type: text/plain, Size: 314 bytes --]

%define gccver %(gcc -o %_builddir/gccver %_sourcedir/gccver.c >/dev/null 2>&1 ; %_builddir/gccver -v)

Source1000: gccver.c

#if library
Provides: lib%name-c++compiled = %gccver

Requires: libqt3-c++compiled = %gccver
# or
Requires: kdelibs-c++compiled = %gccver
# or
Requires: lib_koe_chto-c++compiled = %gccver

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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-02 17:14 [devel] I: For Qt/KDE manteiners Sergey V. Turchin
@ 2002-10-02 17:30 ` Alexander Bokovoy
  2002-10-03  8:02   ` Sergey V. Turchin
  2002-10-02 17:49 ` Dmitry V. Levin
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 13+ messages in thread
From: Alexander Bokovoy @ 2002-10-02 17:30 UTC (permalink / raw)
  To: devel

On Wed, Oct 02, 2002 at 09:14:48PM +0400, Sergey V. Turchin wrote:
> Не нашел способа обойти несмену soname у Qt3-3.0.5,
> чем этот:
[..]

> %define gccver %(gcc -o %_builddir/gccver %_sourcedir/gccver.c >/dev/null 2>&1 ; %_builddir/gccver -v)
Вот такое будет получше, видимо:

%define gccver %(gcc -v 2>&1|tail -1|cut -d' ' -f 3)

Работает так:
$ rpm --eval "%define gccver %(gcc -v 2>&1|tail -1|cut -d' ' -f 3)
Requires: libqt3-c++compiled = %gccver"
 
Requires: libqt3-c++compiled = 2.96


-- 
/ Alexander Bokovoy
---
"Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs."
(By Dennis Ritchie)


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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-02 17:14 [devel] I: For Qt/KDE manteiners Sergey V. Turchin
  2002-10-02 17:30 ` Alexander Bokovoy
@ 2002-10-02 17:49 ` Dmitry V. Levin
  2002-10-03  7:24   ` Sergey Vlasov
  2002-10-03  8:12   ` Sergey V. Turchin
  2002-10-03  7:20 ` Sergey Vlasov
  2002-10-03  8:40 ` [devel] I: Qt/KDE программы. Окончательный вариант Sergey V. Turchin
  3 siblings, 2 replies; 13+ messages in thread
From: Dmitry V. Levin @ 2002-10-02 17:49 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

On Wed, Oct 02, 2002 at 09:14:48PM +0400, Sergey V. Turchin wrote:
> Не нашел способа обойти несмену soname у Qt3-3.0.5,
> чем этот:
> 
> Все пакеты зависящие от Qt должны иметь зависимость
> Requires: libqt3-c++compiled = 3.2
> KDE-шные 
> Requires: kdelibs-c++compiled = 3.2
> 
> Они соответственно это предоставляют начиная с 
> libqt3-3.0.5-alt11
> kdelibs-3.0.3-alt8
> 
> Строки зависимостей можно получить способом,
> показаным в прикрепленных файлах.
> 
> Пересоберите пожалуйста все свои Qt/KDE программы
> с указанием таких зависимостей.

Давайте обойдемся без ++ в имени requires.

Например, так гораздо лучше:

Requires: libqt3-cpp_compiled = 3.2
Requires: kdelibs-cpp_compiled = 3.2


> %define gccver %(gcc -o %_builddir/gccver %_sourcedir/gccver.c >/dev/null 2>&1 ; %_builddir/gccver -v)
> 
> Source1000: gccver.c

Предлагаю такой вариант:

%define gccver %(gcc -dumpversion |cut -d. -f-2)


--
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-02 17:14 [devel] I: For Qt/KDE manteiners Sergey V. Turchin
  2002-10-02 17:30 ` Alexander Bokovoy
  2002-10-02 17:49 ` Dmitry V. Levin
@ 2002-10-03  7:20 ` Sergey Vlasov
  2002-10-03  8:03   ` Sergey V. Turchin
  2002-10-03  8:40 ` [devel] I: Qt/KDE программы. Окончательный вариант Sergey V. Turchin
  3 siblings, 1 reply; 13+ messages in thread
From: Sergey Vlasov @ 2002-10-03  7:20 UTC (permalink / raw)
  To: devel

On Wed, 2 Oct 2002 21:14:48 +0400
"Sergey V. Turchin" <zerg@altlinux.com> wrote:

> Не нашел способа обойти несмену soname у Qt3-3.0.5,
> чем этот:
> 
> Все пакеты зависящие от Qt должны иметь зависимость
> Requires: libqt3-c++compiled = 3.2
> KDE-шные 
> Requires: kdelibs-c++compiled = 3.2

И, видимо, аналогичный BuildPreReq - чтобы попытка сборки пакета не той
версией gcc прерывалась сразу?


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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-02 17:49 ` Dmitry V. Levin
@ 2002-10-03  7:24   ` Sergey Vlasov
  2002-10-03  8:09     ` Sergey V. Turchin
  2002-10-03  8:12   ` Sergey V. Turchin
  1 sibling, 1 reply; 13+ messages in thread
From: Sergey Vlasov @ 2002-10-03  7:24 UTC (permalink / raw)
  To: devel

On Wed, 2 Oct 2002 21:49:09 +0400
"Dmitry V. Levin" <ldv@altlinux.org> wrote:

> Давайте обойдемся без ++ в имени requires.
> 
> Например, так гораздо лучше:
> 
> Requires: libqt3-cpp_compiled = 3.2

Или вообще без C++ (на случай, если аналогичные зависимости понадобятся
и для других ABI):

Requires: libqt3-gcc_compiled = 3.2

?


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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-02 17:30 ` Alexander Bokovoy
@ 2002-10-03  8:02   ` Sergey V. Turchin
  0 siblings, 0 replies; 13+ messages in thread
From: Sergey V. Turchin @ 2002-10-03  8:02 UTC (permalink / raw)
  To: devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 02 October 2002 21:30, Alexander Bokovoy wrote:
> gcc -v 2>&1|tail -1|cut -d' ' -f 3
нет, 
$gcc -v 2>&1|tail -1|cut -d' ' -f 3
3.2.1
А мне надо 3.2

- -- 
Regards, ZerG

### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9m/mU+zBIrxwqPwgRAot0AJ9qtZ8g0SB7QyTEd62j9umR/yQXgACdEern
lN8csZVJp8FN/rHSuobze1E=
=TUOJ
-----END PGP SIGNATURE-----



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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-03  7:20 ` Sergey Vlasov
@ 2002-10-03  8:03   ` Sergey V. Turchin
  2002-10-03  8:07     ` Sergey V. Turchin
  0 siblings, 1 reply; 13+ messages in thread
From: Sergey V. Turchin @ 2002-10-03  8:03 UTC (permalink / raw)
  To: devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 03 October 2002 11:20, Sergey Vlasov wrote:
> On Wed, 2 Oct 2002 21:14:48 +0400
>
> "Sergey V. Turchin" <zerg@altlinux.com> wrote:
> > Не нашел способа обойти несмену soname у Qt3-3.0.5,
> > чем этот:
> >
> > Все пакеты зависящие от Qt должны иметь зависимость
> > Requires: libqt3-c++compiled = 3.2
> > KDE-шные
> > Requires: kdelibs-c++compiled = 3.2
>
> И, видимо, аналогичный BuildPreReq - чтобы попытка сборки пакета не той
> версией gcc прерывалась сразу?
Да, точно!

- -- 
Regards, ZerG

### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9m/nI+zBIrxwqPwgRAvkSAKCqQcG9i4XX+sUhvTTwwD8oHQd2iACeMJWQ
7cZMDNqBzIwFunggz+La6Go=
=/9TV
-----END PGP SIGNATURE-----



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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-03  8:03   ` Sergey V. Turchin
@ 2002-10-03  8:07     ` Sergey V. Turchin
  0 siblings, 0 replies; 13+ messages in thread
From: Sergey V. Turchin @ 2002-10-03  8:07 UTC (permalink / raw)
  To: devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 03 October 2002 12:03, Sergey V. Turchin wrote:
> On Thursday 03 October 2002 11:20, Sergey Vlasov wrote:
> > On Wed, 2 Oct 2002 21:14:48 +0400
> >
> > "Sergey V. Turchin" <zerg@altlinux.com> wrote:
> > > Не нашел способа обойти несмену soname у Qt3-3.0.5,
> > > чем этот:
> > >
> > > Все пакеты зависящие от Qt должны иметь зависимость
> > > Requires: libqt3-c++compiled = 3.2
> > > KDE-шные
> > > Requires: kdelibs-c++compiled = 3.2
> >
> > И, видимо, аналогичный BuildPreReq - чтобы попытка сборки пакета не той
> > версией gcc прерывалась сразу?
>
> Да, точно!
В смысле 
BuildRequires: kdelibs-gcc_compiled = %gccver

- -- 
Regards, ZerG

### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9m/rV+zBIrxwqPwgRAvdgAJ9bkrUNsuKmmxzUlFoUqjPWocJD+gCgqWzF
lswljDDyf2Xyo7jhLqQuIXE=
=WtBT
-----END PGP SIGNATURE-----



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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-03  7:24   ` Sergey Vlasov
@ 2002-10-03  8:09     ` Sergey V. Turchin
  0 siblings, 0 replies; 13+ messages in thread
From: Sergey V. Turchin @ 2002-10-03  8:09 UTC (permalink / raw)
  To: devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 03 October 2002 11:24, Sergey Vlasov wrote:
> On Wed, 2 Oct 2002 21:49:09 +0400
>
> "Dmitry V. Levin" <ldv@altlinux.org> wrote:
> > Давайте обойдемся без ++ в имени requires.
> >
> > Например, так гораздо лучше:
> >
> > Requires: libqt3-cpp_compiled = 3.2
>
> Или вообще без C++ (на случай, если аналогичные зависимости понадобятся
> и для других ABI):
>
> Requires: libqt3-gcc_compiled = 3.2
Ok,
Requires: libqt3-gcc_compiled = %gccver

- -- 
Regards, ZerG

### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9m/sl+zBIrxwqPwgRAhzjAKDZRZQwiJU+rHTVL3Ws+GfCqiIhMgCgsQ6i
+8ZsQ6z/JbAl9vO14pH1ceM=
=hh9F
-----END PGP SIGNATURE-----



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

* Re: [devel] I: For Qt/KDE manteiners
  2002-10-02 17:49 ` Dmitry V. Levin
  2002-10-03  7:24   ` Sergey Vlasov
@ 2002-10-03  8:12   ` Sergey V. Turchin
  1 sibling, 0 replies; 13+ messages in thread
From: Sergey V. Turchin @ 2002-10-03  8:12 UTC (permalink / raw)
  To: devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 02 October 2002 21:49, Dmitry V. Levin wrote:
> On Wed, Oct 02, 2002 at 09:14:48PM +0400, Sergey V. Turchin wrote:
> > Не нашел способа обойти несмену soname у Qt3-3.0.5,
> > чем этот:
> >
> > Все пакеты зависящие от Qt должны иметь зависимость
> > Requires: libqt3-c++compiled = 3.2
> > KDE-шные
> > Requires: kdelibs-c++compiled = 3.2
> >
> > Они соответственно это предоставляют начиная с
> > libqt3-3.0.5-alt11
> > kdelibs-3.0.3-alt8
> >
> > Строки зависимостей можно получить способом,
> > показаным в прикрепленных файлах.
> >
> > Пересоберите пожалуйста все свои Qt/KDE программы
> > с указанием таких зависимостей.
>
> Давайте обойдемся без ++ в имени requires.
>
> Например, так гораздо лучше:
>
> Requires: libqt3-cpp_compiled = 3.2
> Requires: kdelibs-cpp_compiled = 3.2
>
> > %define gccver %(gcc -o %_builddir/gccver %_sourcedir/gccver.c >/dev/null
> > 2>&1 ; %_builddir/gccver -v)
> >
> > Source1000: gccver.c
>
> Предлагаю такой вариант:
>
> %define gccver %(gcc -dumpversion |cut -d. -f-2)
Ok

- -- 
Regards, ZerG

### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9m/vh+zBIrxwqPwgRAlrnAJ9tuSK1t75UgFRLq/BsVwRu6RQhqACg4jTR
lTE1SBZUwzD9G3gwFcDRj0M=
=RnOU
-----END PGP SIGNATURE-----



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

* Re: [devel] I: Qt/KDE программы. Окончательный вариант.
  2002-10-02 17:14 [devel] I: For Qt/KDE manteiners Sergey V. Turchin
                   ` (2 preceding siblings ...)
  2002-10-03  7:20 ` Sergey Vlasov
@ 2002-10-03  8:40 ` Sergey V. Turchin
  2002-10-03 20:42   ` Alexey I. Froloff
  3 siblings, 1 reply; 13+ messages in thread
From: Sergey V. Turchin @ 2002-10-03  8:40 UTC (permalink / raw)
  To: devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all!

После редакции получилось:
Все пакеты зависящие от Qt/KDE должны иметь зависимость:

Qt-шные:
Requires: libqt3-gcc_compiled = %gccver
BuildRequires: libqt3-gcc_compiled = %gccver

KDE-шные:
Requires: kdelibs-gcc_compiled = %gccver
BuildRequires: kdelibs-gcc_compiled = %gccver

Qt/KDE-библиотеки
Provides: lib%name-gcc_compiled = %gccver

Пакеты libqt3 и kdelibs предоставляют такие
зависимости начиная с
libqt3-3.0.5-alt12
kdelibs-3.0.3-alt9

Макрос gccver вычисляется
%define gccver %(gcc -dumpversion |cut -d. -f-2)

- -- 
Regards, ZerG

### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9nAKG+zBIrxwqPwgRAr5WAKCiYMpGa4F5dP3ehGkuyLlW/4UrzACg1hhR
uK6m+Lt3zyPr61RUlq8pjr4=
=JAKI
-----END PGP SIGNATURE-----



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

* Re: [devel] I: Qt/KDE программы. Окончательный вариант.
  2002-10-03  8:40 ` [devel] I: Qt/KDE программы. Окончательный вариант Sergey V. Turchin
@ 2002-10-03 20:42   ` Alexey I. Froloff
  2002-10-03 21:24     ` Dmitry V. Levin
  0 siblings, 1 reply; 13+ messages in thread
From: Alexey I. Froloff @ 2002-10-03 20:42 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

On Thu, Oct 03, 2002 at 12:40:33PM +0400, Sergey V. Turchin wrote:
> Макрос gccver вычисляется
> %define gccver %(gcc -dumpversion |cut -d. -f-2)
Может в /usr/lib/rpm/macros его?

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] I: Qt/KDE программы. Окончательный вариант.
  2002-10-03 20:42   ` Alexey I. Froloff
@ 2002-10-03 21:24     ` Dmitry V. Levin
  0 siblings, 0 replies; 13+ messages in thread
From: Dmitry V. Levin @ 2002-10-03 21:24 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

On Fri, Oct 04, 2002 at 12:42:05AM +0400, Alexey I. Froloff wrote:
> > Макрос gccver вычисляется
> > %define gccver %(gcc -dumpversion |cut -d. -f-2)
> Может в /usr/lib/rpm/macros его?

Планируется:
%__gcc_version %(gcc -dumpversion)
%__gcc_version_major %(gcc -dumpversion |cut -d. -f1)
%__gcc_version_minor %(gcc -dumpversion |cut -d. -f2)
%__gcc_version_patch %(gcc -dumpversion |cut -d. -f3)
%__gcc_version_base %(gcc -dumpversion |cut -d. -f-2)


--
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2002-10-03 21:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 17:14 [devel] I: For Qt/KDE manteiners Sergey V. Turchin
2002-10-02 17:30 ` Alexander Bokovoy
2002-10-03  8:02   ` Sergey V. Turchin
2002-10-02 17:49 ` Dmitry V. Levin
2002-10-03  7:24   ` Sergey Vlasov
2002-10-03  8:09     ` Sergey V. Turchin
2002-10-03  8:12   ` Sergey V. Turchin
2002-10-03  7:20 ` Sergey Vlasov
2002-10-03  8:03   ` Sergey V. Turchin
2002-10-03  8:07     ` Sergey V. Turchin
2002-10-03  8:40 ` [devel] I: Qt/KDE программы. Окончательный вариант Sergey V. Turchin
2002-10-03 20:42   ` Alexey I. Froloff
2002-10-03 21:24     ` Dmitry V. Levin

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