[Bug 758029] New: Install race in helpers

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 12 11:59:24 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=758029

            Bug ID: 758029
           Summary: Install race in helpers
    Classification: Platform
           Product: GStreamer
           Version: 1.6.1
                OS: Mac OS
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: ross at burtonini.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 315364
  --> https://bugzilla.gnome.org/attachment.cgi?id=315364&action=edit
Patch

libs/gst/helpers/Makefile.am has a install hook which can cause install races
and thus errors:

| /usr/bin/install: cannot create regular file
`/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0/1.6.1-r0/image/usr/lib/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner':
File exists

This needs to be a install-data-hook not an install-exec-hook as the helpers
are
installed into helperdir which is considered data (only path variables with
"exec" in are considered executables).

http://www.gnu.org/software/automake/manual/html_node/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install

The explicit dependency on install-helpersPROGRAMS was an attempt at solving
this, but this causes occasional races where install-helpersPROGRAMS can run
twice in parallel (once via install-all, once via the hook's dependency).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list