Bug 651463

Summary: SIGPIPE does not work correctly in scripts in rpmbuild
Product: [Fedora] Fedora Reporter: Michal Hlavinka <mhlavink>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-31 06:47:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 993868    
Attachments:
Description Flags
reproducer.spec none

Description Michal Hlavinka 2010-11-09 16:07:17 UTC
Created attachment 459168 [details]
reproducer.spec

Description of problem:
During ksh build process there are regression tests executed in %check section, but because SIGPIPE does not work in rpmbuild, some tests fail. When tests are started from normal environment, they all pass.

Version-Release number of selected component (if applicable):
rpm-build-4.8.1-5.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1.rpmbuild -bb reproducer.spec 2>&1 | grep -e ^FAILED -e ^PASSED
2.
3.
  
Actual results:
FAILED

Expected results:
PASSED

Comment 1 Panu Matilainen 2010-11-23 13:16:41 UTC
Hmph, I could've sworn I already replied to this...

Anyway, will fix and thanks for the reproducer.

Comment 2 Panu Matilainen 2012-03-31 06:47:24 UTC
I guess this never got fixed in F14 :-/ which is of course now EOL, but it has been fixed in >= 15 for quite some time.