Bug 2217160 - warning from awk during package build: inplace::begin: disabling in-place editing for invalid FILENAME
Summary: warning from awk during package build: inplace::begin: disabling in-place edi...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gopass-jsonapi
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Fabio Alessandro Locati
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-24 15:43 UTC by Evgeni Golov
Modified: 2023-08-16 08:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Evgeni Golov 2023-06-24 15:43:29 UTC
Ohai,

when building the package, the following warning is seen during %check
+ for test in "TestPubring"
++ grep -rl TestPubring
+ awk -i inplace '/^func.*TestPubring\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1'
awk: inplace:59: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'

Reproducible: Always

Steps to Reproduce:
1. build the package

Actual Results:  
warning

Expected Results:  
no warning

The "TestPubring" does not exist in gopass-jsonapi (only in gopass itself), so the awking can be just dropped from the specfile:

diff --git gopass-jsonapi.spec gopass-jsonapi.spec
index 4b228ea..ee34043 100644
--- gopass-jsonapi.spec
+++ gopass-jsonapi.spec
@@ -48,9 +48,6 @@ install -m 0755 -vp %{gobuilddir}/bin/gopass-jsonapi    %{buildroot}%{_bindir}/
 %check
 git config --global user.email "%{name}-owner"
 git config --global user.name "%{name} maintainer"
-for test in "TestPubring"; do
-    awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
-done
 %gocheck
 %endif

Comment 1 Fedora Release Engineering 2023-08-16 08:15:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


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