From: ludo@gnu.org (Ludovic Courtès)
To: John Darrington <jmd@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Patch libxt's default search path.
Date: Sun, 04 Dec 2016 22:19:37 +0100 [thread overview]
Message-ID: <87bmwr5r4m.fsf@gnu.org> (raw)
In-Reply-To: <1480695934-679-1-git-send-email-jmd@gnu.org> (John Darrington's message of "Fri, 2 Dec 2016 17:25:34 +0100")
John Darrington <jmd@gnu.org> skribis:
> * gnu/packages/patches/libxt-guix-search-paths.patch: New file.
> * gnu/packages/xorg.scm (libxt) [source]: Add patch.
> ---
> gnu/packages/patches/libxt-guix-search-paths.patch | 123 +++++++++++++++++++++
> gnu/packages/xorg.scm | 3 +-
> 2 files changed, 125 insertions(+), 1 deletion(-)
> create mode 100644 gnu/packages/patches/libxt-guix-search-paths.patch
>
> diff --git a/gnu/packages/patches/libxt-guix-search-paths.patch b/gnu/packages/patches/libxt-guix-search-paths.patch
> new file mode 100644
> index 0000000..dfeea8a
> --- /dev/null
> +++ b/gnu/packages/patches/libxt-guix-search-paths.patch
> @@ -0,0 +1,123 @@
Please add a comment here explaining what it does and why we chose this
approach.
> + {
> +-#if defined(WIN32)
> +- static char xfilesearchpath[] = "";
> +-
> +- return xfilesearchpath;
> +-#else
> +- return XFILESEARCHPATHDEFAULT;
> +-#endif
> ++ static const char *search_path_default_stem[6] = {
static const char *const *search_path_default_stem[]
> ++ "/lib/X11/%L/%T/%N%C%S",
> ++ "/lib/X11/%l/%T/%N%C%S",
> ++ "/lib/X11/%T/%N%C%S",
> ++ "/lib/X11/%L/%T/%N%S",
> ++ "/lib/X11/%l/%T/%N%S",
> ++ "/lib/X11/%T/%N%S"
> ++ };
> ++
> ++#define SIZEOF_STEMS (strlen (search_path_default_stem[0]) \
> ++ + strlen (search_path_default_stem[1]) \
> ++ + strlen (search_path_default_stem[2]) \
> ++ + strlen (search_path_default_stem[3]) \
> ++ + strlen (search_path_default_stem[4]) \
> ++ + strlen (search_path_default_stem[5]))
> ++
> ++
> ++ int i;
> ++ const char *current_profile = "/run/current-system/profile";
> ++ char *home = getenv ("HOME");
> ++ char *guix_profile = getenv ("GUIX_PROFILE");
GUIX_PROFILE is not meant to be systematically defined, but maybe that’s
good enough.
Could you build, say, xterm against this, check whether this fixes the
ctrl-click issue for instance, and also run it in Valgrind to make sure?
If that works, ok for core-updates or the next ‘staging’ since ‘staging’
is now frozen.
Thanks,
Ludo’.
prev parent reply other threads:[~2016-12-04 21:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-25 19:08 [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment John Darrington
2016-11-25 19:08 ` [PATCH 2/4] gnu: Add editres John Darrington
2016-11-27 21:22 ` Ludovic Courtès
2016-11-25 19:08 ` [PATCH 3/4] gnu: Remove wrappers from xfd and xfontsel John Darrington
2016-11-25 19:08 ` [PATCH 4/4] gnu: Xfig: Set XAPPLOADDIR John Darrington
2016-11-27 21:22 ` [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment Ludovic Courtès
2016-11-28 13:19 ` John Darrington
2016-11-29 14:34 ` Ludovic Courtès
2016-11-29 18:16 ` John Darrington
2016-11-29 21:42 ` Ludovic Courtès
2016-11-30 5:36 ` John Darrington
2016-12-02 16:25 ` [PATCH] gnu: Patch libxt's default search path John Darrington
2016-12-04 21:19 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmwr5r4m.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=jmd@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).