From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4465139337 for ; Sat, 31 Jul 2021 17:39:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09389E0893; Sat, 31 Jul 2021 17:39:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E356CE0893 for ; Sat, 31 Jul 2021 17:39:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 030723435CB for ; Sat, 31 Jul 2021 17:39:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E428744 for ; Sat, 31 Jul 2021 17:39:44 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1627752847.db0e1f18245abd3288fa76135fc048ec1f495aa4.ulm@gentoo> Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog emacs.eselect X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: db0e1f18245abd3288fa76135fc048ec1f495aa4 X-VCS-Branch: eselect-emacs Date: Sat, 31 Jul 2021 17:39:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4e0437e4-c71a-4c8d-831e-7b0933dad945 X-Archives-Hash: 2f0e444e56b7c829c70b8ce0918250c9 commit: db0e1f18245abd3288fa76135fc048ec1f495aa4 Author: Ulrich Müller gentoo org> AuthorDate: Sat Jul 31 17:34:07 2021 +0000 Commit: Ulrich Müller gentoo 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 gmail.com> Signed-off-by: Ulrich Müller 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 + + * 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 * 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