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 bugzilla.redhat.com.
Bug 174866 - Review Request: polypaudio: Improved Linux sound server
Summary: Review Request: polypaudio: Improved Linux sound server
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Greg DeKoenigsberg
QA Contact: Fedora Package Reviews List
URL: http://0pointer.de/lennart/projects/p...
Whiteboard:
: 174944 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-02 23:19 UTC by Tom "spot" Callaway
Modified: 2007-11-30 22:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-06-14 14:54:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tom "spot" Callaway 2005-12-02 23:19:05 UTC
Spec Name or Url: http://auroralinux.org/people/spot/review/polypaudio.spec
SRPM Name or Url: http://auroralinux.org/people/spot/review/polypaudio-0.7-1.src.rpm
Description:
polypaudio is a sound server for Linux and other Unix like operating
systems. It is intended to be an improved drop-in replacement for the
Enlightened Sound Daemon (ESOUND).

Comment 1 Rex Dieter 2005-12-04 19:50:32 UTC
*** Bug 174944 has been marked as a duplicate of this bug. ***

Comment 2 Brian Pepple 2005-12-08 05:23:45 UTC
NEEDSWORK

MD5Sums:
1c3693ab9c6904dbed6dfa7656778de4  polypaudio-0.7.tar.gz

Good:
* Source URL is canonical
* Upstream source tarball verified
* Package name conforms to the Fedora Naming Guidelines
* Group Tag is from the official list
* Buildroot has all required elements
* All paths begin with macros
* All directories are owned by this or other packages
* No deprecated fields used
* All desired features are enabled
* Package rebuilds as non-root user
* Package installs and uninstalls cleanly on FC4. (After adding missing BR)

Needswork:
* Package needs additional BuildRequires:
Missing BR for xorg-x11-devel on FC4
Missing BR for libXt-devel & xorg-x11-proto-devel on FC5 (You might want to
verify that I'm correct on the necessary BR for FC5).

* Rpmlint errors:
W: polypaudio unstripped-binary-or-object /usr/bin/polypaudio
E: polypaudio setuid-binary /usr/bin/polypaudio root 04755
E: polypaudio non-standard-executable-perm /usr/bin/polypaudio 04755
E: polypaudio non-executable-script /etc/polypaudio/default.pa 0644


Comment 3 Christian Iseli 2005-12-08 14:12:24 UTC
(In reply to comment #2)
> * Rpmlint errors:
> W: polypaudio unstripped-binary-or-object /usr/bin/polypaudio

Out of curiosity: did you build in mock ?
In my home setup, I have in .rpmmacros:
%debug_package  %{nil}
%_enable_debug_packages 0
and I noticed that it (apparently) causes the unstripped warnings in rpmlint...


Comment 4 Brian Pepple 2005-12-08 14:42:24 UTC
(In reply to comment #3)
> Out of curiosity: did you build in mock ?

Yes. 



Comment 5 Paul Howarth 2005-12-08 14:46:16 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > * Rpmlint errors:
> > W: polypaudio unstripped-binary-or-object /usr/bin/polypaudio
> 
> Out of curiosity: did you build in mock ?
> In my home setup, I have in .rpmmacros:
> %debug_package  %{nil}
> %_enable_debug_packages 0
> and I noticed that it (apparently) causes the unstripped warnings in rpmlint...

That's to be expected. Turning off the separate debug package means that the
debug information is left in the main package, i.e. not stripped.


Comment 6 Ville Skyttä 2005-12-08 15:21:56 UTC
setuid/setgid executables are not stripped by rpmbuild, see bug 117858.
Workaround: remove those bits in %install and restore in %files using %attr.

Comment 7 Christian Iseli 2005-12-08 16:45:02 UTC
(In reply to comment #6)
> setuid/setgid executables are not stripped by rpmbuild, see bug 117858.

Ah, didn't know that.  Thanks!

> Workaround: remove those bits in %install and restore in %files using %attr.

Yup.  IMHO, this should be a SHOULD or even a MUST in the guidelines...


Comment 8 Michael A. Peters 2005-12-08 19:48:51 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > setuid/setgid executables are not stripped by rpmbuild, see bug 117858.
> 
> Ah, didn't know that.  Thanks!
> 
> > Workaround: remove those bits in %install and restore in %files using %attr.
> 
> Yup.  IMHO, this should be a SHOULD or even a MUST in the guidelines...
> 

Agreed - an rpm should be buildable by unprivileged users, which means those
bits have to be set with %attr

You may also need to patch the Makefile to not set them (to get it to build as a
non root user)

Comment 9 Ville Skyttä 2005-12-08 20:44:02 UTC
Note that packages that don't insist doing chown/chgrp but do chmod
setuid/setgid are unaffected wrt. being buildable by unprivileged users, and the
'-'s in eg. %defattr(-,root,root,-) will do the right thing regarding the files'
ownership.  rpmbuild not stripping setuid/setgid binaries is a different,
orthogonal issue.

Comment 10 Christian Iseli 2005-12-08 22:45:13 UTC
(In reply to comment #9)
> Note that packages that don't insist doing chown/chgrp but do chmod
> setuid/setgid are unaffected wrt. being buildable by unprivileged users, and the
> '-'s in eg. %defattr(-,root,root,-) will do the right thing regarding the files'
> ownership.

After building and installing the package, I get (on my FC4, x86_64 box):
root: ls -al /usr/bin/polypaudio
-rwsr-xr-x  1 root root 632416 Dec  8 23:35 /usr/bin/polypaudio

So, I stand by my (humble) opinion that the guidelines should mandate no
chown/chmod in %install, and use of %attr in %files.  This way, it is much
clearer which packages introduce suid binaries.

> rpmbuild not stripping setuid/setgid binaries is a different,
> orthogonal issue.

Right.  And quite useful as a warning :-)

BTW, rpmlint on x86_64 is noisy about rpath:
E: polypaudio binary-or-shlib-defines-rpath /usr/bin/polypaudio ['/usr/lib64']
E: polypaudio binary-or-shlib-defines-rpath /usr/bin/paplay ['/usr/lib64']
E: polypaudio binary-or-shlib-defines-rpath /usr/bin/pacat ['/usr/lib64']
E: polypaudio binary-or-shlib-defines-rpath /usr/bin/pactl ['/usr/lib64']

Comment 11 Pierre Ossman 2006-02-16 20:06:22 UTC
(shameless plug)

This might be of interest: :)

http://article.gmane.org/gmane.linux.alsa.devel/31738

Comment 12 Pierre Ossman 2006-02-24 16:49:02 UTC
What's the status of this? The links in the initial comment are dead. I'd really
like to see this included in Fedora.

Comment 13 Tom "spot" Callaway 2006-02-25 15:22:01 UTC
Spec Name or Url: http://auroralinux.org/people/spot/review/polypaudio.spec
SRPM Name or Url: http://auroralinux.org/people/spot/review/polypaudio-0.7-2.src.rpm

Fixed packages resolve the unstripped binary. The rpath issues on x86_64 are
much harder to resolve, as removing the rpath calls causes it to explode on that
architecture, and an rpath of /usr/lib64 is not fatal, just a bit redundant.

Comment 14 Pierre Ossman 2006-02-25 15:28:11 UTC
This multiple architecture business is a bit new to me, so I'm unclear to what
the problem is. Does library paths get stored inside the resulting binaries?

If you can point me in the right direction I can try to remedy the situation. :)

Comment 15 Tom "spot" Callaway 2006-02-25 15:35:27 UTC
Yep, that's exactly what it is. Google for rpath, and grep through the
polypaudio source tree to see it in action.

Comment 16 Pierre Ossman 2006-02-25 20:41:53 UTC
This seems to be a libtool issue since only x86_64 gets the rpath set. I also
examined the command sent to libtool and it contained no rpath. The resulting
gcc command does though. I tried googling the issue but didn't see anything to
help me solve it. Do you have any pointers?

Comment 17 Pierre Ossman 2006-03-03 11:57:09 UTC
Further investigation shows that this is indeed a libtool problem (in
combination with gcc not giving a complete picture on multilib systems). It is
currently unresolved, so unless we do a dirty hack the RPATH is here to stay.

I'd also like to do some suggestions for packaging. There should be at least
four packages:

 * libpolyp - Client libraries.
 * libpolyp-devel - Headers and such for building clients
 * polypaudio - The daemon.
 * polypaudio-devel - Headers and such for building daemon modules.

Possibly one could also package the modules in their own packages to minimise
the dependencies.

As for separating libpolyp-devel files from polypaudio-devel files you have to
look in the Makefile for the 0.7 release. The 0.8 release will install these in
separate locations so it will be much more clear there.

Comment 18 Pierre Ossman 2006-05-09 18:10:38 UTC
Spec Name or Url: http://homes.hades.drzeus.cx/~drzeus/polypaudio/polypaudio.spec
SRPM Name or Url:
http://homes.hades.drzeus.cx/~drzeus/polypaudio/polypaudio-0.8.1-1.src.rpm

Updated to the current version (0.8.1). I've also created a whole bunch of
sub-packages to minimise the dependencies.

Comment 19 Pierre Ossman 2006-05-29 10:41:48 UTC
Spec Name or Url: http://homes.hades.drzeus.cx/~drzeus/polypaudio/polypaudio.spec
SRPM Name or Url:
http://homes.hades.drzeus.cx/~drzeus/polypaudio/polypaudio-0.9.0-1.src.rpm

Updated again. Anyone but me still interested in this?

Comment 20 Pierre Ossman 2006-05-29 10:42:30 UTC
Spec Name or Url: http://homes.drzeus.cx/~drzeus/polypaudio/polypaudio.spec
SRPM Name or Url:
http://homes.drzeus.cx/~drzeus/polypaudio/polypaudio-0.9.0-1.src.rpm

Bad URLs, sorry about that.

Comment 21 Pierre Ossman 2006-05-30 06:53:07 UTC
Spec Name or Url: http://homes.drzeus.cx/~drzeus/polypaudio/polypaudio.spec
SRPM Name or Url:
http://homes.drzeus.cx/~drzeus/polypaudio/polypaudio-0.9.0-2.src.rpm

Fixed some rpmlint problems. Remaining warnings:

polypaudio-0.9.0-2.i386.rpm:
E: polypaudio setuid-binary /usr/bin/polypaudio root 04755
E: polypaudio non-standard-executable-perm /usr/bin/polypaudio 04755
E: polypaudio non-executable-script /etc/polypaudio/default.pa 0644

polypaudio-devel-0.9.0-2.i386.rpm:
W: polypaudio-devel no-documentation

polypaudio-lib-glib-0.9.0-2.i386.rpm:
W: polypaudio-lib-glib no-documentation

polypaudio-lib-glib2-0.9.0-2.i386.rpm:
W: polypaudio-lib-glib2 no-documentation

polypaudio-module-alsa-0.9.0-2.i386.rpm:
W: polypaudio-module-alsa no-documentation

polypaudio-module-lirc-0.9.0-2.i386.rpm:
W: polypaudio-module-lirc no-documentation

polypaudio-module-x11-0.9.0-2.i386.rpm:
W: polypaudio-module-x11 no-documentation

polypaudio-utils-0.9.0-2.i386.rpm:
E: polypaudio-utils invalid-soname /usr/lib/libpolypdsp.so libpolypdsp.so
W: polypaudio-utils no-documentation


Comment 22 Jason Tibbitts 2006-06-14 14:54:58 UTC
Adding back the comments and status changes that were lost in the crash.  Note
that I might not have copies of the new review tickets that were opened since I
wasn't CC'd; could whoever did those add them back?

------- Additional Comments From tibbs.edu  2006-06-10 16:29 EST -------
I am interested in this simply because I'd like to see some action on all of the
old review tickets. However, I'm not sure if this is spot's ticket or Pierre's
ticket.  Perhaps one of you could review the other's package, or if spot wishes
to drop his review request, this could be closed NOTABUG and Pierre could open a
new review request with his package.

BTW, 0.9.1 seems to be out now.

------- Additional Comments From drzeus-bugzilla  2006-06-10 20:34 EST
-------
I'm fine either way. The packages I've been putting up are based on spot's anyway.

I have a new RPM ready for 0.9.1 as well as for some Polypaudio utils. I've been
holding off on them until I saw some activity here.

------- Additional Comments From tcallawa  2006-06-11 15:19 EST -------
Pierre: Go ahead and open a new review request for this package. 

------- Additional Comments From drzeus-bugzilla  2006-06-13 09:27 EST
-------
New request opened as bug 194957.

(Note that the new request bug number is incorrect due to being lost in the crash.)

Comment 23 Pierre Ossman 2006-06-14 15:02:32 UTC
I'll readd the new requests. Should I add you as cc for them directly?

Comment 24 Pierre Ossman 2006-06-14 15:21:56 UTC
New request opened as bug 195221.


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