From: "KADOTA, Kyohei via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: "KADOTA, Kyohei" <lufia@lufia.org>
Subject: [PATCH v2 0/2] Fit the building tools to Plan 9 environment
Date: Wed, 09 Sep 2020 19:47:39 +0000 [thread overview]
Message-ID: <pull.694.v2.git.1599680861.gitgitgadget@gmail.com> (raw)
In-Reply-To: <pull.694.git.1596675905.gitgitgadget@gmail.com>
I've posted some commits for porting git to Plan 9.
This pull request is thing that cut off building scripts from #305 and is
re-constructed that.
I expect this don't change any artifacts.
differ from v1
==============
* drop some adapters, printf, cut, expr or tar
* drop using SHELL_PATH instead of sh
* use real name at Signed-off-by signature
Kyohei Kadota (2):
Fit to Plan 9's ANSI/POSIX compatibility layer
Use $(LD) instead of $(CC) for linking the object files
.github/workflows/main.yml | 1 +
Makefile | 15 +++++----
ci/lib.sh | 8 ++++-
config.mak.in | 1 +
config.mak.uname | 6 ++++
generate-cmdlist.sh | 4 +--
t/chainlint.sed | 66 +++++++++++++++++++-------------------
7 files changed, 58 insertions(+), 43 deletions(-)
base-commit: 3a238e539bcdfe3f9eb5010fd218640c1b499f7a
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-694%2Flufia%2Fcompat-p9-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-694/lufia/compat-p9-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/694
Range-diff vs v1:
1: 1f63b4fc7c < -: ---------- Use $(SHELL_PATH) instead of sh in Makefile.
2: 22f8f3e37a < -: ---------- Define TAR_CF and TAR_XF variables in Makefile
3: d15ed626de ! 1: c850888c25 Fit to Plan 9's ANSI/POSIX compatibility layer
@@
## Metadata ##
-Author: lufia <lufia@lufia.org>
+Author: Kyohei Kadota <lufia@lufia.org>
## Commit message ##
Fit to Plan 9's ANSI/POSIX compatibility layer
- That haven't any commands: cut, expr and printf.
+ tr(1) of ANSI/POSIX environment, aka APE, don't support \n literal.
+ It's handles only octal(\ooo) or hexadecimal(\xhhhh) numbers.
And its sed(1)'s label is limited to maximum seven characters.
Therefore I replaced some labels to drop a character.
@@ Commit message
* shell -> sh
* string -> str
- Signed-off-by: lufia <lufia@lufia.org>
-
- ## GIT-VERSION-GEN ##
-@@ GIT-VERSION-GEN: else
- VN="$DEF_VER"
- fi
-
--VN=$(expr "$VN" : v*'\(.*\)')
-+VN=${VN#v}
-
- if test -r $GVF
- then
+ Signed-off-by: Kyohei Kadota <lufia@lufia.org>
## generate-cmdlist.sh ##
-@@ generate-cmdlist.sh: die () {
- }
-
- command_list () {
-- eval "grep -ve '^#' $exclude_programs" <"$1"
-+ eval "grep -v -e '^#' $exclude_programs" <"$1"
+@@ generate-cmdlist.sh: command_list () {
}
get_categories () {
@@ generate-cmdlist.sh: die () {
grep -v '^$' |
sort |
uniq
-@@ generate-cmdlist.sh: get_categories () {
-
- category_list () {
- command_list "$1" |
-- cut -c 40- |
-+ awk '{ print substr($0, 40) }' |
- get_categories
- }
+@@ generate-cmdlist.sh: category_list () {
get_synopsis () {
sed -n '
@@ generate-cmdlist.sh: get_categories () {
${
x
s/.*'"$1"' - \(.*\)/N_("\1")/
-@@ generate-cmdlist.sh: define_category_names () {
- echo "};"
- }
-
-+if test -z "$(echo -n)"
-+then
-+ alias print='echo -n'
-+else
-+ alias print='printf %s'
-+fi
-+
- print_command_list () {
- echo "static struct cmdname_help command_list[] = {"
-
- command_list "$1" |
- while read cmd rest
- do
-- printf " { \"$cmd\", $(get_synopsis $cmd), 0"
-+ print " { \"$cmd\", $(get_synopsis $cmd), 0"
- for cat in $(echo "$rest" | get_categories)
- do
-- printf " | CAT_$cat"
-+ print " | CAT_$cat"
- done
- echo " },"
- done
## t/chainlint.sed ##
@@
4: 4ebd56a3c5 ! 2: 6f35562965 Use $(LD) instead of $(CC) for linking the object files
@@
## Metadata ##
-Author: lufia <lufia@lufia.org>
+Author: Kyohei Kadota <lufia@lufia.org>
## Commit message ##
Use $(LD) instead of $(CC) for linking the object files
@@ Commit message
The compilers are called 8c, 6c... for each machine architectures;
corresponded loaders are called 8l, 6l...
- Signed-off-by: lufia <lufia@lufia.org>
+ Signed-off-by: Kyohei Kadota <lufia@lufia.org>
## .github/workflows/main.yml ##
@@ .github/workflows/main.yml: jobs:
@@ Makefile: compat/nedmalloc/nedmalloc.sp: SP_EXTRA_FLAGS += -Wno-non-pointer-null
- $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
+ $(QUIET_LINK)$(LD) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
- git-bugreport$X: bugreport.o GIT-LDFLAGS $(GITLIBS)
-- $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
-+ $(QUIET_LINK)$(LD) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
- $(LIBS)
-
git-imap-send$X: imap-send.o $(IMAP_SEND_BUILDDEPS) GIT-LDFLAGS $(GITLIBS)
- $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
+ $(QUIET_LINK)$(LD) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
@@ Makefile: compat/nedmalloc/nedmalloc.sp: SP_EXTRA_FLAGS += -Wno-non-pointer-null
+ $(QUIET_LINK)$(LD) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
- git-remote-testsvn$X: remote-testsvn.o GIT-LDFLAGS $(GITLIBS) $(VCSSVN_LIB)
-- $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) \
-+ $(QUIET_LINK)$(LD) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) \
- $(VCSSVN_LIB)
-
$(REMOTE_CURL_ALIASES): $(REMOTE_CURL_PRIMARY)
@@ Makefile: $(REMOTE_CURL_ALIASES): $(REMOTE_CURL_PRIMARY)
cp $< $@
@@ Makefile: $(REMOTE_CURL_ALIASES): $(REMOTE_CURL_PRIMARY)
$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
$(LIB_FILE): $(LIB_OBJS)
-@@ Makefile: t/helper/test-svn-fe$X: $(VCSSVN_LIB)
+@@ Makefile: perf: all
t/helper/test-tool$X: $(patsubst %,t/helper/%,$(TEST_BUILTINS_OBJS))
t/helper/test-%$X: t/helper/test-%.o GIT-LDFLAGS $(GITLIBS)
--
gitgitgadget
next prev parent reply other threads:[~2020-09-09 19:47 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-06 1:05 [PATCH 0/4] Fit the building tools to Plan 9 environment KADOTA, Kyohei via GitGitGadget
2020-08-06 1:05 ` [PATCH 1/4] Use $(SHELL_PATH) instead of sh in Makefile lufia via GitGitGadget
2020-08-06 2:13 ` brian m. carlson
2020-08-06 4:10 ` Eric Sunshine
2020-08-06 14:39 ` Kyohei Kadota
2020-08-06 17:30 ` Junio C Hamano
2020-08-10 9:04 ` Kyohei Kadota
2020-08-06 1:05 ` [PATCH 2/4] Define TAR_CF and TAR_XF variables " lufia via GitGitGadget
2020-08-06 17:50 ` Junio C Hamano
2020-08-06 1:05 ` [PATCH 3/4] Fit to Plan 9's ANSI/POSIX compatibility layer lufia via GitGitGadget
2020-08-06 2:04 ` brian m. carlson
2020-08-06 13:49 ` Kyohei Kadota
2020-08-06 23:51 ` brian m. carlson
2020-08-06 23:57 ` Eric Sunshine
2020-08-06 18:10 ` Junio C Hamano
2020-08-10 10:53 ` Kyohei Kadota
2020-08-06 1:05 ` [PATCH 4/4] Use $(LD) instead of $(CC) for linking the object files lufia via GitGitGadget
2020-08-06 2:23 ` [PATCH 0/4] Fit the building tools to Plan 9 environment brian m. carlson
2020-09-09 19:47 ` KADOTA, Kyohei via GitGitGadget [this message]
2020-09-09 19:47 ` [PATCH v2 1/2] Fit to Plan 9's ANSI/POSIX compatibility layer Kyohei Kadota via GitGitGadget
2020-09-09 19:56 ` Eric Sunshine
2020-09-09 20:34 ` Junio C Hamano
2020-09-10 0:35 ` Kyohei Kadota
2020-09-09 19:47 ` [PATCH v2 2/2] Use $(LD) instead of $(CC) for linking the object files Kyohei Kadota via GitGitGadget
2020-09-10 2:17 ` [PATCH v3 0/2] Fit the building tools to Plan 9 environment KADOTA, Kyohei via GitGitGadget
2020-09-10 2:17 ` [PATCH v3 1/2] Fit to Plan 9's ANSI/POSIX compatibility layer Kyohei Kadota via GitGitGadget
2020-09-10 5:13 ` Junio C Hamano
2020-09-10 2:17 ` [PATCH v3 2/2] Use $(LD) instead of $(CC) for linking the object files Kyohei Kadota via GitGitGadget
2020-09-10 5:31 ` Junio C Hamano
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=pull.694.v2.git.1599680861.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=git@vger.kernel.org \
--cc=lufia@lufia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.