igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Lucas De Marchi <lucas.demarchi@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v2 0/2] Fix i-g-t on old systems
Date: Tue, 24 Jul 2018 15:20:22 -0700	[thread overview]
Message-ID: <20180724222024.8181-1-lucas.demarchi@intel.com> (raw)

IGT now requires memfd_create() which is not available on old versions
of glibc (or some alternative libcs).  This provides a minimal intrusive
way to keep building on those old systems without polluting the code
with a compatibility layer.

The approach is similar to what I've been using in other projects like
systemd, kmod, ardupilot, etc. The syscall numbers came from systemd.

v2: add support to autotools

Lucas De Marchi (2):
  build: provide include for missing syscalls
  build: provide stub implementation for memfd_create

 benchmarks/Makefile.am           |  3 ++-
 configure.ac                     |  3 +++
 debugger/Makefile.am             |  3 ++-
 lib/Makefile.am                  |  3 ++-
 lib/stubs/syscalls/README        |  6 ++++++
 lib/stubs/syscalls/sys/mman.h    | 37 ++++++++++++++++++++++++++++++++
 lib/tests/Makefile.am            |  1 +
 meson.build                      |  5 ++++-
 overlay/Makefile.am              |  3 ++-
 tests/Makefile.am                |  1 +
 tools/Makefile.am                |  3 ++-
 tools/null_state_gen/Makefile.am |  3 ++-
 12 files changed, 64 insertions(+), 7 deletions(-)
 create mode 100644 lib/stubs/syscalls/README
 create mode 100644 lib/stubs/syscalls/sys/mman.h

-- 
2.17.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

             reply	other threads:[~2018-07-24 22:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-24 22:20 Lucas De Marchi [this message]
2018-07-24 22:20 ` [igt-dev] [PATCH i-g-t v2 1/2] build: provide include for missing syscalls Lucas De Marchi
2018-07-25  0:04   ` Rodrigo Vivi
2018-08-02 10:19   ` Tvrtko Ursulin
2018-07-24 22:20 ` [igt-dev] [PATCH i-g-t v2 2/2] build: provide stub implementation for memfd_create Lucas De Marchi
2018-07-25  0:04   ` Rodrigo Vivi
2018-07-25 16:46   ` Antonio Argenziano
2018-07-25 19:57     ` De Marchi, Lucas
2018-07-25 21:28       ` Antonio Argenziano
2018-07-25 22:56         ` Rodrigo Vivi
2018-08-02 10:18   ` Tvrtko Ursulin
2018-07-24 23:32 ` [igt-dev] ✓ Fi.CI.BAT: success for Fix i-g-t on old systems (rev2) Patchwork
2018-07-25  1:25 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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=20180724222024.8181-1-lucas.demarchi@intel.com \
    --to=lucas.demarchi@intel.com \
    --cc=igt-dev@lists.freedesktop.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;
as well as URLs for NNTP newsgroup(s).