Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940464 - dev-java/openjdk pulls in net-print/cups even with USE=-cups
Summary: dev-java/openjdk pulls in net-print/cups even with USE=-cups
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-28 18:41 UTC by Phil Stracchino (Unix Ronin)
Modified: 2024-09-28 19:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Stracchino (Unix Ronin) 2024-09-28 18:41:39 UTC
In light of the recently published cups-browsed (which I don't run) vulnerability, I've been trying to remove net-print/cups from my systems that don't need it, only to find that I cannot, because even with USE=-cups, dev-java/openjdk pulls it in ANYWAY:

minbar:root:~:7 # emerge -pvc app-text/ghostscript-gpl net-print/cups

Calculating dependencies... done!
  net-print/cups-2.4.10-r1 pulled in by:
    dev-java/openjdk-17.0.12_p7 requires net-print/cups

>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 app-text/ghostscript-gpl
    selected: 10.03.1
   protected: none
     omitted: none

All selected packages: =app-text/ghostscript-gpl-10.03.1

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Packages installed:   1058
Packages in world:    172
Packages in system:   49
Required packages:    1035
Number to remove:     1
minbar:root:~:8 # grep openjdk /etc/portage/package.use
dev-java/openjdk -cups


On one of the affected systems, I don't have anything that depends any longer on dev-java/openjdk and can remove it.  However, I cannot remove it from the machine that hosts minecraft servers because minecraft needs it.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-28 18:43:00 UTC
I believe OpenJDK always needs the headers for CUPS, or at least it did for a very long time.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-28 18:43:29 UTC
(In reply to Sam James from comment #1)
> I believe OpenJDK always needs the headers for CUPS, or at least it did for
> a very long time.

Yep: https://github.com/openjdk/jdk/blob/73ebb848fdb66861e912ea747c039ddd1f7a5f48/make/autoconf/lib-cups.m4#L46.