rpm/0001-bugfix-rpm-4.14.2-fix-tty-failed.patch

26 lines
936 B
Diff
Raw Normal View History

2020-01-10 17:01:49 +08:00
From 733a0997ba5608f6b37d0b6d47c7bbd6f9d62381 Mon Sep 17 00:00:00 2001
From: openeuler-basic <shenyangyang4@huawei.com>
Date: Fri, 10 Jan 2020 10:29:16 +0800
Subject: [PATCH] bugfix rpm 4.14.2 fix tty failed
2019-09-30 11:16:24 -04:00
---
rpmpopt.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rpmpopt.in b/rpmpopt.in
2020-01-10 17:01:49 +08:00
index 8e4ef02..9585422 100644
2019-09-30 11:16:24 -04:00
--- a/rpmpopt.in
+++ b/rpmpopt.in
2020-01-10 17:01:49 +08:00
@@ -219,7 +219,7 @@ rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#
2019-09-30 11:16:24 -04:00
--POPTargs=$"<policy>"
# Minimally preserve rpmbuild's --sign functionality
rpmbuild alias --sign \
- --pipe 'rpm --addsign `grep ".*: .*\.rpm$"|cut -d: -f2` < "/dev/"`ps -p $$ -o tty | tail -n 1`' \
2020-01-10 17:01:49 +08:00
+ --pipe "grep '.*: .*\.rpm$'|cut -d: -f2|xargs -r rpm --addsign" \
2019-09-30 11:16:24 -04:00
--POPTdesc=$"generate GPG signature (deprecated, use command rpmsign instead)"
2020-01-10 17:01:49 +08:00
rpmbuild alias --trace --eval '%trace' \
--POPTdesc=$"trace macro expansion"
2019-09-30 11:16:24 -04:00
--
1.8.3.1