From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v6 1/3] Refactor regen.sh script to generate syscalls
Date: Thu, 31 Oct 2024 12:17:15 +0100 [thread overview]
Message-ID: <20241031111715.GA1002312@pevik> (raw)
In-Reply-To: <ZyNbzFs39LOOLgV7@yuki.lan>
> Hi!
> > I was comparing the old include/lapi/syscalls.h (21579 lines) and the new one
> > (20054). Having new file shorter is a bit surprising to me. I haven't found what
> > is missing, probably I'm missing something myself :).
> That is strange, I got exactly same content minus some whitespaces and
> slightly different macros that check for arch support:
Hm, that must be on my side than. I was doing that on old version,
but even with update to the current master and deleting all:
rm -rf *; git reset --hard; make autotools && ./configure
I still get:
21579 for master (84e77afb3a)
20054 for v6.
Because diff is big, I posted: diff [1], old master [2], new v6 [3]
Now I see the reason - what I pushed as Anrea's v6 [4] is broken for many
distros [5].
Reason for the failure itself is quite obvious [6]:
414 ../include/lapi/syscalls.h:13:2: error: unterminated conditional directive
415 #ifndef LAPI_SYSCALLS_H__
416 ^
417 1 error generated.
Looking it's broken on Debian any version I suspect
include/lapi/syscalls/generate_syscalls.sh works differently on dash.
But it works on ash. Maybe it's not a shell syntax but some dependency.
I suppose include/lapi/syscalls/generate_syscalls.sh should use:
#!/bin/sh -eux
instead of plain #!/bin/sh, that will show the error immediately.
(set -eu is useful for shell scripts which should not fail).
Kind regards,
Petr
[1] https://github.com/pevik/ltp/wiki/diff-master-and-v6
[2] https://github.com/pevik/ltp/wiki/syscalls.h-old-master-(84e77afb3a)
[3] https://github.com/pevik/ltp/wiki/syscalls.h-v6-(new)
[4] https://github.com/pevik/ltp/tree/refs/heads/andrea/automatically-generate-syscalls.h.v6
[5] https://github.com/pevik/ltp/actions/runs/11609439723
[6] https://github.com/pevik/ltp/actions/runs/11609439723/job/32326686364
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-10-31 11:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 7:27 [LTP] [PATCH v6 0/3] Automatically generate syscalls.h Andrea Cervesato
2024-10-31 7:27 ` [LTP] [PATCH v6 1/3] Refactor regen.sh script to generate syscalls Andrea Cervesato
2024-10-31 9:49 ` Petr Vorel
2024-10-31 10:28 ` Cyril Hrubis
2024-10-31 10:37 ` Andrea Cervesato via ltp
2024-10-31 11:35 ` Cyril Hrubis
2024-10-31 11:02 ` Andrea Cervesato via ltp
2024-10-31 11:17 ` Petr Vorel [this message]
2024-10-31 12:19 ` Cyril Hrubis
2024-10-31 12:25 ` Andrea Cervesato via ltp
2024-10-31 10:25 ` Cyril Hrubis
2024-10-31 10:31 ` Cyril Hrubis
2024-10-31 7:27 ` [LTP] [PATCH v6 2/3] Add script to generate arch(s) dependant syscalls Andrea Cervesato
2024-10-31 7:27 ` [LTP] [PATCH v6 3/3] Delete obsolete strip_syscall.awk file Andrea Cervesato
2024-10-31 9:56 ` [LTP] [PATCH v6 0/3] Automatically generate syscalls.h Petr Vorel
2024-10-31 10:02 ` Cyril Hrubis
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=20241031111715.GA1002312@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/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.