From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: arj-3.10b-alt2: rebuild failed
Date: Wed, 12 Nov 2003 20:42:51 +0300
Message-ID: <20031112174251.GA1146@basalt.office.altlinux.org> (raw)
In-Reply-To: <20031112170654.GB2402@julia.office.altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]
On Wed, Nov 12, 2003 at 08:06:54PM +0300, Alexey Tourbin wrote:
> On Tue, Nov 11, 2003 at 09:49:54PM +0300, Вячеслав Диконов wrote:
> > А теперь мне нужен рецепт или "how-to" искоренения этой проблемы, не
> > требующий правки исходного кода. Я не знаю где задаётся параметр -fpic и
> > как его правильно внести.
>
> Проблема (о чудо!) решается следующим патчем.
> Кто-нибудь поможет мне написать howto? :)
>
> --- RPM/SPECS/arj.spec- 2003-09-11 22:36:05 +0400
> +++ RPM/SPECS/arj.spec 2003-11-12 20:01:24 +0300
> @@ -28,12 +28,27 @@
> %build
> cd gnu/
> autoconf
> -export LOCALE=%LOCALE; ./configure
> +export LOCALE=%LOCALE
> +%configure
> cd ..
> echo "" >> c_defs.h
> make -f makefile.gnu DEBUG=1 prepare
> ln -s ds linux-gnu/%LOCALE/rs
> -make -f makefile.gnu
> +
> +makefile_var()
> +{
> + local fake; fake=`mktemp -t Makefile.XXXXXXXXXX`
> + echo -e "include ${2:-Makefile}\nmakefile_var_$1:\n\techo \$($1)" >"$fake"
> + MAKEFLAGS= %__make -sf "$fake" "makefile_var_$1" MAKE=: | sed -e 's/"/\\"/g'
> + %__rm -f -- "$fake"
> +}
> +
> +CFLAGS="$(makefile_var CFLAGS makefile.gnu)"
> +%__make -f makefile.gnu CFLAGS="$CFLAGS %optflags"
> +
> +: rebuild shared libraries with %optflags_shared
> +%__rm -fv linux-gnu/en/ds/arjcrypt/*.{o,so}
> +%__make -f makefile.gnu CFLAGS="$CFLAGS %optflags %optflags_shared"
>
> %install
> mkdir -p $RPM_BUILD_ROOT%_bindir
Бррр.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-12 17:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-11 18:49 ` Вячеслав Диконов
2003-11-11 19:15 ` Alexey Tourbin
2003-11-11 19:30 ` Michael Shigorin
2003-11-11 21:02 ` Dmitry V. Levin
2003-11-12 9:41 ` [devel] [POLICY] " Michael Shigorin
2003-11-11 21:24 ` [devel] " Igor Tertishny
2003-11-12 8:36 ` Stanislav Ievlev
2003-11-12 17:06 ` Alexey Tourbin
2003-11-12 17:42 ` Dmitry V. Levin [this message]
2003-11-12 17:44 ` 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=20031112174251.GA1146@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@altlinux.ru \
/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