Bug 90229 - Makefile doesn't copy file on SunOS/Solaris
Summary: Makefile doesn't copy file on SunOS/Solaris
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: logrotate (Show other bugs)
(Show other bugs)
Version: 9
Hardware: All Linux
medium
low
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Jay Turner
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-05-05 19:01 UTC by Laurent Goujon
Modified: 2015-01-08 00:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-07-09 15:26:02 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to solve the problem (572 bytes, patch)
2003-05-05 19:02 UTC, Laurent Goujon
no flags Details | Diff

Description Laurent Goujon 2003-05-05 19:01:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

Description of problem:
make install doesn't copy files on Solaris (logrotate and logrotate.8)

Version-Release number of selected component (if applicable):
logrotate-3.6.8

How reproducible:
Always

Steps to Reproduce:
1. make install
    

Additional info:

Just modify the Mafefile to solve this problem :

--- logrotate-3.6.8/Makefile    2002-11-15 12:42:02.000000000 +0100
+++ logrotate-3.6.8-solaris/Makefile    2003-05-05 20:37:05.490372000 +0200
@@ -99,7 +99,7 @@
        $(INSTALL) $(MAN) $(PREFIX)/$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`
0644 bin bin; \
        fi

-       if [ "$(OS_NAME)" = Linux ]; then \
+       if [ "$(OS_NAME)" = Linux -o "$(OS_NAME)" = SunOS ]; then \
        $(INSTALL) -m 755 $(PROG) $(PREFIX)/$(BINDIR); \
        $(INSTALL) -m 644 $(MAN) $(PREFIX)/$(MANDIR)/man`echo $(MAN) | sed
"s/.*\.//"`/$(MAN); \
        fi

Comment 1 Laurent Goujon 2003-05-05 19:02:56 UTC
Created attachment 91502 [details]
Patch to solve the problem

Comment 2 Elliot Lee 2003-07-09 15:26:02 UTC
I'll just change it to fallback to the Linux behaviour if OS_NAME != HP-UX


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