Bug#998318: cups-client: lpoptions ignores and deletes settings of printer instances in ~/.cups/lpoptions

2021-11-17 Thread Martin Zimprich
I've drawn the Debian source package in order to rebuilt binary packages 
for CUPS 2.3.3op2-3+deb11u1.


Findings:

- CUPS builds fine without applying any patch
- applying the patch cited above under 
https://github.com/OpenPrinting/cups/issues/282 
and jusr rebuilding 
CUPS results in some errors in the clean step. Maybe this is a general 
issue with the current debian source package
- drawing sources, applying patch (without previously compiling original 
sources) and building works fine
- the resulting binaries seem to resolve the problem when installing at 
least following binary packages on the system:

 - cups_2.3.3op2-3+deb11u1_amd64.deb
 - cups-bsd_2.3.3op2-3+deb11u1_amd64.deb
 - cups-client_2.3.3op2-3+deb11u1_amd64.deb
 - cups-common_2.3.3op2-3+deb11u1_all.deb
 - cups-core-drivers_2.3.3op2-3+deb11u1_amd64.deb
 - cups-daemon_2.3.3op2-3+deb11u1_amd64.deb
 - cups-server-common_2.3.3op2-3+deb11u1_all.deb
 - libcups2_2.3.3op2-3+deb11u1_amd64.deb
 - libcupsimage2_2.3.3op2-3+deb11u1_amd64.deb

I would be pleased if the above mentioned fix could be included in 
debian stable.




Bug#998318: cups-client: lpoptions ignores and deletes settings of printer instances in ~/.cups/lpoptions

2021-11-08 Thread Brian Potkin
On Sun 07 Nov 2021 at 19:31:54 +0100, mtemp...@zimprich.info wrote:

> 
> > > * any attempt to modify printer instance settings using "lpoptions -p
> > > laserjet5si/konzept -o InputSlot=Upper" results in deletion of all
> > > "Dest" lines previously present within lpoptions file and modification
> > > of the single line that was considered to be affected
> > Not quite my observation. I cannot set up more than one instance. Adding
> > a second one witj lpoptions deletes the existing one. You show five
> > lines in your example. Was ~/.cups/lpoptions edited by hand?
> > 
> 
> For clarification:
> The  ~/.cups/lpoptions file cited above has been extracted from a backup
> taken before upgrade towards debian bullseye (minus potential but in case
> present unintentional modifications while copy-pasting from the backup).
> It is being rewirtten in the same way you reproduced above upon any attempt
> to issue an "lpoptions -p" command with the new CUPS installation.
> 
> Thanks for keeping tracks of this issue.

Upstream has responded at

  https://github.com/OpenPrinting/cups/issues/282

and asked

  Would you mind applying the patch and telling me whether 
  it helps with your issue?

Applying patches and rebuilding is not in my skill set. Can you help out
here, Martin? Thorsten?

Cheers,

Brian.



Bug#998318: cups-client: lpoptions ignores and deletes settings of printer instances in ~/.cups/lpoptions

2021-11-07 Thread mtemp001




* any attempt to modify printer instance settings using "lpoptions -p
laserjet5si/konzept -o InputSlot=Upper" results in deletion of all
"Dest" lines previously present within lpoptions file and modification
of the single line that was considered to be affected

Not quite my observation. I cannot set up more than one instance. Adding
a second one witj lpoptions deletes the existing one. You show five
lines in your example. Was ~/.cups/lpoptions edited by hand?



For clarification:
The  ~/.cups/lpoptions file cited above has been extracted from a backup 
taken before upgrade towards debian bullseye (minus potential but in 
case present unintentional modifications while copy-pasting from the 
backup).
It is being rewirtten in the same way you reproduced above upon any 
attempt to issue an "lpoptions -p" command with the new CUPS installation.


Thanks for keeping tracks of this issue.

Regards,
Martin



Bug#998318: cups-client: lpoptions ignores and deletes settings of printer instances in ~/.cups/lpoptions

2021-11-07 Thread Brian Potkin
tags 998318 upstream
forwarded 998318 https://github.com/OpenPrinting/cups/issues/282
thanks



On Tue 02 Nov 2021 at 11:42:31 +0100, Martin Zimprich wrote:

> Package: cups-client
> Version: 2.3.3op2-3+deb11u1
> Severity: normal
> 
> Dear Maintainer,

That's not me, Martin, but we thank you for your comprehensive report.
 
> after upgrade from to Debian buster to bullseye (cups-client 2.2.10-6
> to 2.3.3op2) the lopptions does not properly handle printer instances
> defined in ~/.cups/lpoptions

Agreed.

> Symptoms:
> * "lpoptions -p laserjet5si/konzept -l" gives the same output as
> "lpoptions -p laserjet5si/manuell -l" (namely the default printer
> settings made in CUPS) while lpoptions file defines different settings
> for both of these instances (see example file below)

It appears that an instance is inheriting options from the main queue.
This is not supposed to happen. An instance is also not shown in the
output of 'lpstat -a'.

> * any attempt to modify printer instance settings using "lpoptions -p
> laserjet5si/konzept -o InputSlot=Upper" results in deletion of all
> "Dest" lines previously present within lpoptions file and modification
> of the single line that was considered to be affected

Not quite my observation. I cannot set up more than one instance. Adding
a second one witj lpoptions deletes the existing one. You show five
lines in your example. Was ~/.cups/lpoptions edited by hand?

> * third party applications such as Okular (4:20.12.3-2) are not able
> to display or use any printer instance defined * downgrade to
> cups-client 2.2.10 and according dependencies seems to bypass the
> problem and allows the very same third party applications to display
> and use printer instances again

I spent little time on this. Partly because buster's Firefox did not
display instances for me and partly because I am wary of trusting an
app's dialog to do the right thing.
 
> -- example ~/.cups/lpoptions file in use:
> 
> Default bx310fn
> Dest laserjet5si/blank_duplex Duplex=DuplexNoTumble InputSlot=LargeCapacity
> Dest laserjet5si/konzept InputSlot=Upper 
> Dest laserjet5si/manuell InputSlot=Manual
> Dest P6021cdn InputSlot=MF1

Debian 10 has CUPS 2.2.10. The following link describes very similar
observations to ours when CUPS 2.2.12 is used:

  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240183 

Regards,

Brian.



Bug#998318: cups-client: lpoptions ignores and deletes settings of printer instances in ~/.cups/lpoptions

2021-11-02 Thread Martin Zimprich
Package: cups-client
Version: 2.3.3op2-3+deb11u1
Severity: normal

Dear Maintainer,

after upgrade from to Debian buster to bullseye (cups-client 2.2.10-6 to 
2.3.3op2) the lopptions does not properly handle printer instances defined in 
~/.cups/lpoptions

Symptoms:
* "lpoptions -p laserjet5si/konzept -l" gives the same output as "lpoptions -p 
laserjet5si/manuell -l" (namely the default printer settings made in CUPS) 
while lpoptions file defines different settings for both of these instances 
(see example file below)
* any attempt to modify printer instance settings using "lpoptions -p 
laserjet5si/konzept -o InputSlot=Upper" results in deletion of all "Dest" lines 
previously present within lpoptions file and modification of the single line 
that was considered to be affected
* third party applications such as Okular (4:20.12.3-2) are not able to display 
or use any printer instance defined
* downgrade to cups-client 2.2.10 and according dependencies seems to bypass 
the problem and allows the very same third party applications to display and 
use printer instances again

-- example ~/.cups/lpoptions file in use:

Default bx310fn
Dest laserjet5si/blank_duplex Duplex=DuplexNoTumble InputSlot=LargeCapacity
Dest laserjet5si/konzept InputSlot=Upper 
Dest laserjet5si/manuell InputSlot=Manual
Dest P6021cdn InputSlot=MF1

-- example output of lpoptions -p laserjet5si/konzept -l

PageSize/Media Size: Letter Legal Tabloid Executive w288h432 w360h576 Statement 
SuperB A3 *A4 A5 B4 B5 C5 C6 DL COM10 Monarch
ColorModel/Color Model: *Gray Black
StpColorPrecision/Color Precision: *Normal Best
InputSlot/Media Source: *Standard ManualAdj Manual MultiPurposeAdj MultiPurpose 
UpperAdj Upper LowerAdj Lower LargeCapacityAdj LargeCapacity
StpQuality/Print Quality: None Draft *Standard High
Resolution/Resolution: *301x300dpi 150dpi 300dpi 600dpi
Duplex/2-Sided Printing: *None DuplexNoTumble DuplexTumble
StpiShrinkOutput/Shrink Page If Necessary to Fit Borders: Shrink *Crop Expand
StpColorCorrection/Color Correction: *None Accurate Bright Hue Uncorrected 
Desaturated Threshold Density Raw Predithered
StpBrightness/Brightness: 0 100 200 300 400 500 600 700 800 900 *None 1100 1200 
1300 1400 1500 1600 1700 1800 1900 2000 Custom.REAL
StpFineBrightness/Brightness Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 
50 55 60 65 70 75 80 85 90 95
StpContrast/Contrast: 0 100 200 300 400 500 600 700 800 900 *None 1100 1200 
1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 
2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 Custom.REAL
StpFineContrast/Contrast Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 
55 60 65 70 75 80 85 90 95
StpImageType/Image Type: None Text Graphics *TextGraphics Photo LineArt
StpDensity/Density: 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 
1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 
3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 
4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 6100 
6200 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7600 7700 
7800 7900 8000 *None Custom.REAL
StpFineDensity/Density Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 50 55 
60 65 70 75 80 85 90 95
StpDitherAlgorithm/Dither Algorithm: *None EvenTone HybridEvenTone Adaptive 
Ordered OrderedNew Fast VeryFast Floyd Predithered Segmented SegmentedNew
StpGamma/Composite Gamma: 100 200 300 400 500 600 700 800 900 1000 1100 1200 
1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 
2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 *None Custom.REAL
StpFineGamma/Composite Gamma Fine Adjustment: *None 0 5 10 15 20 25 30 35 40 45 
50 55 60 65 70 75 80 85 90 95
StpLinearContrast/Linear Contrast Adjustment: *False True


-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.46-btusb (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de:en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cups-client depends on:
ii  adduser  3.118
ii  cups-common  2.3.3op2-7
ii  libc62.31-13+deb11u2
ii  libcups2 2.3.3op2-3+deb11u1

cups-client recommends no packages.

Versions of packages cups-client suggests:
ii  cups   2.3.3op2-3+deb11u1
ii  cups-bsd   2.3.3op2-3+deb11u1
ii  smbclient  2:4.13.5+dfsg-2

-- no debconf information