Bug 21141

Summary: gzip-1.2.4a_IBM_patch_001 Makefile.in fix to remove readonly gzip.info before install
Product: [Retired] Red Hat Linux Reporter: Paul Shearer <paulsh>
Component: gzipAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: low    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-20 20:08:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
gzip-1.2.4a_IBM_patch_001 Patch file none

Description Paul Shearer 2000-11-20 20:01:25 UTC
To:bug-gzip
cc:
Fcc:MS.bug-report.RPM
Subject: SPTS 254444 BUGZILLA XXXXX gzip-1.2.4a_IBM_patch_001 Makefile.in fix
--------

IBM SPTS:       254444
BUGZILLA:       XXXXX
                http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=XXXXX

IBM PATCH:      gzip-1.2.4a_IBM_patch_001

Submitter:      paulsh.com
                Paul Shearer

Product:        gzip
Version:        gzip-1.2.4a
gzip -V:        gzip 1.2.4 (18 Aug 93)
                Compilation options:
                DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H ASMV
Component:
Platform:       All
OS:             All
uname -a:       DYNIX/ptx eng2 4.0 V4.6.0 i386
Compiler:       cc:  v4.6.0    (00133)

Summary:

        Makefile.in fix to rm readonly installed gzip.info* before installing

Description:

OVERVIEW DESCRIPTION:

        Makefile.in installman target fails to install gzip.info*
        if the previously installed copy is readonly.
        The installman target currently has a rm command to remove
        the previously installed man pages.
        This patch adds the rm command to
        remove the previously installed gzip.info*
        before installing the new gzip.info* files.

STEPS TO REPRODUCE:

        make installman
        make installman (second one fails if installed gzip.info readonly.)

ACTUAL RESULTS:

        ERROR:
        cp: cannot create /info/gzip.info
        cp: Permission denied

EXPECTED RESULTS:

        make installman (should work second time)

BUILD DATE & PLATFORM:

        N/A

ADDITIONAL BUILDS AND PLATFORMS:

        N/A

ADDITIONAL INFORMATION: (crash info)

        N/A

UNIX STACK TRACE:

        N/A

SAMPLE PATCH:

IBM patch sequence number: gzip-1.2.4a_IBM_patch_001


List of files patched followed by RCS or SCCS ident lines.
==========================================================

Makefile.in

# $Id: Makefile.in,v 1.1 2000/11/09 05:27:44 paulsh Exp $


Patch to fix the files
======================
*** 1.1 2000/11/09 05:27:44
--- Makefile.in 2000/11/11 00:27:37
***************
*** 237,244 ****
          ln $(G)zdiff.$(manext) $(G)zcmp.$(manext);\
          ln gzip.$(manext)  gunzip.$(manext);\
        fi
!       -cd $(srcdir); for f in gzip.info* ; do $(INSTALL_DATA) $${f} \
!         $(infodir)/$${f}; done
 
  uninstall: force
        -cd $(bindir); rm -f gzip$X gunzip$X $(ZCAT)$X
--- 237,245 ----
          ln $(G)zdiff.$(manext) $(G)zcmp.$(manext);\
          ln gzip.$(manext)  gunzip.$(manext);\
        fi
!       -cd $(srcdir); for f in gzip.info* ; do \
!         rm -f $(infodir)/$${f}; \
!         $(INSTALL_DATA) $${f} $(infodir)/$${f}; done
 
  uninstall: force
        -cd $(bindir); rm -f gzip$X gunzip$X $(ZCAT)$X

Comment 1 Paul Shearer 2000-11-20 20:08:56 UTC
Created attachment 5566 [details]
gzip-1.2.4a_IBM_patch_001 Patch file

Comment 2 Trond Eivind Glomsrxd 2000-11-28 17:43:32 UTC
Patching the Makefile.in isn't the right thing to do - it's autogenerated from
Makefile.am. The problem doesn't seem to exist in our buildtrees, which uses 1.3
from alpha.gnu.org - thanks for the report.