Bug 434975

Summary: freetds specfile broken on true 64bit platforms
Product: [Fedora] Fedora Reporter: Doug Chapman <dchapman>
Component: freetdsAssignee: Dmitry Butskoy <dmitry>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-26 17:58:49 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:
Bug Depends On:    
Bug Blocks: 163350    

Description Doug Chapman 2008-02-26 17:08:53 UTC
Description of problem:

On ia64 (and should be the same on alpha or any other 64bit only platform) the
file /usr/include/tds_sysdep_public_64.h is included by tds_sysdep_public.h
however only tds_sysdep_public_32.h is actually installed.

The freetds specfile uses this test to determine if it is being built on 32 or
64 bit platforms:

%if %_lib == lib64
%define bits    64
%else
%define bits    32
%endif


On platforms that _only_ are 64 bit such as ia64 and alpha %_lib is still just
"lib" not "lib64" as it is on x86_64 and ppc64.

A more proper test would be to use %ifarch on a per platform basis:

%ifarch alpha ia64 x86_64 ppc64 sparc64
%define bits    64
%else
%define bits    32
%endif



Version-Release number of selected component (if applicable):
freetds-0.64-10.fc9

How reproducible:


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


Expected results:


Additional info:

Comment 1 Dmitry Butskoy 2008-02-26 17:58:49 UTC
Thanks. Fixed.