public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: /
Date: Sat, 31 Jul 2021 17:39:44 +0000 (UTC)	[thread overview]
Message-ID: <1627752847.db0e1f18245abd3288fa76135fc048ec1f495aa4.ulm@gentoo> (raw)

commit:     db0e1f18245abd3288fa76135fc048ec1f495aa4
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 31 17:34:07 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jul 31 17:34:07 2021 +0000
URL:        https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=db0e1f18

Set symbolic links to C header files

* emacs.eselect (set_header_symlinks): New function, set symbolic
links to C header files. Bug 805491.
(set_symlinks): Call it.
(remove_symlinks): Remove symlinks to header files.
(HEADERLIST): New variable.

Bug: https://bugs.gentoo.org/805491
Reported-by: akater <nuclearspace <AT> gmail.com>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ChangeLog     |  8 ++++++++
 emacs.eselect | 16 ++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f78ae66..b04b0fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-07-31  Ulrich Müller  <ulm@gentoo.org>
+
+	* emacs.eselect (set_header_symlinks): New function, set symbolic
+	links to C header files. Bug 805491.
+	(set_symlinks): Call it.
+	(remove_symlinks): Remove symlinks to header files.
+	(HEADERLIST): New variable.
+
 2014-12-23  Ulrich Müller  <ulm@gentoo.org>
 
 	* Makefile (all): Explicitly depend on etags.eselect.

diff --git a/emacs.eselect b/emacs.eselect
index dfffb58..775fd49 100644
--- a/emacs.eselect
+++ b/emacs.eselect
@@ -27,6 +27,7 @@ VERSION="1.18"
 # ctags and etags are handled in their own module
 BINARYLIST="emacsclient b2m ebrowse rcs-checkin grep-changelog"
 MANPAGELIST="${BINARYLIST}"
+HEADERLIST="emacs-module.h"
 
 find_targets() {
 	# Return the list of available Emacs binaries
@@ -57,6 +58,9 @@ remove_symlinks() {
 	for f in emacs ${MANPAGELIST}; do
 		rm -f "${EROOT}/usr/share/man/man1/${f}.1"*
 	done
+	for f in ${HEADERLIST}; do
+		rm -f "${EROOT}/usr/include/${f}"
+	done
 	remove_infopath
 }
 
@@ -87,6 +91,17 @@ set_man_symlinks() {
 	done
 }
 
+set_header_symlinks() {
+	# Set symlinks to header files in /usr/include/
+	local target=$1 f
+	for f in ${HEADERLIST}; do
+		if [[ -f ${EROOT}/usr/include/${target}/${f} ]]; then
+			ln -s "${target}/${f}" "${EROOT}/usr/include/${f}" \
+				|| die "Couldn't set ${EROOT}/usr/include/${f} symlink"
+		fi
+	done
+}
+
 set_symlinks() {
 	# Set symlinks to binaries and man pages, update info path
 	local target=$1 nomain=$2 targets suffix i
@@ -120,6 +135,7 @@ set_symlinks() {
 	fi
 	set_bin_symlinks "${target}"
 	set_man_symlinks "${target}"
+	set_header_symlinks "${target}"
 	set_infopath "${target}"
 
 	# update /etc/profile.env from /etc/env.d files


             reply	other threads:[~2021-07-31 17:39 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31 17:39 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-05 20:59 [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: / Ulrich Müller
2023-08-21  6:31 Ulrich Müller
2021-08-02  8:05 Ulrich Müller
2018-09-16 14:50 Ulrich Müller
2014-12-23  9:55 Ulrich Müller
2014-12-19 19:03 Ulrich Müller
2014-12-19  7:28 Ulrich Müller
2014-12-19  7:28 Ulrich Müller
2014-12-19  7:28 Ulrich Müller
2014-12-19  7:28 Ulrich Müller
2014-12-19  7:28 Ulrich Müller
2014-10-28 18:50 Ulrich Müller
2014-04-08 13:13 Ulrich Müller
2014-03-18  8:51 Ulrich Müller
2014-03-13 16:34 Ulrich Müller
2014-03-13 13:49 Ulrich Müller
2014-03-13 13:15 Ulrich Müller
2014-03-13 13:15 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 17:46 Ulrich Müller
2013-04-01 12:21 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 15:53 Ulrich Mueller
2012-06-22 15:53 Ulrich Mueller
2012-05-06 18:47 Ulrich Mueller
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1627752847.db0e1f18245abd3288fa76135fc048ec1f495aa4.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox