Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908736 - net-print/hplip-3.23.3: clang requires patch to successfully compile
Summary: net-print/hplip-3.23.3: clang requires patch to successfully compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-17 23:19 UTC by Rahul Sandhu
Modified: 2023-07-01 16:18 UTC (History)
2 users (show)

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


Attachments
Add patch (hplip.patch,357 bytes, patch)
2023-06-17 23:20 UTC, Rahul Sandhu
Details | Diff
Add build.log for when patch is not used (build.log,548.51 KB, text/x-log)
2023-06-17 23:23 UTC, Rahul Sandhu
Details
Add c++14 enviroment for those stuck on compiling with clang. (clang-cpp-14,49 bytes, text/plain)
2023-06-17 23:25 UTC, Rahul Sandhu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rahul Sandhu 2023-06-17 23:19:33 UTC
When using clang with net-print/hplip-3.23.3, a patch is needed (attached). 

Also, for those struggling to compile it and searching online for information, you will need to add -std=c++14 to an env for hplip (create a file say clang-cpp-14 in /etc/portage/env and in /etc/portage/package.env/ add net-print/hplip clang-cpp-14) 

Reproducible: Always

Steps to Reproduce:
1. Use clang as compiler for net-print/hplip-3.23.3
Actual Results:  
Fails to compile (build log attached)

Expected Results:  
Successful compile
Comment 1 Rahul Sandhu 2023-06-17 23:20:23 UTC
Created attachment 864104 [details, diff]
Add patch
Comment 2 Rahul Sandhu 2023-06-17 23:23:02 UTC
Created attachment 864105 [details]
Add build.log for when patch is not used
Comment 3 Rahul Sandhu 2023-06-17 23:25:38 UTC
Created attachment 864106 [details]
Add c++14 enviroment for those stuck on compiling with clang.

Only use if using net-print/hplip with clang, not with gcc.
Comment 4 Larry the Git Cow gentoo-dev 2023-07-01 16:18:33 UTC
The bug has been closed via the following commit(s):

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

commit f672e161c5cd252fcba9a533d446bbc6c7fee907
Author:     Daniel Pielmeier <billie@gentoo.org>
AuthorDate: 2023-07-01 16:17:34 +0000
Commit:     Daniel Pielmeier <billie@gentoo.org>
CommitDate: 2023-07-01 16:18:13 +0000

    net-print/hplip: add 3.23.5
    
    Closes: https://bugs.gentoo.org/882891
    Closes: https://bugs.gentoo.org/908736
    Closes: https://bugs.gentoo.org/909351
    Signed-off-by: Daniel Pielmeier <billie@gentoo.org>

 net-print/hplip/Manifest            |   2 +
 net-print/hplip/hplip-3.23.5.ebuild | 290 ++++++++++++++++++++++++++++++++++++
 2 files changed, 292 insertions(+)