LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-05-2021, 12:55 PM   #46
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,398

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336

So, it's a bug?

I tried on slackbuilds.org but that is only showing me hplip-plugin-3.16.5 from 14.2.

It's only 21Megs, which is a relief. I think I was 2½ - 3 hours building qt4! I've a twin core i3 laptop.

I can do the configure, make, package & install it, but if you link me to the slackbuild you guys use, I'll edit that and use it. It will have to be tomorrow anyhow, because it's late here
 
Old 03-05-2021, 01:24 PM   #47
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by business_kid View Post
So, it's a bug?
I'm not sure if it's a bug, that's why I'm having you try and build this. If you build it with explicitly disabling qt4 support and the problem goes away, then we can suggest to Pat to change it on the official script. If it doesn't work and it is still referencing PyQt4, then we'd need to check if there's some other option that needs to be disabled or file a bug report upstream.

Quote:
Originally Posted by business_kid View Post
I tried on slackbuilds.org but that is only showing me hplip-plugin-3.16.5 from 14.2.

It's only 21Megs, which is a relief. I think I was 2½ - 3 hours building qt4! I've a twin core i3 laptop.

I can do the configure, make, package & install it, but if you link me to the slackbuild you guys use, I'll edit that and use it. It will have to be tomorrow anyhow, because it's late here
The code I provided will download everything needed to build the hplip package. It will include the source, SlackBuild, slack-desc, and several patches Pat uses. Once downloaded, cd into the directory, edit the SlackBuild in there, then simply run the SlackBuild. The hope is building this with explicitly disabling qt4 will ensure that no portions of the package rely on qt4 components.

We don't want to build qt4 or anything relying on it, as -current has moved beyond qt4 and we don't want anything in the OS relying on it.
 
Old 03-06-2021, 05:48 AM   #48
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,398

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
OK, I built hplip with --disable-qt4 just after --enable-qt5 as you suggested. Hp-check still bales out in exactly the same spot.

I did a little digging. hp-check is a symlink to a script /usr/share/hplip/check.py, which is not compiled. In trying to satisfy the slackbuild, I made a tar.xz and had a look there. A grep for qt4 rolls off the page. In my (not hugely educated) opinion, it would take a significant patch to remove references to qt4. You could of course patch /usr/share/hplip/check.py but that might simply hide other problems. I don't know how a recursive sed command would work, simply swapping qt5 for qt4, but that sort of unprofessional thing usually ends in frustration. Mind you, it did compile with --disable-qt4, so the binaries might be ok.

I have Mint-19.3 (= Ubuntu-18.04 with go-faster stripes) and Debian Buster in the form of RazPi OS (32bit), and I installed the sane packages and dependencies on them both. As my Printer/Scanner is networked they can easily find it, but both threw the same error as Slackware. So I have my result- a speculative diagnosis confirmed. From the Slackware POV, you have yours - there's a lot of qt4 references in hplip, and hp-check is broken.

EDIT: I had a look in check.py, (my error shows on line 303) and it references some external lists, checks them one by one, and exits on this pyqt4. It will take someone who knows python (i.e. not me - I'm a hardware guy) to sort this.

Last edited by business_kid; 03-06-2021 at 10:47 AM.
 
  


Reply



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
Scanner help.. failed to open device snapscan/dev/usb/scanner johnathan Linux - Hardware 2 10-12-2007 06:06 PM
Scanner/Printer Combo Unit - Scanner Works - Printer Does Not rrrssssss Linux - Hardware 1 03-04-2007 10:49 PM
Qmail-scanner: custom scanner cuigri Linux - Software 1 10-18-2004 05:46 AM
can't locate module scanner > how to get scanner work? b0uncer Linux - Hardware 1 10-26-2003 06:50 AM
Scanner driver for USB scanner rros Linux - Newbie 1 04-23-2001 12:30 AM

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

All times are GMT -5. The time now is 08:07 PM.

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