Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 220889

Summary: Review Request: fakechroot - Gives a fake chroot environment
Product: [Fedora] Fedora Reporter: Axel Thimm <axel.thimm>
Component: Package ReviewAssignee: Mamoru TASAKA <mtasaka>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Package Reviews List <fedora-package-review>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mtasaka
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-01 21:12:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 163779    

Description Axel Thimm 2006-12-28 13:00:13 UTC
Spec URL:
Gives a fake chroot environment.

Comment 1 Parag AN(पराग) 2006-12-28 15:12:37 UTC
Kindly remove .a and .la files from installation

Comment 2 Axel Thimm 2006-12-29 12:25:59 UTC
Spec URL:

* Thu Dec 28 2006 Axel Thimm <Axel.Thimm> - 2.5-9
- Don't build static lib.
- Exclude libtool lib.

Comment 3 Axel Thimm 2006-12-29 18:12:41 UTC
%description is a bit terse, please assume the %description reads:

   fakechroot runs a command in an environment were is additionally possible to
   use the chroot(8) call without root privileges. This is useful for allowing 
   users to create their own chrooted environment with possibility to install
   another packages without need for root privileges.

E.g. this and fakeroot are useful

a) for mock and friends for students w/o root access, as well as
b) for hardening buildsystems (impossible to gain root privileges by injecting
   malicious packages into build hosts)

There is no technical dependency between fakeroot and fakechroot, but it makes
most sense to use both together for faking chroot calls and setting up faked

Comment 4 Mamoru TASAKA 2006-12-31 18:53:57 UTC
Well, a very quick check:

* Please add a license documentation.
  Note: LICENSE documentation says that this is licensed under
  LGPL, not GPL.
* Can the files under test/ can be used for %check?
* What are other scripts under scripts/ directories?
* %{_libdir}/fakechroot/ is not owned by any packages.

Comment 5 Axel Thimm 2007-01-01 14:31:00 UTC
Spec URL:

* Sun Dec 31 2006 Axel Thimm <Axel.Thimm> - 2.5-11
- Add %%{_libdir}/fakechroot to %%files.
- Fix license (is LGPL, not GPL).
- Add commented %%check (currently broken).
- Add ldd.fake and save/ to %%doc

* Fri Dec 29 2006 Axel Thimm <Axel.Thimm> - 2.5-10
- Extend the %%description a bit.

Comment 6 Mamoru TASAKA 2007-01-01 17:56:11 UTC

A. From
=  Licensing -- is not LGPL and this is correct

* Use rpmlint
W: fakechroot doc-file-dependency /usr/share/doc/fakechroot-2.5/ldd.fake

   Well.. I understood first when I read the following.
doc-file-dependency :
An included file marked as %doc creates a possible additional dependency in
the package.  Usually, this is not wanted and may be caused by eg. example
scripts with executable bits set included in the package's documentation.

   For this package, 
[tasaka1@localhost ~]$ rpm -q --requires fakechroot
/usr/bin/perl  <- THIS  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    and /usr/bin/perl is actually not necessary.
    When I all changed the permission of %doc files
    to 0644,
[tasaka1@localhost i386]$ rpm -qp --requires fakechroot-2.5-11.1.i386.rpm 
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    and the dependency for /usr/bin/perl disappears.

    Change the permission of %doc files to 0644.
    (However, I think this is somewhat bug of rpmbuild?)

   = This is okay, except for written in A.

Please fix the issues in A. Other things are okay.
   This package (fakechroot) is APPROVED by me.

Comment 7 Mamoru TASAKA 2007-01-01 18:01:47 UTC
(In reply to comment #6)
> A. From
> =  Licensing -- is not LGPL and this is correct

I meant "Licensing -- is now LGPL and this is correct"....

Comment 8 Axel Thimm 2007-01-01 21:12:58 UTC
Thanks for the review! Final changelog entry:

* Mon Jan  1 2007 Axel Thimm <Axel.Thimm> - 2.5-12
- Remove executable bits from scripts in documentation.