Skip to contentSkip to conversation

configure: Allow capstone=git only if git update is not disabled

PATCH Applied Alexey Kardashevskiy 3 participants 5 messages Jan 15, 2018 – Feb 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Allow capstone=git only if git update is not disabled

Even with --disable-git-update, ./configure tries updating the capstone submodule instead of marking it "no"; this disables capstone submodule if git update is disabled.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 89bd662..92c21b3 100755
@@ -4502,7 +4502,7 @@ case "$capstone" in
   "" | yes)
     if $pkg_config capstone; then
       capstone=system
-    elif test -e "${source_path}/.git" ; then
+    elif test -e "${source_path}/.git" -a $git_update = 'yes' ; then
       capstone=git
     elif test -e "${source_path}/capstone/Makefile" ; then
       capstone=internal
Signature · 1 line
2.11.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Alexey Kardashevskiy

Even with --disable-git-update, ./configure tries updating the capstone submodule instead of marking it "no"; this disables capstone submodule if git update is disabled.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index 89bd662..92c21b3 100755

configure case "$capstone" in · line 4508

Quoted 8 lines
configure +1 -1
@@ -4502,7 +4502,7 @@ case "$capstone" in
   "" | yes)
     if $pkg_config capstone; then
       capstone=system
-    elif test -e "${source_path}/.git" ; then
+    elif test -e "${source_path}/.git" -a $git_update = 'yes' ; then
       capstone=git
     elif test -e "${source_path}/capstone/Makefile" ; then
       capstone=internal
#2 lore raw
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Alexey Kardashevskiy

Even with --disable-git-update, ./configure tries updating the capstone submodule instead of marking it "no"; this disables capstone submodule if git update is disabled.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 6 lines
configure +0 -0
index 89bd662..92c21b3 100755

configure case "$capstone" in · line 4508

Quoted 8 lines
configure +1 -1
@@ -4502,7 +4502,7 @@ case "$capstone" in
   "" | yes)
     if $pkg_config capstone; then
       capstone=system
-    elif test -e "${source_path}/.git" ; then
+    elif test -e "${source_path}/.git" -a $git_update = 'yes' ; then
       capstone=git
     elif test -e "${source_path}/capstone/Makefile" ; then
       capstone=internal

Thanks mate. What's next? :)

Signature · 1 line
Alexey
#3 lore raw
Quoted 28 lines · Alexey Kardashevskiy
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Alexey Kardashevskiy

Even with --disable-git-update, ./configure tries updating the capstone submodule instead of marking it "no"; this disables capstone submodule if git update is disabled.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 6 lines
configure +0 -0
index 89bd662..92c21b3 100755

configure case "$capstone" in · line 4508

Quoted 8 lines
configure +1 -1
@@ -4502,7 +4502,7 @@ case "$capstone" in
   "" | yes)
     if $pkg_config capstone; then
       capstone=system
-    elif test -e "${source_path}/.git" ; then
+    elif test -e "${source_path}/.git" -a $git_update = 'yes' ; then
       capstone=git
     elif test -e "${source_path}/capstone/Makefile" ; then
       capstone=internal
Quoted 1 line

Thanks mate. What's next? :)

Put Paolo on CC in the hope that he can take it through the misc tree? Or wait for the next trivial PULL request...

Thomas

#4 lore raw
In reply to Alexey Kardashevskiy
Quoted 3 lines · Alexey Kardashevskiy

Even with --disable-git-update, ./configure tries updating the capstone submodule instead of marking it "no"; this disables capstone submodule if git update is disabled.

Applied to -trivial, thanks!

/mjt