From: Lemures Lemniscati <lemures.lemniscati@gmail.com>
To: cygwin-apps@cygwin.com
Subject: [PATCH cygport]
Date: Fri, 15 Jan 2021 18:46:44 +0900 [thread overview]
Message-ID: <20210115184642.C2CA.50F79699@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]
Hi!
This is another patch for cygport:
I'd like to apply alternatives to lua packages to have different
versions of lua being installed. But, in such cases, current
__list_deps() might pick wrong dependencies.
And, this is a patch to add a flag __SKIP_LIST_DEPS_LUA to skip
__list_deps() detecting depedency on lua, for the time being.
Regards,
Lem
diff --git a/lib/pkg_info.cygpart b/lib/pkg_info.cygpart
index 98f7808..f83f239 100644
--- a/lib/pkg_info.cygpart
+++ b/lib/pkg_info.cygpart
@@ -331,7 +331,14 @@ __list_deps() {
done
fi
- if check_prog lua
+#****v* Information/__SKIP_LIST_DEPS_LUA
+# DESCRIPTION
+# A flag in __list_deps() to skip detecting depedency on lua.
+# Set a nonempty string to __SKIP_LIST_DEPS_LUA in order to skip.
+# (e.g. in case Lua's of different versions exist).
+#****
+
+ if [ -n "${__SKIP_LIST_DEPS_LUA}" ] || check_prog lua
then
luapaths=($(lua -e 'print(package.path..";"..package.cpath)' | tr '\;' ' '))
luapaths+=" ${DEPS_PATH//:/ }"
--
2.30.0
[-- Attachment #2: 0001-Add-a-flag-__SKIP_LIST_DEPS_LUA-to-skip-detecting-de.patch --]
[-- Type: application/octet-stream, Size: 899 bytes --]
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Lemures Lemniscati <lemures.lemniscati@gmail.com>
Date: Fri, 15 Jan 2021 18:33:09 +0900
Subject: [PATCH] Add a flag __SKIP_LIST_DEPS_LUA to skip detecting depedency
diff --git a/lib/pkg_info.cygpart b/lib/pkg_info.cygpart
index 98f7808..f83f239 100644
--- a/lib/pkg_info.cygpart
+++ b/lib/pkg_info.cygpart
@@ -331,7 +331,14 @@ __list_deps() {
done
fi
- if check_prog lua
+#****v* Information/__SKIP_LIST_DEPS_LUA
+# DESCRIPTION
+# A flag in __list_deps() to skip detecting depedency on lua.
+# Set a nonempty string to __SKIP_LIST_DEPS_LUA in order to skip.
+# (e.g. in case Lua's of different versions exist).
+#****
+
+ if [ -n "${__SKIP_LIST_DEPS_LUA}" ] || check_prog lua
then
luapaths=($(lua -e 'print(package.path..";"..package.cpath)' | tr '\;' ' '))
luapaths+=" ${DEPS_PATH//:/ }"
--
2.30.0
next reply other threads:[~2021-01-15 9:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-15 9:46 Lemures Lemniscati [this message]
2021-01-15 9:50 ` Lemures Lemniscati
-- strict thread matches above, loose matches on Subject: below --
2020-06-04 6:02 [patch cygport] Marco Atzeri
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=20210115184642.C2CA.50F79699@gmail.com \
--to=lemures.lemniscati@gmail.com \
--cc=cygwin-apps@cygwin.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).