build of package initscripts fails intermittently due to fuzzy patches
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Scott Little |
Bug Description
Title
-----
build of package initscripts fails
Brief Description
-----------------
build-pkgs fails on package initscripts.
Initscripts is failing during packaging due to the creation of
unexpected .orig files.
Creation of .orig files are a consequence of applying patches
that are not clean. Unclean patches are ones that require
'fuzzing', i.e. treat the patch line numbers as approximate,
rather than a strict requirement, just so long as the
before/after context seems to be correct.
There appears to be a race condition complicating the
reproducability of this bug. The first build fails,
but sometimes it passes on a retry.
A failed build attempt shows the patches being applied with
rpm-4.11.3
/usr/bin/patch -p1 --fuzz=0
while a successfull build attempt uses
rpm-4.14.0
/usr/bin/patch --no-backup-
--no-backup-
From rpm-4.13 release notes
Enable –no-backup-
Severity
--------
Major
Steps to Reproduce
------------------
build-pkg clean; build-pkgs
grep 'error: Installed (but unpackaged) file(s) found:' $MY_WORKSPACE/
Expected Behavior
------------------
build-pkgs should be able to build initscripts consistently on the first attempt.
Actual Behavior
----------------
build-pkgs generally fails to build initscripts on the first pass
when it typically build ahead of rpm.
It might pass on subsequent build attempts, largely dependent on
if rpm has been upgraded to 4.14 within the mock environmnet.
Reproducibility
---------------
50%
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
master, starting with upgrade to Centos 7.5
Timestamp/Logs
--------------
11:51:28 Start: rpmbuild initscripts-
11:51:28 ERROR: Exception(
11:51:28 INFO: Results and/or logs in: /localdisk/
11:51:28 ERROR: Command failed. See logs for output.
11:51:28 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/
11:51:28 End build on 'b3': /localdisk/
11:51:28 Error building initscripts-
...
Patch #4 (support-
+ /usr/bin/cat /builddir/
+ /usr/bin/patch -p1 --fuzz=0
patching file sysconfig/
patching file sysconfig/
Hunk #1 succeeded at 69 (offset 8 lines).
patching file sysconfig/
patching file sysconfig/
Hunk #1 succeeded at 148 (offset 31 lines).
...
Patch #9 (0001-force-
+ /usr/bin/cat /builddir/
+ /usr/bin/patch -p1 --fuzz=0
patching file sysconfig/
Hunk #1 succeeded at 470 (offset 10 lines).
...
Patch #14 (ifup-eth-
+ /usr/bin/cat /builddir/
+ /usr/bin/patch -p1 --fuzz=0
patching file sysconfig/
Hunk #1 succeeded at 168 (offset 17 lines).
Hunk #2 succeeded at 188 (offset 17 lines).
Hunk #3 succeeded at 244 (offset 17 lines).
Hunk #4 succeeded at 259 (offset 17 lines).
...
Checking for unpackaged file(s): /usr/lib/
error: Installed (but unpackaged) file(s) found:
/etc/
/etc/
/etc/
/etc/
File listed twice: /etc/rc.
File listed twice: /usr/lib/
Installed (but unpackaged) file(s) found:
/etc/
/etc/
/etc/
/etc/
RPM build errors:
On a subsequent build attempt
...
/usr/bin/patch --no-backup-
...
success
tags: | added: stx.build |
Changed in starlingx: | |
assignee: | nobody → Scott Little (slittle1) |
summary: |
- build of package initscripts fails + build of package initscripts fails intermittently |
tags: | added: stx.2018.10 |
Changed in starlingx: | |
importance: | Undecided → High |
status: | New → Triaged |
summary: |
- build of package initscripts fails intermittently + build of package initscripts fails intermittently due to fuzzy patches |
tags: |
added: stx.1.0 removed: stx.2018.10 |
Fix proposed to branch: master /review. openstack. org/605531
Review: https:/