SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381
Rep:
Calibre 0.8.18
I'm trying to modify the slackbuild script from sbo to use the latest version of calibre. I get the following errors:
Code:
patching file src/calibre/linux.py
Hunk #1 FAILED at 288.
Hunk #2 FAILED at 304.
2 out of 2 hunks FAILED -- saving rejects to file src/calibre/linux.py.rej
patching file src/calibre/utils/help2man.py
Hunk #1 FAILED at 4.
Hunk #2 FAILED at 58.
2 out of 2 hunks FAILED -- saving rejects to file src/calibre/utils/help2man.py.rej
any ideas how to fix this?
Thanks Dan...
Click here to see the post LQ members have rated as the most helpful post in this thread.
It sounds like the patch file you're using wasn't created using the file which you're trying to patch - it can't find the bits of code it needs to change. Where did you get the source and the patch from?
The SlackBuild script at SBo is useless for any recent version of Calibre. Slackware ships python 2.6 and Calibre requires python 2.7.
My own SlackBuild script adds an internal python 2.7 compiler plus several python modules to circumvent this problem. That is why the package is so big.
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381
Original Poster
Rep:
Well, I tried your package and it doesn't run. Something else must have changed on my system. Perhaps when I installed LXDE. I also tried recompiling the version I was running, and it also fails. I've got to search through the dependencies list and see what else has changed.
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381
Original Poster
Rep:
I apologize for the delay (my granddaughter's softball games interfered with computer work). I installed the other two packages, and calibre still does not run. This is the error when trying to start from terminal:
Code:
Traceback (most recent call last):
File "/usr/bin/calibre", line 18, in <module>
from calibre.gui2.main import main
File "/usr/lib64/calibre/calibre/gui2/__init__.py", line 7, in <module>
from PyQt4.Qt import (QVariant, QFileInfo, QObject, SIGNAL, QBuffer, Qt,
ImportError: cannot import name QVariant
What release of Slacwkare are you running? I can see that it is a 64bit version.
The error is related to the PyQt package, a full installation of Slackware 13.37 should fullfill all requirements.
You are not installing my Slackware 13.37 calibre package on an older Slackware release are you?
I did the same that Dan tried some months ago, work around the slackbuilds script trying to make a package for the new Calibre, and because of the python requirement it obviously didnt work. Im just curious, Bob, why ICU4C and PODOFO werent build inside ur package, as all the others requirements like Beautifulsoup, lxml, setuptools and those others i cant really remenber?
I was studying how to build packages and those things, and since Slackware dont check for dependencies, i was wondering how can i decide if i include dependencies compiled inside the package. Im not talking just about the size of the package , im thinking about stability and how, for example, Calibre, in this example, behaves if Beautifulsoup was in the system when i installed it(calibre) and remove it(beautifulsoup) later from the system. I never had this kinda of problem in Slackware, that i know of.
Funny that while i was thinking about another example i realized its exactly the thing KDE-Developers did with 4.7. They splited the packages in more packages.
I dont want to drag this post too much, but im building Gnome 2.32.1, Enlightement , PCSX2-devel, PCSX2-release, and others, all to slackware, and was havind these toughts about package building. I will create another topic about these builds.
Dan, there is a package in the build folder (calibre_pythondeps-13.1.0-x86_64.tar.bz2) that should handle everything if u try to build the Calibre 0.8.18 yourself, but u shouldnt upgrade ur 64b with a 32b.
If that was not the question , and u just asking if u can run the newest Calibre in Slackware-13.1, after another Calibre-0.8 worked, im pretty sure u can.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.