Bug 1208985 - psnup: could not get default paper size
Summary: psnup: could not get default paper size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: psutils
Version: 21
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-04 21:18 UTC by Jan Rauberg
Modified: 2015-07-23 09:00 UTC (History)
2 users (show)

Fixed In Version: psutils-1.23-7.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-21 00:13:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Rauberg 2015-04-04 21:18:40 UTC
Description of problem:
psnup does not start. Instead I get this error message no matter which parameters I give:
could not get default paper size

Version-Release number of selected component (if applicable):
1.23 6.fc21

How reproducible:
start psnup without any parameter

Steps to Reproduce:
1. see above
2.
3.

Actual results:
psnup: could not get default paper size

Expected results:
converted PS file

Additional info:

Comment 1 Dario Lesca 2015-04-29 10:52:41 UTC
I have same error:

On Fedora 21 NOT work (same input file):
[lesca@dodo ~]$ rpm -q psutils
psutils-1.23-6.fc21.x86_64
[lesca@dodo ~]$ cat /tmp/out.ps | psnup -q -2  >/tmp/out2.ps
psnup: could not get default paper size

On Fedora 20 work (same input file):
[lesca@macprolinux ~]$ rpm -q psutils
psutils-1.17-43.fc20.x86_64
[lesca@macprolinux ~]$ cat /tmp/out.ps | psnup -q -2  >/tmp/out2.ps

Workaround:
[lesca@dodo ~]$ sudo yum remove psutils
[lesca@dodo ~]$ sudo yum install ftp://bo.mirror.garr.it/pub/1/fedora/linux/releases/20/Everything/x86_64/os/Packages/p/psutils-1.17-43.fc20.x86_64.rpm
[lesca@dodo ~]$ sudo sh -c 'echo "exclude=psutils" >> /etc/yum.conf'

Comment 2 Jiri Popelka 2015-05-27 13:00:20 UTC
psnup consults paperconf binary (libpaper package) to see what are the default paper dimensions. Problem here seems to be that returned width & height contain comma instead of decimal point, i.e. it (paperconf -s) returns (a4 paper in my case)
595,276 841,89
instead of
595.276 841.89
and psutil then fails to parse it.

It's caused by
http://pkgs.fedoraproject.org/cgit/libpaper.git/tree/libpaper-useglibcfallback.patch

I don't know why libpaper uses that patch,
but psutil should probably handle it somehow.

Comment 3 Dario Lesca 2015-05-27 13:40:08 UTC
This issue still exist into f22.

Workaround in this case is the same, but:
...
sudo sh -c 'echo "exclude=psutils" >> /etc/dnf/dnf.conf'
...

Comment 4 Fedora Update System 2015-05-29 12:04:53 UTC
psutils-1.23-7.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/psutils-1.23-7.fc22

Comment 5 Fedora Update System 2015-05-29 12:05:13 UTC
psutils-1.23-7.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/psutils-1.23-7.fc21

Comment 6 Fedora Update System 2015-05-30 15:36:11 UTC
Package psutils-1.23-7.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing psutils-1.23-7.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9053/psutils-1.23-7.fc21
then log in and leave karma (feedback).

Comment 7 Dario Lesca 2015-05-30 20:57:49 UTC
(In reply to Fedora Update System from comment #4)
> psutils-1.23-7.fc22 has been submitted as an update for Fedora 22.
> https://admin.fedoraproject.org/updates/psutils-1.23-7.fc22

I have download and install this package x86_64:
http://koji.fedoraproject.org/koji/buildinfo?buildID=639892
and now all work fine.

Thank to all.

Comment 8 Fedora Update System 2015-06-21 00:13:16 UTC
psutils-1.23-7.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-07-23 09:00:30 UTC
psutils-1.23-7.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.