Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622854 - dev-python/unrardll-0.1.3 new ebuild (used for RAR by app-text/calibre)
Summary: dev-python/unrardll-0.1.3 new ebuild (used for RAR by app-text/calibre)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
Keywords: EBUILD
: 622852 (view as bug list)
Depends on:
Blocks: 622856
  Show dependency tree
Reported: 2017-06-27 15:54 UTC by John J. Aylward
Modified: 2018-05-29 09:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---

unrardll-0.1.3.ebuild (unrardll-0.1.3.ebuild,809 bytes, text/plain)
2017-06-27 16:45 UTC, John J. Aylward

Note You need to log in before you can comment on or make changes to this bug.
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.