Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 885658 Details for
Bug 925100
sys-devel/bison: Add --without-libtextstyle option
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gnulib libtextstyle patch
0001-libtextstyle-Add-with-libtextstyle-option.patch (text/plain), 2.36 KB, created by
Raul Rangel
on 2024-02-21 21:02:48 UTC
(
hide
)
Description:
gnulib libtextstyle patch
Filename:
MIME Type:
Creator:
Raul Rangel
Created:
2024-02-21 21:02:48 UTC
Size:
2.36 KB
patch
obsolete
>From 3e5ec23fa1ea9c1b1527d42e6895eb2fd34d03be Mon Sep 17 00:00:00 2001 >From: Raul E Rangel <rrangel@chromium.org> >Date: Wed, 21 Feb 2024 10:43:18 -0700 >Subject: [PATCH] libtextstyle: Add --with-libtextstyle option > >libtextstyle is currently treated as an automagic dependency. It gets >linked if it is present, and doesn't if it's not. This change adds a >--with-libtextstyle option so that the dependency can be explicitly >enabled or disabled. > >See: https://bugs.gentoo.org/925100 >Signed-off-by: Raul E Rangel <rrangel@chromium.org> >--- > m4/libtextstyle-optional.m4 | 2 +- > m4/libtextstyle.m4 | 26 +++++++++++++++++++++++--- > 2 files changed, 24 insertions(+), 4 deletions(-) > >diff --git a/m4/libtextstyle-optional.m4 b/m4/libtextstyle-optional.m4 >index 0976a5d2c0..71852dcad2 100644 >--- a/m4/libtextstyle-optional.m4 >+++ b/m4/libtextstyle-optional.m4 >@@ -22,7 +22,7 @@ dnl LTLIBTEXTSTYLE to empty. > AC_DEFUN([gl_LIBTEXTSTYLE_OPTIONAL], > [ > gl_LIBTEXTSTYLE([$1]) >- if test $HAVE_LIBTEXTSTYLE = yes; then >+ if test "x$HAVE_LIBTEXTSTYLE" = xyes; then > GL_GENERATE_TEXTSTYLE_H=false > else > GL_GENERATE_TEXTSTYLE_H=true >diff --git a/m4/libtextstyle.m4 b/m4/libtextstyle.m4 >index 435207ffd4..4000fea637 100644 >--- a/m4/libtextstyle.m4 >+++ b/m4/libtextstyle.m4 >@@ -38,6 +38,14 @@ AC_DEFUN([gl_LIBTEXTSTYLE_NEWEST_VERSION], [0.20.5]) > AC_DEFUN([gl_LIBTEXTSTYLE_INITIALIZE], > [ > m4_divert_text([DEFAULTS], [gl_libtextstyle_minversion=' 0.20 ']) >+ >+ AC_MSG_CHECKING([whether to link against libtextstyle]) >+ AC_ARG_WITH([libtextstyle], >+ [AS_HELP_STRING([--with-libtextstyle], >+ [support fancy colors @<:@default=auto@:>@])], >+ [], >+ [with_libtextstyle=auto]) >+ AC_MSG_RESULT([$with_libtextstyle]) > ]) > > AC_DEFUN([gl_LIBTEXTSTYLE_SEARCH], >@@ -53,7 +61,19 @@ AC_DEFUN([gl_LIBTEXTSTYLE_SEARCH], > snippet='term_styled_ostream_create(1,"",TTYCTL_AUTO,"");' > ;; > esac >- AC_LIB_HAVE_LINKFLAGS([textstyle], [], >- [#include <textstyle.h>], [$snippet], >- [no]) >+ >+ AS_IF( >+ [test "x$with_libtextstyle" != xno], >+ [AC_LIB_HAVE_LINKFLAGS([textstyle], [], >+ [#include <textstyle.h>], [$snippet], >+ [no] >+ )] >+ ) >+ >+ AS_IF( >+ [test "x$with_libtextstyle" = xyes -a "x$HAVE_LIBTEXTSTYLE" != xyes], >+ [AC_MSG_FAILURE( >+ [--with-libtextstyle was given, but test for libtextstyle failed] >+ )] >+ ) > ]) >-- >2.44.0.rc0.258.g7320e95886-goog >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 925100
:
885534
|
885556
| 885658