public inbox for accel-config@lists.linux.dev
 help / color / mirror / Atom feed
From: Ramesh Thomas <ramesh.thomas at intel.com>
To: accel-config@lists.01.org
Subject: [Accel-config] [PATCH 1/3] accel-config: Install test programs in /usr/lib
Date: Wed, 05 Oct 2022 13:23:15 -0700	[thread overview]
Message-ID: <20221005202317.2113-2-ramesh.thomas@intel.com> (raw)
In-Reply-To: 20221005202317.2113-1-ramesh.thomas@intel.com

[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]

Test programs are being installed into /usr/share which violates the
policy
https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrshareArchitectureindependentData

Update make files to install test programs and related config files in
/usr/lib

Reported-by: Colin Ian King <colin.king(a)intel.com>
Signed-off-by: Ramesh Thomas <ramesh.thomas(a)intel.com>
---
 Makefile.am      | 4 ++--
 test/Makefile.am | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index b649934..b5cc850 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,13 +34,13 @@ bashcompletiondir = $(BASH_COMPLETION_DIR)
 endif
 
 accfgconf_file = contrib/accel-config.conf.sample
-accfgconfdir = $(sysconfdir)/accel-config/
+accfgconfdir = $(prefix)/lib/accel-config/
 accfgconf_DATA = $(accfgconf_file)
 
 EXTRA_DIST += $(accfgconf_file) accfg.spec.in accfg-test.spec.in
 
 contrib_configs = contrib/configs/*
-contribdir = $(prefix)/share/accel-config/contrib/configs
+contribdir = $(prefix)/lib/accel-config/contrib/configs
 contrib_DATA = $(contrib_configs)
 
 noinst_LIBRARIES = libccan.a
diff --git a/test/Makefile.am b/test/Makefile.am
index a42d16c..78127a2 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -13,7 +13,7 @@ check_PROGRAMS =\
 	iaa_test
 
 if ENABLE_TEST
-testprogdir = $(datadir)/accel-config/test/
+testprogdir = $(prefix)/lib/accel-config/test/
 testprog_DATA = common
 testprog_SCRIPTS = dsa_user_test_runner.sh iaa_user_test_runner.sh
 testprog_PROGRAMS = dsa_test iaa_test
-- 
2.37.3

                 reply	other threads:[~2022-10-05 20:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20221005202317.2113-2-ramesh.thomas@intel.com \
    --to=accel-config@lists.01.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