Bug 8307 - Bash process substitution broken in cenbuild
Summary: Bash process substitution broken in cenbuild
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.17.0
Assignee: Adam Halim
URL:
Keywords: prosaic, tobfa_tester
Depends on:
Blocks:
 
Reported: 2024-02-08 11:01 CET by Adam Halim
Modified: 2024-02-09 12:29 CET (History)
1 user (show)

See Also:
Acceptance Criteria:
MUST: - Process substitution must work in cenbuild


Attachments

Description Adam Halim cendio 2024-02-08 11:01:14 CET
Came across this bug when trying to build openJDK using cenbuild. It seems like openJDK uses process substitution during the building process, which is broken in cenbuild. See example below:

> $ cbrun x86_64 bash -c 'cat <( echo hello)'
> cat: /dev/fd/63: No such file or directory

Found a similar bug report from RedHat: 
https://bugzilla.redhat.com/show_bug.cgi?id=814850
Comment 3 Adam Halim cendio 2024-02-09 08:41:38 CET
This is now fixed. Tested by running the command before and after upgrading the cendio-build-filesystem package.

> $ cbrun x86_64 bash -c 'cat <( echo hello)'
Comment 4 Tobias cendio 2024-02-09 12:29:13 CET
Had a look at the content in /dev/ for the relevant arch while upgrading and downgrading cenbuild's corresponding filesystem package, with the expected symlink /dev/fd -> /proc/self/fd appearing and disappearing accordingly.

Moreover, tested some simple process substitutions which seems to be working as intended, and confirmed to not work with the older release of the package.

Acceptance criteria:
✅ Process substitution must work in cenbuild

Closing.

Note You need to log in before you can comment on or make changes to this bug.