Bug 1212918

Summary: unable to install screen-4.2.1-4.fc22.ppc64.rpm using rpm
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: screenAssignee: Petr Hracek <phracek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, jzeleny, lkardos, lnykryn, lvrabec, mgrepl, novyjindrich, packaging-team-maint, phracek, pknirsch, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: screen-4.2.1-5.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-04 20:17:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
disply when I used rpm -Uvvh none

Description Menanteau Guy 2015-04-17 16:29:09 UTC
I installed a bare metal machine ppc64 with Beta_TC2 compose
http://ppc.koji.fedoraproject.org/compose/22_Beta_TC2/22_Beta_TC2/Server/ppc64
Then I tried to install screen-4.2.1-4.fc22.ppc64.rpm without using dnf.
I did wget http://ppc.koji.fedoraproject.org/kojifiles/packages/screen/4.2.1/4.fc22/ppc64/screen-4.2.1-4.fc22.ppc64.rpm
and rpm -Uvh screen-4.2.1-4.fc22.ppc64.rpm

I got ############################################ for ever on display.

In attachment is what I have got using rpm -vv option.

Comment 1 Menanteau Guy 2015-04-17 16:30:06 UTC
Created attachment 1015676 [details]
disply when I used rpm -Uvvh

Comment 2 Menanteau Guy 2015-04-17 16:32:40 UTC
Install of screen-4.2.1-3.fc21.ppc64.rpm in same way is fine.

Comment 3 Petr Hracek 2015-05-26 10:05:26 UTC
It is a problem with selinux-policy, I guess.
Reassigning.

Plugin: calling hook psm_pre in selinux plugin
D: %prein(screen-4.2.1-4.fc22.ppc64): scriptlet start
fdio:       2 writes,       46 total bytes in 0.000053 secs
D: %prein(screen-4.2.1-4.fc22.ppc64): execv(/bin/sh) pid 4156
D: Plugin: calling hook scriptlet_fork_post in selinux plugin
D: setexeccon: (/bin/sh, unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023) 
+ /usr/sbin/groupadd -g 84 -r -f screen
+ :
D: %prein(screen-4.2.1-4.fc22.ppc64): waitpid(4156) rc 4156 status 0
Updating / installing...
   1:screen-4.2.1-4.fc22              D: ========== Directories not explicitly included in package:
D:          0 /etc/pam.d/
D:          1 /etc/
D:          2 /usr/bin/
D:          3 /usr/lib/tmpfiles.d/
D:          4 /usr/share/doc/
D:          6 /usr/share/info/
D:          7 /usr/share/man/man1/
D:          8 /usr/share/
D:         11 /var/run/
D: ==========
D: create     100644  1 (   0,   0)    36 /etc/pam.d/screen;55313f46
###############################################################################(###############################################################################################################################################################(###########################################################################################################################################################(168%######################ufdio:       1 writes,       36 total bytes in 0.000012 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: lsetfilecon: (/etc/pam.d/screen;55313f46, system_u:object_r:etc_t:s0) 
D: create     100644  1 (   0,   0)  6722 /etc/screenrc;55313f46

Comment 4 Ľuboš Kardoš 2015-05-27 15:44:58 UTC
Package has not set tag ARCHIVESIZE nor LONGARCHIVESIZE:

$ rpm -qp --qf "%{ARCHIVESIZE}\n" screen-4.2.1-4.fc22.ppc64.rpm
0
$ rpm -qp --qf "%{LONGARCHIVESIZE}\n" screen-4.2.1-4.fc22.ppc64.rpm
0

If rpm doesn't know how big is the archive in package then it doesn't know how big part of archive is processed that's why you can see weird percentage like 168%.

So the problem is in how the package was built. I will try to reproduce that.

Comment 5 Ľuboš Kardoš 2015-05-28 11:53:12 UTC
Well, this is known bug in rpmbuild and it was fixed in rpm-4.12.0.1-3, but the package screen-4.2.1-4.fc22.ppc64.rpm was built with rpm-4.12.0-0.beta1.3. So solution for this problem is rebuilding of the package screen with the newest rpm. Assigning back to maintainer of the package screen to rebuild the package.

Comment 7 Fedora Update System 2015-05-28 13:03:22 UTC
screen-4.2.1-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/screen-4.2.1-5.fc22

Comment 8 Fedora Update System 2015-05-30 15:56:33 UTC
Package screen-4.2.1-5.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing screen-4.2.1-5.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9224/screen-4.2.1-5.fc22
then log in and leave karma (feedback).

Comment 9 Petr Hracek 2015-06-01 07:55:13 UTC
ppc-koji scratch build: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2520809

Comment 10 Petr Hracek 2015-06-01 07:56:30 UTC
Command for building is ppc-koji build --scratch f22 <srpm>

Only for information, though.

Comment 11 Fedora Update System 2015-06-04 20:17:11 UTC
screen-4.2.1-5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.