[gnome-build-meta] Ensure config.{sub, guess} are writable before overwriting them



commit df80f598134c71179beef469513939141f4a775e
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed May 16 13:41:12 2018 -0500

    Ensure config.{sub,guess} are writable before overwriting them
    
    Otherwise, this will fail with a permissions error.
    
    Fixes #39

 project.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/project.conf b/project.conf
index 0ad7e6f..6980b19 100644
--- a/project.conf
+++ b/project.conf
@@ -90,7 +90,7 @@ elements:
       # to fix compilation on recent architectures such as aarch64.
       autogen: |
         export NOCONFIGURE=1
-        if [ -x %{conf-cmd} ]; then cp /usr/share/automake*/config.{sub,guess} %{conf-aux}
+        if [ -x %{conf-cmd} ]; then chmod u+w %{conf-aux}/config.{sub,guess} && cp 
/usr/share/automake*/config.{sub,guess} %{conf-aux}
         elif [ -x autogen ]; then ./autogen
         elif [ -x autogen.sh ]; then ./autogen.sh
         elif [ -x bootstrap ]; then ./bootstrap


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]