Bug 434975 - freetds specfile broken on true 64bit platforms
Summary: freetds specfile broken on true 64bit platforms
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: freetds
Version: rawhide
Hardware: ia64
OS: Linux
high
high
Target Milestone: ---
Assignee: Dmitry Butskoy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: fedora-ia64
TreeView+ depends on / blocked
 
Reported: 2008-02-26 17:08 UTC by Doug Chapman
Modified: 2008-02-26 17:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-26 17:58:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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