After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750367 - make install needs superuser privileges
make install needs superuser privileges
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Mac OS
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-03 21:26 UTC by Christian Leichsenring
Modified: 2015-06-03 21:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Leichsenring 2015-06-03 21:26:14 UTC
The most common package manager on Mac OS these days is Homebrew which installs everything into /usr/local as a normal user. However, a recent change in the build process will attempt a 

chown root /usr/local/Cellar/gstreamer/HEAD/libexec/gstreamer-1.0/gst-ptp-helper

during the make install phase which will fail if the process isn't owned by root already. It will also fail if the superuser isn't called "root" BTW. Yes, people do this.

Using "sudo" and "0" instead of hoping for the best and "root" would be obvious solutions for some problems but they won't fix the Homebrew install.

Here's a link to the Homebrew ticket: https://github.com/Homebrew/homebrew/issues/40353
Comment 1 Sebastian Dröge (slomo) 2015-06-03 21:51:04 UTC
This is no longer a problem, it will silently fail to install if it doesn't have the right permissions. It's the job of the packagers (i.e. homebrew in this case) to make it has the right permissions in the end.


commit b76a7b4d5ccf9fdee17af015f9d50f8657f8b5c8
Author: Luis de Bethencourt <luis.bg@samsung.com>
Date:   Wed Jun 3 16:34:58 2015 +0100

    ptp: ignore permission errors in Makefile
    
    To satisfy the buildslaves ignore permission errors in chown, chmod and setcap
Comment 2 Sebastian Dröge (slomo) 2015-06-03 21:53:51 UTC
You can also run configure with
>  --with-ptp-helper-permissions=none
to disable this completely btw.