Summary: | dev-util/radare2 ebuild addition request | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Anton Kochkov <anton.kochkov> |
Component: | Current packages | Assignee: | Sergei Trofimovich (RETIRED) <slyfox> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | anton.bugs, anton.kochkov, asolokha, pacho, siarhei.siamashka, slyfox |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
radare2-0.8.8.ebuild
radare2-0.8.8.ebuild radare2-0.9.ebuild radare2 live ebuild radare-0.8.8.ebuild radare2-0.9.ebuild radare2 live ebuild radare2-0.9.ebuild build.log radare2 0.9 ebuild radare2 live ebuild radare2 0.9 ebuild radare2 live ebuild radare2-0.9.ebuild radare2 live ebuild radare2 live ebuild radare2 0.9.2 ebuild radare2-0.9.2.ebuild |
Description
Anton Kochkov
2011-11-24 00:31:56 UTC
Also, it is nice to have bindings as USE flag. http://radare.org/get/r2-bindings-0.8.8.tar.gz Created attachment 293591 [details]
radare2-0.8.8.ebuild
Created attachment 294927 [details]
radare2-0.8.8.ebuild
Created attachment 294929 [details]
radare2-0.9.ebuild
Created attachment 294931 [details]
radare2 live ebuild
And I want to be maintainer of this package
Created attachment 295643 [details]
radare-0.8.8.ebuild
Created attachment 295645 [details]
radare2-0.9.ebuild
Created attachment 295647 [details]
radare2 live ebuild
Created attachment 306691 [details]
radare2-0.9.ebuild
I have tried attached ebuild:
- Uses eapi4
- Drops "emake -j1" usage as parallel compilation looks to work for me
- drops src_prepare because base_src_prepare is already used by default (exported by base.eclass)
- drops src_install because eapi4 already takes care of it automatically
But (build.log attached):
- It installs pre-stripped files (I fail to see where is calling strip in Makefile :S)
- It doesn't respect LDFLAGS
Then, the ebuild can't be introduced with that known problem :(
Regarding live ebuild, I haven't tested it, are you should would be willing to maintain it? live ebuilds usually require more work as they can start to fail without notice due constant upstream changes
Created attachment 306693 [details]
build.log
Other problems:
- with-readline configure option doesn't exist
- A lot of other configure options are not handled and could lead to automagic dependencies then (see "./configure --help")
(In reply to comment #9) > Created attachment 306691 [details] > radare2-0.9.ebuild > > I have tried attached ebuild: > - Uses eapi4 > - Drops "emake -j1" usage as parallel compilation looks to work for me > - drops src_prepare because base_src_prepare is already used by default > (exported by base.eclass) > - drops src_install because eapi4 already takes care of it automatically > > But (build.log attached): > - It installs pre-stripped files (I fail to see where is calling strip in > Makefile :S) > - It doesn't respect LDFLAGS > > Then, the ebuild can't be introduced with that known problem :( > > Regarding live ebuild, I haven't tested it, are you should would be willing > to maintain it? live ebuilds usually require more work as they can start to > fail without notice due constant upstream changes Yes, i want, because i have nice relations with radare team, and actively using it. About configure options - ok, i'll fix that today If you are in contact with radare team, please explain them LDFLAGS/stripping issues Thanks :) Created attachment 307803 [details]
radare2 0.9 ebuild
Fixed all issues
Created attachment 307805 [details]
radare2 live ebuild
Created attachment 307807 [details]
radare2 0.9 ebuild
Created attachment 307809 [details]
radare2 live ebuild
src_configure() { econf $(use ssl || echo --without-ssl ) \ $(use gmp || echo --without-gmp ) \ $(use ewf || echo --without-ewf ) \ $(use debug || echo --without-debug ) } Doesn't standard: $(use ssl) work as expected? (passing --with-ssl and --without-ssl) src_compile() { emake || die "compile failed" } die is no longer needed with eapi4 ;) http://devmanual.gentoo.org/ebuild-writing/eapi/index.html src_install() { emake DESTDIR="${ED}" INSTALL_PROGRAM="install" install || die "install failed" } DESTDIR should be "D" and not "ED": http://www.gentoo.org/proj/en/gentoo-alt/prefix/techdocs.xml#doc_chap2 (In reply to comment #17) > src_configure() { > econf $(use ssl || echo --without-ssl ) \ > $(use gmp || echo --without-gmp ) \ > $(use ewf || echo --without-ewf ) \ > $(use debug || echo --without-debug ) > } > > Doesn't standard: > $(use ssl) > > work as expected? (passing --with-ssl and --without-ssl) > These options have only --without, but not --with in configure Created attachment 307867 [details]
radare2-0.9.ebuild
I have seen --without-debug is neither recognized by configure, maybe you should simply drop that USE then.
Regarding LDFLAGS, stripping issues, have you contacted upstream about them?
(In reply to comment #19) > Created attachment 307867 [details] > radare2-0.9.ebuild > > I have seen --without-debug is neither recognized by configure, maybe you > should simply drop that USE then. > > Regarding LDFLAGS, stripping issues, have you contacted upstream about them? Regarding LDFLAGS and Co - i've said them, but wontfix (at least now) Created attachment 321822 [details] radare2 live ebuild Updated live ebuild due to migrating radare2 from mercurial to git: http://github.com/radare2/radare2 BTW: All issues regarding LDFLAGS are fixed in git upstream Created attachment 335466 [details]
radare2 live ebuild
Created attachment 335468 [details]
radare2 0.9.2 ebuild
(In reply to comment #23) > Created attachment 335468 [details] > radare2 0.9.2 ebuild are ldflags issue fixed in 0.9.2 too? (In reply to comment #24) > (In reply to comment #23) > > Created attachment 335468 [details] > > radare2 0.9.2 ebuild > > are ldflags issue fixed in 0.9.2 too? yes Created attachment 335936 [details]
radare2-0.9.2.ebuild
I still get LDFLAGS failure:
* QA Notice: Files built without respecting LDFLAGS have been detected
* Please include the following list of files in your report:
* /usr/lib64/libr_th.so.0.9.2
* /usr/lib64/radare2/0.9.2/io_malloc.so
* /usr/lib64/radare2/0.9.2/parse_att2intel.so
* /usr/lib64/radare2/0.9.2/io_debug.so
* /usr/lib64/radare2/0.9.2/io_mach.so
* /usr/lib64/radare2/0.9.2/io_w32dbg.so
* /usr/lib64/radare2/0.9.2/bp_x86.so
* /usr/lib64/radare2/0.9.2/parse_x86_pseudo.so
* /usr/lib64/radare2/0.9.2/io_ptrace.so
* /usr/lib64/radare2/0.9.2/io_shm.so
* /usr/lib64/radare2/0.9.2/io_haret.so
* /usr/lib64/radare2/0.9.2/cmd_dummy.so
* /usr/lib64/radare2/0.9.2/bp_arm.so
* /usr/lib64/radare2/0.9.2/parse_mreplace.so
* /usr/lib64/radare2/0.9.2/io_procpid.so
* /usr/lib64/radare2/0.9.2/debug_native.so
To get that QA warnings to need to add this to your make.conf:
LDFLAGS="${LDFLAGS} -Wl,--hash-style=gnu"
Also, looks like it installs docs in /usr/share/doc/${PN}, when it should do it at ${PF}
Guys, just in case if somebody interested, we are maintaining RCE tools in Pentoo overlay. The latest version of radare2, capstone and few other tools are there. Feel free to join and test it. Needs some tweaking (better upstream), but looks very nice. Watched LCA-2015 talk https://www.youtube.com/watch?v=R3sGlzXfEkU and couldn't resist and pushed as: >*radare2-0.9.8 (18 Jan 2015) > > 18 Jan 2015; Sergei Trofimovich <slyfox@gentoo.org> +metadata.xml, > +radare2-0.9.8.ebuild: > Initial import of a nice interactive disassembler. Initial work by Anton > Kochkov and Pacho Ramos in bug #391751. Thanks guys! (In reply to Pacho Ramos from comment #26) > Created attachment 335936 [details] > radare2-0.9.2.ebuild > > I still get LDFLAGS failure: > * QA Notice: Files built without respecting LDFLAGS have been detected > * Please include the following list of files in your report: > * /usr/lib64/libr_th.so.0.9.2 > * /usr/lib64/radare2/0.9.2/io_malloc.so > * /usr/lib64/radare2/0.9.2/parse_att2intel.so > * /usr/lib64/radare2/0.9.2/io_debug.so > * /usr/lib64/radare2/0.9.2/io_mach.so > * /usr/lib64/radare2/0.9.2/io_w32dbg.so > * /usr/lib64/radare2/0.9.2/bp_x86.so > * /usr/lib64/radare2/0.9.2/parse_x86_pseudo.so > * /usr/lib64/radare2/0.9.2/io_ptrace.so > * /usr/lib64/radare2/0.9.2/io_shm.so > * /usr/lib64/radare2/0.9.2/io_haret.so > * /usr/lib64/radare2/0.9.2/cmd_dummy.so > * /usr/lib64/radare2/0.9.2/bp_arm.so > * /usr/lib64/radare2/0.9.2/parse_mreplace.so > * /usr/lib64/radare2/0.9.2/io_procpid.so > * /usr/lib64/radare2/0.9.2/debug_native.so > > To get that QA warnings to need to add this to your make.conf: > LDFLAGS="${LDFLAGS} -Wl,--hash-style=gnu" > > Also, looks like it installs docs in /usr/share/doc/${PN}, when it should do > it at ${PF} Fixed in the mainstream: https://github.com/radare/radare2/commit/fb970bebb91999db15159f90dc2aa1b94b2a0853 Will be in the 0.9.9 release. And what about adding live ebuild - radare2-9999.ebuild too? > Will be in the 0.9.9 release. And what about adding live ebuild - > radare2-9999.ebuild too? Sure. Added as: > *radare2-9999 (29 Jan 2015) > > 29 Jan 2015; Sergei Trofimovich <slyfox@gentoo.org> +radare2-9999.ebuild: > Add live ebuild (bug #391751 by Anton Kochkov). Thanks! |