Bug 1324784 - Review Request: pseudo - Advanced tool for simulating superuser privileges
Summary: Review Request: pseudo - Advanced tool for simulating superuser privileges
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-07 09:48 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2016-10-22 07:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-19 17:27:43 UTC
Type: ---
Embargoed:
ignatenko: fedora-review+


Attachments (Terms of Use)
Proposed patch for spec (3.53 KB, patch)
2016-08-30 07:05 UTC, Igor Gnatenko
no flags Details | Diff
[PATCH] man: Add NAME section (1.27 KB, patch)
2016-08-30 07:06 UTC, Igor Gnatenko
no flags Details | Diff

Description Dominik 'Rathann' Mierzejewski 2016-04-07 09:48:07 UTC
Spec URL: https://rathann.fedorapeople.org/review/pseudo/pseudo.spec
SRPM URL: https://rathann.fedorapeople.org/review/pseudo/pseudo-1.7.5-1.fc23.src.rpm
Description:
The pseudo utility offers a way to run commands in a virtualized "root"
environment, allowing ordinary users to run commands which give the illusion of
creating device nodes, changing file ownership, and otherwise doing things
necessary for creating distribution packages or filesystems.

Pseudo has a lot of similarities to fakeroot but is a new implementation that
improves on the problems seen using fakeroot. Pseudo is now extensively used by
Poky as a replacement to fakeroot but can also be used standalone in many other
use cases.

Fedora Account System Username: rathann

Comment 1 Raphael Groner 2016-07-16 07:10:09 UTC
Can you use the name pseudoroot for package and binary? I think pseudo is a too generic name and pseudoroot would be in conjunction with fakeroot what does similiar things. There's an alternative and some binary/script fakeroot-pseudo, is it a plugin?

Comment 2 Raphael Groner 2016-07-16 07:10:57 UTC
Are you interest in a review swap with bug #1346457?

Comment 3 Dominik 'Rathann' Mierzejewski 2016-07-19 20:04:06 UTC
It looks like bug 134647 is taken already, but I'll happily review something else for you.

Comment 4 Dominik 'Rathann' Mierzejewski 2016-07-19 20:05:15 UTC
(In reply to Raphael Groner from comment #1)
> Can you use the name pseudoroot for package and binary? I think pseudo is a
> too generic name and pseudoroot would be in conjunction with fakeroot what
> does similiar things.

Makes sense. I'll ask upstream.

> There's an alternative and some binary/script fakeroot-pseudo, is it a plugin?

This is actually a drop-in replacement for fakeroot.

Comment 5 Dominik 'Rathann' Mierzejewski 2016-07-19 20:20:36 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #4)
> (In reply to Raphael Groner from comment #1)
> > Can you use the name pseudoroot for package and binary? I think pseudo is a
> > too generic name and pseudoroot would be in conjunction with fakeroot what
> > does similiar things.
> 
> Makes sense. I'll ask upstream.

On second thought, I don't think it's an issue. Besides, Ubuntu is already packaging it as "pseudo"[1] and upstream's rationale for the name is that it's pronounced similar to "sudo".

[1] http://packages.ubuntu.com/xenial/pseudo

Comment 6 Igor Gnatenko 2016-08-30 07:04:42 UTC
> Version:         1.7.5
1.8.1 is the latest.

> Source0:         pseudo-%{version}.tar.xz
https://downloads.yoctoproject.org/releases/pseudo/pseudo-1.8.1.tar.bz2

> Source2:         pseudo-mktarball.sh
not needed

I will just send patch which fixes all problems..

Comment 7 Igor Gnatenko 2016-08-30 07:05:06 UTC
Created attachment 1195640 [details]
Proposed patch for spec

Comment 8 Igor Gnatenko 2016-08-30 07:06:09 UTC
Created attachment 1195641 [details]
[PATCH] man: Add NAME section

Used patch from spec

Comment 9 Dominik 'Rathann' Mierzejewski 2016-09-11 00:35:44 UTC
Thanks for the patches. I'm against using sed instead of patches, it won't fail when patch no longer applies.

Comment 10 Igor Gnatenko 2016-09-11 05:27:23 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #9)
> Thanks for the patches. I'm against using sed instead of patches, it won't
> fail when patch no longer applies.
In my patch I didn't remove any of your patches.

Can you update spec and srpm, so I will do final round of review?

Comment 11 Dominik 'Rathann' Mierzejewski 2016-10-07 17:11:40 UTC
Sorry, I've been busy with other stuff. I'll try to spin a new package this weekend.

Comment 12 Dominik 'Rathann' Mierzejewski 2016-10-09 22:25:35 UTC
Spec URL: https://rathann.fedorapeople.org/review/pseudo/pseudo.spec
SRPM URL: https://rathann.fedorapeople.org/review/pseudo/pseudo-1.8.1-1.fc24.src.rpm

* Sun Oct 09 2016 Dominik Mierzejewski <dominik> 1.8.1-1
- update to 1.8.1
- use upstream release tarball
- add missing NAME section to manpage (patch from Debian)
- fix passing CFLAGS containing commas via --cflags
- install missing pseudolog(1) manpage

Comment 13 Igor Gnatenko 2016-10-10 06:34:57 UTC
As I can see, not all bits were applied from patch which I attached...

> BuildRequires:   attr
not removed, it's useless BR

> sed -i -e "/s,@ARCH_FLAGS@/s|,|!|g" configure
I don't see this, but build was failing because we have commas in CFLAGS.

> link=$(readlink -e "%{_bindir}/fakeroot")
IMO we have fakeroot with alternatives support for long time, so this part can be skipped.

Now I'm not around laptop, once I will have it - I will check that it builds, some trivial stuff and approve.

Comment 14 Dominik 'Rathann' Mierzejewski 2016-10-10 10:06:46 UTC
(In reply to Igor Gnatenko from comment #13)
> As I can see, not all bits were applied from patch which I attached...
> 
> > BuildRequires:   attr
> not removed, it's useless BR

configure checks for getfattr availability at build time and prints a warning if it's not present. Failure to run getfattr doesn't disable any features though, so I'll drop this BR and patch out the warning instead.

> > sed -i -e "/s,@ARCH_FLAGS@/s|,|!|g" configure
> I don't see this, but build was failing because we have commas in CFLAGS.

I know. I fixed it another way. See the new patch.

> > link=$(readlink -e "%{_bindir}/fakeroot")
> IMO we have fakeroot with alternatives support for long time, so this part
> can be skipped.

The fakeroot in RHEL5 doesn't support alternatives. Neither does the one in RHEL6.

> Now I'm not around laptop, once I will have it - I will check that it
> builds, some trivial stuff and approve.

I checked that it builds across all primary arches via koji scratch build.

Comment 15 Igor Gnatenko 2016-10-10 10:30:31 UTC
if getfattr --help >/dev/null 2>&1; then
    xattr_runs=true


hmm, then don't drop it.

Comment 16 Igor Gnatenko 2016-10-10 10:35:03 UTC
Just checked all bits. On thing MUST be fixed: %{_libdir}/pseudo/libpseudo.so -> %{_libdir}/%{name}/


APPROVED.

Dominik, can you add me as co-maintainer in PkgDB when you will request package? I would be happy to help with it (as it could potentially become replacement for fakechroot for RPM test suide).

Comment 17 Dominik 'Rathann' Mierzejewski 2016-10-10 11:37:46 UTC
(In reply to Igor Gnatenko from comment #15)
> if getfattr --help >/dev/null 2>&1; then
>     xattr_runs=true
> 
> 
> hmm, then don't drop it.

As I said, it's only a warning.

(In reply to Igor Gnatenko from comment #16)
> Just checked all bits. On thing MUST be fixed:
> %{_libdir}/pseudo/libpseudo.so -> %{_libdir}/%{name}/
     
Why? %{name} is not shorter than "pseudo" and I'd argue that readability is better with the actual name instead of a macro.

> APPROVED.

Is it still approved if I don't make the above change?

> Dominik, can you add me as co-maintainer in PkgDB when you will request
> package? I would be happy to help with it (as it could potentially become
> replacement for fakechroot for RPM test suide).

Yes.

Comment 18 Igor Gnatenko 2016-10-10 11:49:44 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #17)
> (In reply to Igor Gnatenko from comment #15)
> > if getfattr --help >/dev/null 2>&1; then
> >     xattr_runs=true
> > 
> > 
> > hmm, then don't drop it.
> 
> As I said, it's only a warning.
> 
> (In reply to Igor Gnatenko from comment #16)
> > Just checked all bits. On thing MUST be fixed:
> > %{_libdir}/pseudo/libpseudo.so -> %{_libdir}/%{name}/
>      
> Why? %{name} is not shorter than "pseudo" and I'd argue that readability is
> better with the actual name instead of a macro.
Point was about owning /usr/lib64/pseudo/. But you was owning file without dir.
> 
> > APPROVED.
> 
> Is it still approved if I don't make the above change?
Sure!
> 
> > Dominik, can you add me as co-maintainer in PkgDB when you will request
> > package? I would be happy to help with it (as it could potentially become
> > replacement for fakechroot for RPM test suide).
> 
> Yes.

Comment 19 Dominik 'Rathann' Mierzejewski 2016-10-10 12:45:11 UTC
(In reply to Igor Gnatenko from comment #18)
> (In reply to Dominik 'Rathann' Mierzejewski from comment #17)
> > (In reply to Igor Gnatenko from comment #16)
> > > Just checked all bits. On thing MUST be fixed:
> > > %{_libdir}/pseudo/libpseudo.so -> %{_libdir}/%{name}/
> >      
> > Why? %{name} is not shorter than "pseudo" and I'd argue that readability is
> > better with the actual name instead of a macro.
> Point was about owning /usr/lib64/pseudo/. But you was owning file without
> dir.

Ah! Of course. I'll fix that.

And I'll keep BR: attr, because getfattr is required for tests.

Comment 20 Patrick Uiterwijk 2016-10-11 12:31:38 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/pseudo

Comment 21 Fedora Update System 2016-10-13 04:52:55 UTC
pseudo-1.8.1-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a7c7a9beb0

Comment 22 Fedora Update System 2016-10-13 05:53:47 UTC
pseudo-1.8.1-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f29333e0be

Comment 23 Fedora Update System 2016-10-19 17:27:43 UTC
pseudo-1.8.1-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2016-10-22 07:55:29 UTC
pseudo-1.8.1-3.fc24 has been pushed to the Fedora 24 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.