stefan-langenmaier / brother-overlay

Portage overlay for Brother printer and scanner software
GNU General Public License v3.0
34 stars 41 forks source link

32-bit libraries for brother-genml1-bin #118

Open jason-but opened 1 year ago

jason-but commented 1 year ago

Hello some time (over a year) ago after an upgrade of some sort, printing just stopped working. As I don't print often I could not narrow down which update broke the system.

Every print ended with frustration, asking a Windows user to print, and hoping to get to the bottom of it. Eventually, I was able to sort this out

The error log was reporting

W [Job 69] Grayscale/monochrome printing requested for this job but Poppler is not able to convert to grayscale/monochrome PostScript. W [Job 69] Use \"pdftops-renderer\" option (see cups-filters README file) to use Ghostscript or MuPDF for the PDF -> PostScript conversion.

But this was not the true error. In the end, it turned out that the filter/backend was failing because it couldn't load the 32-bit libraries.

This issue is referred to here (https://wiki.gentoo.org/wiki/Brother_networked_printer#Generic_LPR_printer_driver_on_amd64_no-multilib), but I do have a multi-lib profile selected: default/linux/amd64/17.1/desktop/plasma

In essence, I did not have to install the 32-bit glibc, but I did have to modify the lpdfilter and cupswrapper file as specified in the Wiki. However I used instead the line:

$ENV{LD_LIBRARY_PATH} = "/lib";

In the files:

I would suggest it would be great if the ebuild sorted this out automatically

My printer is the Brother MFC-7065dn, however it appears both these files belong to net-print/brother-genml1-bin so a single fix should address all printers

On a separate note, this printer does not appear to support IPP Everywhere, does anyone have any expectation as to what the future will hold?

stefan-langenmaier commented 1 year ago

Hi Jason,

thanks for the feedback. If I understand the section in the wiki correctly you need to have at least "some parts" of a 32-bit glibc installed. In the specific example this has been extracted from a Fedora package.

While this seems functioning I assume people install their default 32-bit libc via Gentoo packages.

Please correct me if I have misunderstanding.

jason-but commented 1 year ago

I think it depends on which profile you have. If you have a no-multilib profile selected, then you get no 32-bit packages. Looking at your ebuild, I think that installation will also abort in these cases.

If you have a multilib profile, then glib gets installed in both 32/64 versions and just the path needs to be updated

jason-but commented 11 months ago

Hello Stefan

Would be interested to know if a planned patch is coming