Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 622854

Summary: dev-python/unrardll-0.1.3 new ebuild (used for RAR by app-text/calibre)
Product: Gentoo Linux Reporter: John J. Aylward <john>
Component: Current packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: normal CC: axs, john, jstein, stevee, zmedico
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 622856    
Attachments: unrardll-0.1.3.ebuild

Description John J. Aylward 2017-06-27 15:54:30 UTC
unrardll is required for Calibre-3.x to be able to work with RAR files. It's currently missing from the gentoo release.
Comment 1 John J. Aylward 2017-06-27 16:03:29 UTC
my ebuild doesn't currently work, I'm not really familiar with building python packages and am not sure what needs to change in it.

running build_ext
building 'unrardll.unrar' extension
creating /var/tmp/portage/dev-python/unrardll-0.1.3/work/unrardll-0.1.3-python2_7/temp.linux-x86_64-2.7
creating /var/tmp/portage/dev-python/unrardll-0.1.3/work/unrardll-0.1.3-python2_7/temp.linux-x86_64-2.7/src
creating /var/tmp/portage/dev-python/unrardll-0.1.3/work/unrardll-0.1.3-python2_7/temp.linux-x86_64-2.7/src/unrardll
x86_64-pc-linux-gnu-g++ -mtune=native -march=native -O2 -fPIC -DSILENT=1 -DRARDLL=1 -DUNRAR=1 -D_UNIX=1 -I/usr/include/python2.7 -c src/unrardll/wrapper.cpp -o /var/tmp/portage/dev-python/unrardll-0.1.3/work/unrardll-0.1.3-python2_7/temp.linux-x86_64-2.7/src/unrardll/wrapper.o
src/unrardll/wrapper.cpp:19:27: fatal error: unrar/dll.hpp: No such file or directory
compilation terminated.
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
 * ERROR: dev-python/unrardll-0.1.3::x-portage failed (compile phase):
 *   (no error message)
 * Call stack:
 *, line  115:  Called src_compile
 *   environment, line 2675:  Called distutils-r1_src_compile
 *   environment, line  816:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  331:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2211:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1517:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1515:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  546:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  807:  Called distutils-r1_python_compile
 *   environment, line  682:  Called 'build'
 *   environment, line 1062:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
Comment 2 John J. Aylward 2017-06-27 16:45:10 UTC
Created attachment 478240 [details]

adds in a sed command to change an include path for rar. this makes it compile and install, but I'm not sure it's the best idea.
Comment 3 Jonas Stein gentoo-dev 2017-06-27 19:54:41 UTC
*** Bug 622852 has been marked as a duplicate of this bug. ***
Comment 4 Jonas Stein gentoo-dev 2017-10-17 12:55:37 UTC
KEYWORDS="amd64 ~arm ~ppc ~x86"
should be
KEYWORDS="~amd64 ~x86" 
for a new ebuild.