udisks: Remove bash dependency

There are couple of scripts which explicitly calls out for bash
interpreter but there is nothing bash specific about them, so let
it use sh interpreter.

Fixes
ERROR: QA Issue: /usr/libexec/udisks-helper-mdadm-expand contained in package udisks requires /bin/bash, but no providers found in RDEPENDS_udisks? [file-rdeps]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2019-05-23 22:07:22 -07:00
parent 07d46c6261
commit 9d63ad02b3
2 changed files with 39 additions and 0 deletions
@@ -0,0 +1,38 @@
From 44953e5501e92c87611be45221338004e8032a74 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 23 May 2019 22:00:14 -0700
Subject: [PATCH] udisks-helper: Use sh interpreter instead of bash
These scripts do not require bash, since they do not use any bash
specific extentions
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/helpers/udisks-helper-change-luks-password | 2 +-
src/helpers/udisks-helper-mdadm-expand | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/helpers/udisks-helper-change-luks-password b/src/helpers/udisks-helper-change-luks-password
index edcf6c9..c71fc72 100755
--- a/src/helpers/udisks-helper-change-luks-password
+++ b/src/helpers/udisks-helper-change-luks-password
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env sh
set -e
DEVICE=$1
diff --git a/src/helpers/udisks-helper-mdadm-expand b/src/helpers/udisks-helper-mdadm-expand
index 8b4e23d..921f96a 100755
--- a/src/helpers/udisks-helper-mdadm-expand
+++ b/src/helpers/udisks-helper-mdadm-expand
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env sh
set -e
--
2.21.0
@@ -18,6 +18,7 @@ SRC_URI = "http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \
file://0001-Make-udev-rules-directory-configurable.patch \
file://0001-include-sys-sysmacros.h.patch \
file://0001-tools-Install-bash_completion-script-in-etc-bash_com.patch \
file://0001-udisks-helper-Use-sh-interpreter-instead-of-bash.patch \
"
SRC_URI[udisks.md5sum] = "70d48dcfe523a74cd7c7fbbc2847fcdd"