From: Viacheslav Dubrovskyi <dubrsl@gmail.com> To: Devel@lists.altlinux.org Subject: [devel] Изменение бинарных файлов после сборки: - strip, ...? Date: Wed, 23 Oct 2013 00:23:40 +0300 Message-ID: <5266ECDC.1070308@gmail.com> (raw) [-- Attachment #1: Type: text/plain, Size: 1584 bytes --] Здравствуйте. Похоже у нас GO собран не правильно. Проявляется это тем, что не работает опция -a комманды build. Test case описан тут: https://bugzilla.altlinux.org/29508 Начал разбираться. Если просто собрать его в ручную через ./make.bash, то полученный бинарник прекрасно работает. Я сравнил размеры и тот бинарный файл который в пакете значительно меньше по размеру. И действительно, файл stripped. В полиси федоры пишут что стрипать нельзя http://fedoraproject.org/wiki/PackagingDrafts/Go#Debuginfo_and_Stripping_Binaries Поэтому решил отключил strip в спеке вот так: %add_verify_elf_skiplist %_libdir/golang/bin/go %add_verify_elf_skiplist %_libdir/golang/bin/gofmt %add_verify_elf_skiplist %_libdir/golang/bin/godoc %global __find_debuginfo_files /bin/true %brp_strip_none %_libdir/golang/bin/* Теперь в пакете получился не стрипнутый бинарный файл. Но он все равно не работает и меньше по размеру чем собранный в ручную. Вопрос: что еще можно отключить при сборке, чтобы собранный файл совсем не изменялся машинерией rpm? -- WBR, Viacheslav Dubrovskyi [-- Attachment #2: ÐÑипÑогÑаÑиÑеÑÐºÐ°Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑÑ S/MIME --] [-- Type: application/pkcs7-signature, Size: 3738 bytes --]
next reply other threads:[~2013-10-22 21:23 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-22 21:23 Viacheslav Dubrovskyi [this message] 2013-10-22 21:37 ` Dmitry V. Levin 2013-10-23 8:03 ` Viacheslav Dubrovskyi 2013-10-23 9:46 ` Viacheslav Dubrovskyi 2013-10-23 10:08 ` Alexey Gladkov 2013-10-23 14:55 ` Viacheslav Dubrovskyi 2013-10-23 15:23 ` Alexey Gladkov 2013-10-23 9:33 ` Igor Zubkov
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=5266ECDC.1070308@gmail.com \ --to=dubrsl@gmail.com \ --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