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)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eli Schwartz
URL: https://github.com/kovidgoyal/build-c...
Whiteboard:
Keywords: EBUILD
: 622852 (view as bug list)
Depends on: 916036
Blocks: 622856
  Show dependency tree
 
Reported: 2017-06-27 15:54 UTC by John J. Aylward
Modified: 2023-10-24 18:37 UTC (History)
6 users (show)

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


Attachments
unrardll-0.1.3.ebuild (unrardll-0.1.3.ebuild,809 bytes, text/plain)
2017-06-27 16:45 UTC, John J. Aylward
Details
dev-python/unrardll: new package, add 0.1.7 (0001-dev-python-unrardll-new-package-add-0.1.7.patch,2.95 KB, patch)
2023-10-23 18:40 UTC, Eli Schwartz
Details | Diff

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:
 *     ebuild.sh, 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 esetup.py '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]
unrardll-0.1.3.ebuild

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.
Comment 5 Eli Schwartz 2023-10-23 18:40:43 UTC
Created attachment 873354 [details, diff]
dev-python/unrardll: new package, add 0.1.7
Comment 6 Eli Schwartz 2023-10-24 04:45:01 UTC
Per discussion, python@ is welcomed to comaintain this so feel free to tweak metadata.xml when importing (and yes it has fully functional tests :)).
Comment 7 Larry the Git Cow gentoo-dev 2023-10-24 18:37:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c0d456347e08ef160fede1a6f5b6ee20694463f

commit 2c0d456347e08ef160fede1a6f5b6ee20694463f
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2023-10-23 18:33:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-24 18:34:48 +0000

    dev-python/unrardll: new package, add 0.1.7
    
    reverse dependency of app-text/calibre
    
    Closes: https://bugs.gentoo.org/622854
    Bug: https://bugs.gentoo.org/622856
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/unrardll/Manifest              |  1 +
 dev-python/unrardll/metadata.xml          | 16 +++++++++++++++
 dev-python/unrardll/unrardll-0.1.7.ebuild | 33 +++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+)