From: ruslandh <ruslandh@gmail.com>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Как установить чужой бинарный rpm внутрь hasher
Date: Wed, 6 May 2015 10:01:13 +0300
Message-ID: <201505061001.20262@ruslandh> (raw)
In-Reply-To: <201505060820.36240@ruslandh>
[-- Attachment #1: Type: text/plain, Size: 2740 bytes --]
Здравствуйте ruslandh
В сообщении от 6 мая 2015 ruslandh написал(a):
> Тупиковый вариант:
>
> # alien --to-deb -c viber-4.2.2.6-2.rpm
> Package build failed. Here's the log:
> dh_testdir
> dh_testdir
> dh_testroot
> dh_prep
> dh_installdirs
> dh_installdocs
> dh_installchangelogs
> dpkg-parsechangelog: error: changelog format debian is unknown
> dh_installchangelogs: changelog parse failure
> make: *** [binary-arch] Error 2
Решается в 2 шага:
alien --to-deb -s -c viber-4.2.2.6-2.rpm
Приводим всё в "юожеский вид"
dpkg --build viber-4.2.2.6-2
Но дальше ....
После обратной генерации в спеке:
страшно смотреть:
%post
#!/bin/sh
set -e
mkdir /tmp/alien.$$
perl -pe '$_=unpack("u",$_)' << '__EOF__' > /tmp/alien.$$/script
M(R$O8FEN+V)A<V@*=7!D871E+61E<VMT;W`M9&%%T86)A<V4@)CX@+V1E=B]N
M=6QL('Q\(#H*=&]U8V@@+2UN;RUC<F5A=&4@+W5S<B]S:&%%R92]I8V]N<R]H
M:6-O;&]R("8^+V1E=B]N=6QL('Q\(#H*:68@6R`M>"`O=7-R+V)I;B]G=&LM
M=7!D871E+6EC;VXM8V%%C:&4@73L@=&AE;@H@("`@+W5S<B]B:6XO9W1K+75P
M9&%%T92UI8V]N+6-A8VAE("TM<75I970@+W5S<B]S:&%%R92]I8V]N<R]H:6-O
+;&]R('Q\(#H*9FD`
__EOF__
chmod 755 /tmp/alien.$$/script
/tmp/alien.$$/script "$@"
rm -f /tmp/alien.$$/script
rmdir /tmp/alien.$$
%preun
#!/bin/sh
set -e
mkdir /tmp/alien.$$
perl -pe '$_=unpack("u",$_)' << '__EOF__' > /tmp/alien.$$/script
M(R$O8FEN+V)A<V@*05!04#TB)"AP9W)E<"!6:6)E<B!\(&AE860@+6X@,2DB
M"FEF(%%L@)$%%04%%`@/B`B,"(@73L*=&AE;@I54T5205`](B0H;&]G;F%%M92DB
M(`IT;W5C:"`O;W!T+W9I8F5R+W5N:6YS=&%%L;"YS:"`*96-H;R`B(R$O8FEN
M+W-H"F%%P<&YA;64]5FEB97(*9&ER;F%%M93TO;W!T+W9I8F5R"DQ$7TQ)0E)!
M4EE?4$%%42#U<)&1I<FYA;64*97AP;W)T($Q$7TQ)0E)!4EE?4$%%42`I<)&1I
M<FYA;64O7"1A<'!N86UE(%%PB7"1`7"(B(#X^("]O<'0O=FEB97(O=6YI;G-T
M86QL+G-H"F-H;6]D(#<U-2`O;W!T+W9I8F5R+W5N:6YS=&%%L;"YS:`IS=2`D
M55-%%4D%%0("]O<'0O=FEB97(O=6YI;G-T86QL+G-H($5X:716:6)E<B`*<FT@
M+68@+V]P="]V:6)E<B]U;FEN<W1A;&PN<V@@"F5L<V4*.@IF:0II9B!;("0Q
M(#T@(G)E;6]V92(@70IT:&5N(`HO;W!T+W9I8F5R+U9I8F5R($1E86-T:79A
M=&56:6)E<CTR"G)M("UF("]T;7`O<71S:6YG;&5A<'`M5FEB97(J"F9I"F5X
%%:70@,`H`
__EOF__
chmod 755 /tmp/alien.$$/script
/tmp/alien.$$/script "$@"
rm -f /tmp/alien.$$/script
rmdir /tmp/alien.$$
%postun
%postun
#!/bin/sh
set -e
mkdir /tmp/alien.$$
perl -pe '$_=unpack("u",$_)' << '__EOF__' > /tmp/alien.$$/script
M(R$O8FEN+V)A<V@*:68@6R`D,2`M97$@,"!=(#L@=&AE;@H@("`@=&]U8V@@
M+2UN;RUC<F5A=&4@+W5S<B]S:&%%R92]I8V]N<R]H:6-O;&]R("8^+V1E=B]N
M=6QL"B`@("!G=&LM=7!D871E+6EC;VXM8V%%C:&4@+W5S<B]S:&%%R92]I8V]N
M<R]H:6-O;&]R("8^+V1E=B]N=6QL('Q\(#H*9FD*=7!D871E+61E<VMT;W`M
:9&%%T86)A<V4@)CX@+V1E=B]N=6QL('Q\(#H`
__EOF__
chmod 755 /tmp/alien.$$/script
/tmp/alien.$$/script "$@"
rm -f /tmp/alien.$$/script
rmdir /tmp/alien.$$
--
С уважением Хихин Руслан
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2015-05-06 7:01 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 4:11 ruslandh
2015-05-06 4:46 ` REAL
2015-05-06 5:08 ` ruslandh
2015-05-06 5:14 ` REAL
2015-05-06 5:20 ` ruslandh
2015-05-06 5:44 ` Hihin Ruslan
2015-05-06 6:00 ` Hihin Ruslan
2015-05-06 6:46 ` ruslandh
2015-05-06 7:00 ` REAL
2015-05-06 7:12 ` ruslandh
2015-05-06 8:10 ` ruslandh
2015-05-06 8:31 ` REAL
2015-05-06 8:44 ` ruslandh
2015-05-06 12:10 ` ruslandh
2015-05-07 8:02 ` Anton Farygin
2015-05-07 8:05 ` ruslandh
2015-05-06 7:01 ` ruslandh [this message]
2015-05-06 16:04 ` Gleb Fotengauer-Malinovskiy
2015-05-06 4:46 ` ruslandh
2015-05-06 19:13 ` Motsyo Gennadi aka Drool
2015-05-06 19:28 ` ruslandh
2015-05-07 5:07 ` Motsyo Gennadi aka Drool
2015-05-07 6:45 ` ruslandh
2015-05-07 7:24 ` ruslandh
2015-05-07 7:13 ` ruslandh
2015-05-07 8:27 ` ruslandh
2015-05-07 8:32 ` ruslandh
2015-05-07 9:04 ` Yuriy Kashirin
2015-05-07 9:11 ` ruslandh
2015-05-07 9:27 ` ruslandh
2015-05-28 20:48 ` Vitaly Lipatov
2015-05-29 3:12 ` Hihin Ruslan
2015-05-29 16:59 ` Hihin Ruslan
2015-05-07 9:07 ` ruslandh
2015-05-07 12:01 ` Gleb Fotengauer-Malinovskiy
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=201505061001.20262@ruslandh \
--to=ruslandh@gmail.com \
--cc=ruslandh@narod.ru \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git