LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-18-2017, 05:09 PM   #1
Lenard Spencer
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, Linux from Scratch
Posts: 329

Rep: Reputation: 199Reputation: 199
Calibre 3.0.0 is out


I just noticed that Calibre 3.0.0 has been released, and in trying to build it, I have found that it has a couple of new dependencies. First, regex is now an external prerequisite as is no longer bundled in the source package, and Calibre 3 will not run without it. Second is msgpack-python, which may be optional (maybe not) because while it squawks about not finding module msgpack during the install phase of the SBo script, it still starts up ok and I am able to read Ebooks, though I have not had a chance to go through and test all the options that may use that module. In other words, I saw no squawks running calibre from a terminal window. Usual disclaimer here, YMMV.
 
Old 06-18-2017, 06:47 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
msgpack-python is needed when you want to enable the new Content Server feature
 
Old 06-18-2017, 11:06 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
I have a SlackBuild that packages the binary distribution, which has all dependencies included:

https://raw.githubusercontent.com/du...bre.SlackBuild
 
6 members found this post helpful.
Old 06-19-2017, 05:29 AM   #4
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 617

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by dugan View Post
I have a SlackBuild that packages the binary distribution, which has all dependencies included:

https://raw.githubusercontent.com/du...bre.SlackBuild
Thanks. Actually sad that it's easier to install that way, but sometimes, just sometimes, practicality beats purity. This is one of those times.
 
1 members found this post helpful.
Old 06-19-2017, 09:10 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Quote:
Originally Posted by Mark Pettit View Post
Thanks. Actually sad that it's easier to install that way, but sometimes, just sometimes, practicality beats purity. This is one of those times.
Yeah, but where is the fun in that?
I'll look into updating my own calibre.SlackBuild for this new 3.x release. Sounds like fun. Glad Kovid is still using Python2 though... less effort for me.
 
2 members found this post helpful.
Old 06-20-2017, 08:54 AM   #6
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 617

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by Alien Bob View Post
Yeah, but where is the fun in that?
Ho Ho .. Ok - that's true. I have installed this release, albeit from the site recommended way. It works. The application looks ever so slightly slicker. The new content server by way of web is very nice. Allows one to read a book inside the browser, even in offline mode. Makes sharing of books REALLY easy.
 
Old 06-20-2017, 09:38 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Quote:
Originally Posted by Mark Pettit View Post
Ho Ho .. Ok - that's true. I have installed this release, albeit from the site recommended way. It works. The application looks ever so slightly slicker. The new content server by way of web is very nice. Allows one to read a book inside the browser, even in offline mode. Makes sharing of books REALLY easy.
I guess that Kovid "borrowed" the concept of the new contentserver with the capability to read the book in your browser, from the alternative contentserver COPS: http://blog.slucas.fr/en/oss/calibre-opds-php-server
The old Calibre contentserver was taxing my hardware, looked ugly and that's why I switched to COPS a long time ago - slick, responsive and with the capability to read your books inside the browser.

I have a SlackBuild ready for calibre-3 and once I have a free VM to compile a package I will have a look at this new feature. But I am probably not going back, my COPS server is perfect: FBReader on Android understands the OPDS URL and shows me a proper library on my tablet where I can download the books I want to read.. wherever I am.
 
1 members found this post helpful.
Old 08-01-2017, 11:48 PM   #8
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,512

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
Quote:
Originally Posted by dugan View Post
I have a SlackBuild that packages the binary distribution, which has all dependencies included:

https://raw.githubusercontent.com/du...bre.SlackBuild
Having an issue with your slackbuild: https://pastebin.com/N6bF0Xge (Been lax with updates. I've got Calibre 3.0 installed, but was trying to package 3.5.)
 
Old 08-02-2017, 01:25 AM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Here's an updated SlackBuild that will package 3.5.0 from the binary installer:

Code:
#!/usr/bin/env bash

# This will package the latest version of Calibre for Slackware. Run it
# as root. It will download Calibre, package it, and give you a correctly-
# named, ready-to-install Slackware package in /tmp.

set -e

VERSION=$(wget -O - -o /dev/null http://status.calibre-ebook.com/latest)
TMP=${TMP:-/tmp}
PKG=$TMP/package-calibre
BUILD=1dc

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

rm -rf "$PKG"
rm -rf $"TMP/calibre-installer-cache"

mkdir -p "$PKG/usr/share"
mkdir -p "$PKG/usr/bin"

wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main(install_dir='$PKG/opt', isolated=True)"
LD_LIBRARY_PATH="$PKG/opt/calibre/lib" "$PKG/opt/calibre/bin/calibre_postinstall" --root="$PKG/usr"

for symlink in $(find "$PKG/usr/bin" -maxdepth 1 -type l)
do
	(
	cd "$PKG/usr/bin"
	ln -sf "/opt/calibre/$(basename "$symlink")" .
	)
done

cd "$PKG"
/sbin/makepkg -l y -c n "$TMP/calibre-$VERSION-$ARCH-${BUILD}.txz"
On my system (binary NVidia drivers, -current, ktown), It won't launch on OpenBox, and I could only get it to launch on Xfce by setting QT_SCALE_FACTOR=1 before launching it.

Last edited by dugan; 08-02-2017 at 01:40 AM.
 
2 members found this post helpful.
Old 08-02-2017, 01:56 PM   #10
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,512

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
Quote:
Originally Posted by dugan View Post
Here's an updated SlackBuild that will package 3.5.0 from the binary installer:
On my system (binary NVidia drivers, -current, ktown), It won't launch on OpenBox, and I could only get it to launch on Xfce by setting QT_SCALE_FACTOR=1 before launching it.
Awesome, thanks! Should've specified I'm on 14.2. Loaded just fine for me, no variable setting needed.

Last edited by garpu; 08-02-2017 at 01:57 PM.
 
Old 08-02-2017, 01:56 PM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by garpu View Post
Awesome, thanks! Should've specified I'm on 14.2.
How well does it work on 14.2?

EDIT: Saw your update. That's great news! Thanks for testing.

Last edited by dugan; 08-02-2017 at 02:20 PM.
 
1 members found this post helpful.
Old 08-02-2017, 06:32 PM   #12
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I concur. All is working well. Thanks
 
1 members found this post helpful.
Old 08-06-2017, 01:36 AM   #13
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Working fine here in 14.2. Thanks dugan for the script.

Just two small things.

1) I think there's a small typo here:

Code:
rm -rf $"TMP/calibre-installer-cache"
2) There's no code to add a slack-desc in the script.
 
Old 08-06-2017, 02:21 AM   #14
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Thanks. The typo is now fixed, and I now also add the slack-desc from SBo.

https://raw.githubusercontent.com/du...bre.SlackBuild
 
3 members found this post helpful.
Old 12-08-2017, 12:37 AM   #15
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by dugan View Post
On my system (binary NVidia drivers, -current, ktown), It won't launch on OpenBox, and I could only get it to launch on Xfce by setting QT_SCALE_FACTOR=1 before launching it.
Okay, I finally figured out the magic sauce that KDE (5) adds to get the upstream Calibre builds to work:

Code:
export QT_AUTO_SCREEN_SCALE_FACTOR=0
After adding this, it works in OpenBox and i3. Whereas before, I was getting the error described here:

https://bbs.archlinux.org/viewtopic.php?id=220803
https://www.mobileread.com/forums/sh...d.php?t=278909

After reading the documentation on this option, I'm wondering if the problem might be unique to my setup (my monitor is a TV that definitely doesn't give the correct EDID values):

http://doc.qt.io/qt-5/highdpi.html

Last edited by dugan; 12-08-2017 at 12:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Calibre Startup issue business_kid Slackware 13 03-01-2017 09:14 AM
LXer: Calibre 1.44.0 Is Now Available for Download LXer Syndicated Linux News 0 07-11-2014 11:36 PM
LXer: Search and Read Books from Calibre's Library in Ubuntu 13.10 with Unity Calibre Scope LXer Syndicated Linux News 0 11-22-2013 08:12 PM
Calibre RuntimeError Hyonane Slackware 5 05-05-2012 08:46 PM
[SOLVED] Calibre 0.8.18 interndan Slackware 19 10-01-2011 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration