ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] LIB_SUFFIX, %_libsuff Re:  I: NMU to clean up BR: rpm-build-ubt
Date: Sat, 29 Jun 2019 19:50:36 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1906291924180.15309@imap.altlinux.org> (raw)
In-Reply-To: <20190629105748.GA20870@imap.altlinux.org>

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

Hello!

On Sat, 29 Jun 2019, Vladislav Zavjalov wrote:

> On Sat, Jun 29, 2019 at 01:41:01PM +0300, Michael Shigorin wrote:
> > On Tue, Jun 25, 2019 at 11:13:46PM +0300, Igor Vlasenko wrote:
> > > Хотел бы провести NMU по очистке пакетов от BR: rpm-build-ubt.
> > 
> > Ещё бы попросил следующее как-нить по возможности:
> > 
> > -%ifarch x86_64
> > +%if "%_lib" == "lib64"
> >  export LIB_SUFFIX=64
> >  %endif
> > 
> > С записью в %changelog:
> > 
> > - fixed build on 64-bit architectures
> > 
> > Натыкаюсь уже не первый раз в сизифе, сейчас это libdict...
> 
> А, кстати, нельзя ли такое упростить до "export LIB_SUFFIX=%_libsuff" ?
> А если эта переменная LIB_SUFFIX достаточно стандартная, то,
> может, ее надо куда-то в /usr/lib/rpm/*/macros:%___build_pre запихать?

Можно в принципе. Я не думал, что это какая-то стандартная переменная.

Да и вообще, много ли аналогичных переменных окружения, которые у нас 
используются, чтобы влиять на сборку?

Не лучше ли просто оставить явный export LIB_SUFFIX=%_libsuff ?

Обнаружил ещё такое место, которое можно было бы сделать не 
x86_64-центричным:

$ fgrep -r K3configure -r /usr/lib/rpm -A10
/usr/lib/rpm/macros.d/kde-common-devel:%K3configure \
/usr/lib/rpm/macros.d/kde-common-devel-    __kde3_configure() \
/usr/lib/rpm/macros.d/kde-common-devel-    { \
/usr/lib/rpm/macros.d/kde-common-devel-	export PATH=%_K3bindir:$PATH \
/usr/lib/rpm/macros.d/kde-common-devel-	%configure \\\
/usr/lib/rpm/macros.d/kde-common-devel-	    --disable-static \\\
/usr/lib/rpm/macros.d/kde-common-devel-	    --enable-shared \\\
/usr/lib/rpm/macros.d/kde-common-devel-	    %ifarch x86_64 \
/usr/lib/rpm/macros.d/kde-common-devel-	    --enable-libsuffix=64 \\\
/usr/lib/rpm/macros.d/kde-common-devel-	    %endif \
/usr/lib/rpm/macros.d/kde-common-devel-	    --disable-rpath \\\
-bash-4.3$ rpm -qf /usr/lib/rpm/macros.d/kde-common-devel
rpm-macros-kde-common-devel-14.12.1-alt1.noarch


-- 
Best regards,
Ivan

  reply	other threads:[~2019-06-29 16:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-25 20:13 [devel] " Igor Vlasenko
2019-06-29 10:41 ` Michael Shigorin
2019-06-29 10:47   ` Alexey V. Vissarionov
2019-06-29 10:48     ` Michael Shigorin
2019-06-29 10:51       ` Alexey V. Vissarionov
2019-06-29 10:49     ` [devel] LIB_SUFFIX=%_libsuff Michael Shigorin
2019-06-29 10:57   ` [devel] I: NMU to clean up BR: rpm-build-ubt Vladislav Zavjalov
2019-06-29 16:50     ` Ivan Zakharyaschev [this message]
2019-07-02 17:35   ` Igor Vlasenko
2019-07-02 18:11     ` Michael Shigorin

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=alpine.LFD.2.20.1906291924180.15309@imap.altlinux.org \
    --to=imz@altlinux.org \
    --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