IBM Support

IV51193: PATCH -U DOES NOT PROCESS THE 2ND HUNK OF PATCHFILE APPLIES TO AIX 6100-09

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • # patch -b -up1 -i ../patch_u.diff
    Processing...  Looks like a unified context diff...
    The text leading up to this was:
    --------------------------
    |diff -u before/samp.h after/samp.h
    |--- before/samp.h   2013-08-12 04:25:05.000000000 -0500
    |+++ after/samp.h   2013-08-08 21:26:13.000000000 -0500
    --------------------------
    Patching file samp.h using Plan A...
    Hunk #1 succeeded at 35.
    Processing...  Ignoring the trailing text.    <== wrong
    done
    

Local fix

  • Use patch -c as a workaround.
    

Problem summary

  • When using a unified context diff file as an input to the patch
    command to patch differences in a file, and there are more
    than one hunks present in the diff file. Then the patch command
    might not process all the hunks.
    

Problem conclusion

  • Modify loop termination condition to ensure context diff
    hunk read processing contained.
    

Temporary fix

Comments

  • 6100-07 - use AIX APAR IV47674
    6100-08 - use AIX APAR IV57803
    6100-09 - use AIX APAR IV51193
    6100-09 - use AIX APAR IV51193
    6100-09 - use AIX APAR IV51193
    7100-01 - use AIX APAR IV57501
    7100-02 - use AIX APAR IV56949
    7100-03 - use AIX APAR IV51338
    

APAR Information

  • APAR number

    IV51193

  • Reported component name

    AIX 610 STD EDI

  • Reported component ID

    5765G6200

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2013-10-22

  • Closed date

    2013-10-22

  • Last modified date

    2014-10-28

  • APAR is sysrouted FROM one or more of the following:

    IV47674

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX 610 STD EDI

  • Fixed component ID

    5765G6200

Applicable component levels

  • R610 PSY U861350

       UP14/10/28 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSLLZP","label":"AIX Standard Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSAUMY","label":"IBM AIX Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11Q","label":"AIX 6.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
28 October 2014