Bug 2127957 - qpdf-10.6.3-4.fc38 FTBFS: test fail with grep-3.8: egrep: warning: egrep is obsolescent; using grep -E
Summary: qpdf-10.6.3-4.fc38 FTBFS: test fail with grep-3.8: egrep: warning: egrep is o...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qpdf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F38FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-09-19 13:08 UTC by Petr Pisar
Modified: 2022-09-22 13:29 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-09-22 13:29:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2022-09-19 13:08:22 UTC
qpdf-10.6.3-4.fc38 fails to build in Fedora 38 because tests fail like this:

qpdf 569 (check output)                                        ... PASSED
qpdf 570 (check non-static ID version)                         ... FAILED
--- Key functions, C API ---
qpdf 571 (C API info key functions)                            ... PASSED
[...]
qpdf test 570 (check non-static ID version) FAILED
cwd: /builddir/build/BUILD/qpdf-10.6.3/qpdf/qtest/qpdf
command: sh ./diff-ignore-ID-version a.pdf b.pdf
 at qpdf.test line 1725.
--> BEGIN EXPECTED OUTPUT <--
okay
--> END EXPECTED OUTPUT <--
--> BEGIN ACTUAL OUTPUT <--
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
okay
--> END ACTUAL OUTPUT <--
--> DIFF EXPECTED ACTUAL <--
--- /tmp/testtemp.16650/expected	2022-09-16 01:11:38.282547425 +0000
+++ /tmp/testtemp.16650/actual	2022-09-16 01:11:38.281547337 +0000
@@ -1 +1,4 @@
+egrep: warning: egrep is obsolescent; using grep -E
+egrep: warning: egrep is obsolescent; using grep -E
+egrep: warning: egrep is obsolescent; using grep -E
 okay
--> END DIFFERENCES <--

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/13660370>. This is very probably triggered by upgrading grep from 3.7-4.fc37 to 3.8-1.fc38. From grep-3.8 NEWS:

  The egrep and fgrep commands, which have been deprecated since
  release 2.5.3 (2007), now warn that they are obsolescent and should
  be replaced by grep -E and grep -F.

Comment 1 Zdenek Dohnal 2022-09-19 14:33:21 UTC
Hi Petr,

thank you for reporting the issue!

I'm working on rebase to 11.1.0 ( https://bugzilla.redhat.com/show_bug.cgi?id=2125823 ) which doesn't show the error, so I'll fix this bug by the rebase.

Comment 2 Benjamin Herrenschmidt 2022-09-20 06:08:08 UTC
Yes, it's fixed in 11.0.0 onwards by https://github.com/qpdf/qpdf/pull/761

Comment 3 Zdenek Dohnal 2022-09-22 12:13:23 UTC
The rebase will take longer time, because the dependent packages are broken with new qpdf. I'll fix this before the rebase.

Comment 4 Zdenek Dohnal 2022-09-22 13:29:22 UTC
Fixed by https://koji.fedoraproject.org/koji/taskinfo?taskID=92267780 .


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