Bug 652479

Summary: Portability fixes for newt
Product: [Fedora] Fedora Reporter: Tilghman Lesher <bugzilla-redhat-com>
Component: newtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://trac.macports.org/ticket/27253
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-22 14:01:03 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
Applied against newt 0.52.11
none
Detects the need for -lintl
none
newt-0.52.12-macosx.patch none

Description Tilghman Lesher 2010-11-12 00:27:49 UTC
Created attachment 459886 [details]
Applied against newt 0.52.11

Description of problem:
Patches to allow newt to compile and install on Mac OS X.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Miroslav Lichvar 2010-11-12 12:49:23 UTC
Thanks. But it needs a bit more work, it breaks building and installing on Linux. The intl library shouldn't be used and GNU install uses -d option to create directories.

Comment 2 Tilghman Lesher 2010-11-12 17:05:21 UTC
Created attachment 460104 [details]
Detects the need for -lintl

Comment 3 Tilghman Lesher 2010-11-12 17:08:24 UTC
1.  Now builds correctly on Linux.
2.  libintl is now optional, based upon whether gettext is found in -lc or -lintl.
3.  BSD install does not have the -D flag, and BSD install is the portability standard (see Autoconf's install-sh script).

Comment 4 Tilghman Lesher 2010-11-15 03:40:15 UTC
Created attachment 460460 [details]
newt-0.52.12-macosx.patch

Patch now finds the correct path of libtcl for linking.

Comment 5 Miroslav Lichvar 2010-11-22 14:01:03 UTC
Pushed to git with some modifications.

If you have more patches, please use git format-patch.

Thanks.