Ajout option pour désactiver --sysconfdir=... si ce n'est pas supporté par le script...
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 1 Oct 2011 21:52:39 +0000 (21:52 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 1 Oct 2011 21:52:39 +0000 (21:52 +0000)
functions/ipkg

index bba883d..8ac0a09 100644 (file)
@@ -172,6 +172,20 @@ ipkg_script()
                 ${CONFIGURE_OPTS} \
                 --disable-dependency-tracking"
         fi
+
+        # Remove option --sysconfdir=... if not supported
+        if ! cat ${LFS_TMP}/${PACKAGE}/configure | \
+            grep -q "sysconfdir"; then
+            # Split on space, one per line.
+            # Remove line --sysconfdir=...
+            # Join separate lines on one line
+            # Remove trailing space
+            CONFIGURE_OPTS=$(echo ${CONFIGURE_OPTS} | \
+                tr -s " " "\n" | \
+                grep -v "\-\-sysconfdir=" | \
+                tr -s "\n" " " | \
+                sed "s/ $//")
+        fi
     fi
 
     ipkg_display_build_infos