Bug 1696723 - fakeroot's %post scriptlet fails in environments with tsflags=nodocs
Summary: fakeroot's %post scriptlet fails in environments with tsflags=nodocs
Keywords:
Status: CLOSED DUPLICATE of bug 1677540
Alias: None
Product: Fedora
Classification: Fedora
Component: fakeroot
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-05 13:50 UTC by Jan Pazdziora
Modified: 2019-09-24 13:58 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-24 13:58:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Pazdziora 2019-04-05 13:50:38 UTC
Description of problem:

When fakeroot is being installed in environment where documentation files are disabled, for example via tsflags=nodocs in /etc/dnf/dnf.conf, the postinstall scriptlet exits with error.

Version-Release number of selected component (if applicable):

fakeroot-1.23-1.fc29.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. docker run --rm -ti registry.fedoraproject.org/fedora:29 dnf install -y fakeroot

Actual results:

Fedora Modular 29 - x86_64                      387 kB/s | 1.5 MB     00:03    
Fedora Modular 29 - x86_64 - Updates            531 kB/s | 2.1 MB     00:04    
Fedora 29 - x86_64 - Updates                    5.9 MB/s |  25 MB     00:04    
Fedora 29 - x86_64                               14 MB/s |  62 MB     00:04    
Dependencies resolved.
================================================================================
 Package               Arch           Version              Repository      Size
================================================================================
Installing:
 fakeroot              x86_64         1.23-1.fc29          fedora          98 k
Installing dependencies:
 fakeroot-libs         x86_64         1.23-1.fc29          fedora          34 k

Transaction Summary
================================================================================
Install  2 Packages

Total download size: 133 k
Installed size: 321 k
Downloading Packages:
(1/2): fakeroot-libs-1.23-1.fc29.x86_64.rpm      34 kB/s |  34 kB     00:01    
(2/2): fakeroot-1.23-1.fc29.x86_64.rpm           97 kB/s |  98 kB     00:01    
--------------------------------------------------------------------------------
Total                                            46 kB/s | 133 kB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : fakeroot-libs-1.23-1.fc29.x86_64                       1/2 
  Installing       : fakeroot-1.23-1.fc29.x86_64                            2/2 
  Running scriptlet: fakeroot-1.23-1.fc29.x86_64                            2/2 
failed to link /usr/share/man/de/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.de.1.gz: No such file or directory
failed to link /usr/share/man/de/man1/faked.1.gz -> /etc/alternatives/faked.de.1.gz: No such file or directory
failed to link /usr/share/man/es/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.es.1.gz: No such file or directory
failed to link /usr/share/man/es/man1/faked.1.gz -> /etc/alternatives/faked.es.1.gz: No such file or directory
failed to link /usr/share/man/fr/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.fr.1.gz: No such file or directory
failed to link /usr/share/man/fr/man1/faked.1.gz -> /etc/alternatives/faked.fr.1.gz: No such file or directory
failed to link /usr/share/man/nl/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.nl.1.gz: No such file or directory
failed to link /usr/share/man/nl/man1/faked.1.gz -> /etc/alternatives/faked.nl.1.gz: No such file or directory
failed to link /usr/share/man/pt/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.pt.1.gz: No such file or directory
failed to link /usr/share/man/pt/man1/faked.1.gz -> /etc/alternatives/faked.pt.1.gz: No such file or directory
failed to link /usr/share/man/sv/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.sv.1.gz: No such file or directory
failed to link /usr/share/man/sv/man1/faked.1.gz -> /etc/alternatives/faked.sv.1.gz: No such file or directory
failed to link /usr/share/man/de/man1/faked.1.gz -> /etc/alternatives/faked.de.1.gz: No such file or directory
failed to link /usr/share/man/de/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.de.1.gz: No such file or directory
failed to link /usr/share/man/es/man1/faked.1.gz -> /etc/alternatives/faked.es.1.gz: No such file or directory
failed to link /usr/share/man/es/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.es.1.gz: No such file or directory
failed to link /usr/share/man/fr/man1/faked.1.gz -> /etc/alternatives/faked.fr.1.gz: No such file or directory
failed to link /usr/share/man/fr/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.fr.1.gz: No such file or directory
failed to link /usr/share/man/nl/man1/faked.1.gz -> /etc/alternatives/faked.nl.1.gz: No such file or directory
failed to link /usr/share/man/nl/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.nl.1.gz: No such file or directory
failed to link /usr/share/man/pt/man1/faked.1.gz -> /etc/alternatives/faked.pt.1.gz: No such file or directory
failed to link /usr/share/man/pt/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.pt.1.gz: No such file or directory
failed to link /usr/share/man/sv/man1/faked.1.gz -> /etc/alternatives/faked.sv.1.gz: No such file or directory
failed to link /usr/share/man/sv/man1/fakeroot.1.gz -> /etc/alternatives/fakeroot.sv.1.gz: No such file or directory
warning: %post(fakeroot-1.23-1.fc29.x86_64) scriptlet failed, exit status 2

Error in POSTIN scriptlet in rpm package fakeroot
  Verifying        : fakeroot-1.23-1.fc29.x86_64                            1/2 
  Verifying        : fakeroot-libs-1.23-1.fc29.x86_64                       2/2 

Installed:
  fakeroot-1.23-1.fc29.x86_64          fakeroot-libs-1.23-1.fc29.x86_64         

Complete!

Expected results:

No "No such file or directory" messages and %post exiting with status 0.

Additional info:

Comment 1 ekulik 2019-07-28 19:05:41 UTC
Dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1677540?

Comment 2 Dominik 'Rathann' Mierzejewski 2019-08-05 23:02:30 UTC
(In reply to Ernestas Kulik from comment #1)
> Dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1677540?

That one is for F30, and this one is for F29, but yes, same issue.

Comment 3 Dominik 'Rathann' Mierzejewski 2019-09-24 13:58:26 UTC

*** This bug has been marked as a duplicate of bug 1677540 ***


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