On 12/01/2016 01:00 PM, Bruce Dubbs wrote:


If we are looking for /pthread_stubs_possible=/  that will not match.


I guess I don't understand what you are saying, or I'm confused as to which sed you are referring to, but if I'm reading above correctly, /pthread_stubs_possible/ does match 'pthread_stubs_possible="yes"'.

dj [ ~/mesa-13.0.1 ]$ echo 'pthread_stubs_possible="yes"' | \
> sed '/pthread_stubs_possible/s/\"yes/\"no/'
pthread_stubs_possible="no"

I don't understand what you are saying does not work, but what I had above works as I had intended. If I understand the problem correctly, we don't want configure to acknowledge that pthread_stubs is available on our platform:

dj [ ~ ]$ rm -rf mesa-13.0.1/
dj [ ~ ]$ tar -xf /media/lfs/sources/xc/mesa-13.0.1.tar.xz
dj [ ~ ]$ cd mesa-13.0.1/
dj [ ~/mesa-13.0.1 ]$ sed '/pthread_stubs_possible/s/\"yes/\"no/' configure.ac > configure.ac.new
dj [ ~/mesa-13.0.1 ]$ diff -au configure.ac{,.new}
--- configure.ac        2016-11-10 16:06:40.000000000 -0600
+++ configure.ac.new    2016-12-01 18:20:19.970539126 -0600
@@ -832,7 +832,7 @@
     pthread_stubs_possible="no"
     ;;
 * )
-    pthread_stubs_possible="yes"
+    pthread_stubs_possible="no"
     ;;
 esac

dj [ ~/mesa-13.0.1 ]$ #use locally generated configure for min diff
dj [ ~/mesa-13.0.1 ]$ autoreconf -fi
...
dj [ ~/mesa-13.0.1 ]$ cp configure{,.old}
dj [ ~/mesa-13.0.1 ]$ cp configure.ac{,.old}
dj [ ~/mesa-13.0.1 ]$ cp configure.ac{.new,}
dj [ ~/mesa-13.0.1 ]$ autoreconf -fi
dj [ ~/mesa-13.0.1 ]$ diff -au configure{.old,}
--- configure.old       2016-12-01 18:23:46.426579193 -0600
+++ configure   2016-12-01 18:24:35.487807230 -0600
@@ -21586,7 +21586,7 @@
     pthread_stubs_possible="no"
     ;;
 * )
-    pthread_stubs_possible="yes"
+    pthread_stubs_possible="no"
     ;;
 esac

dj [ ~/mesa-13.0.1 ]$ grep -C 10 pthread_stubs_possible configure
ac_compiler_gnu=$ac_cv_c_compiler_gnu


if test "x$ax_pthread_ok" = xno; then
as_fn_error $? "Building mesa on this platform requires pthreads" "$LINENO" 5
fi
test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"

case "$host_os" in
cygwin* )
    pthread_stubs_possible="no"
    ;;
* )
    pthread_stubs_possible="no"
    ;;
esac

if test "x$pthread_stubs_possible" = xyes; then

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREADSTUBS" >&5
$as_echo_n "checking for PTHREADSTUBS... " >&6; }

if test -n "$PTHREADSTUBS_CFLAGS"; then
    pkg_cv_PTHREADSTUBS_CFLAGS="$PTHREADSTUBS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
dj [ ~/mesa-13.0.1 ]$

--DJ


--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to