pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43774: update patchfile for openssl to support amd64 on Dragonfly BSD



>Number:         43774
>Category:       pkg
>Synopsis:       update patchfile for openssl to support amd64 on Dragonfly BSD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 17 22:45:00 +0000 2010
>Originator:     Damian Lubosch
>Release:        Dragonfly BSD 2.6
>Organization:
Xiqit GmbH
>Environment:
DragonFly pick 2.6-RELEASE DragonFly v2.6.3-RELEASE #8: Mon Aug  2 23:52:40 
CEST 2010
>Description:
The usrpkg/security/openssl package does not compile properly on 64bit 
Dragonfly BSD systems.
This is due to wrong recognition of the platform:

Configure writes...
with DragonflyBSD:
===> Configuring for openssl-0.9.8o
cd /usr/pkgsrc/security/openssl/work/openssl-0.9.8o && /usr/pkg/bin/perl 
util/perlpath.pl /usr/pkg/bin/perl
Operating system: x86_64-whatever-dragonfly
Configuring for BSD-x86-elf
Configuring for BSD-x86-elf
...

With NetBSD 64 it writes:
===> Configuring for openssl-0.9.8o
cd /var/build/security/openssl/work/openssl-0.9.8o && /usr/pkg/bin/perl 
util/perlpath.pl /usr/pkg/bin/perl
Operating system: x86_64-whatever-netbsd
Configuring for NetBSD-x86_64
Configuring for NetBSD-x86_64
...
>How-To-Repeat:
on 64bit DFly 
cd /usr/pkgsrc/security/openssl
bmake

ends with

...
x86cpuid-elf.s:212: Error: suffix or operands invalid for `push'
x86cpuid-elf.s:231: Error: suffix or operands invalid for `pop'
gmake[1]: *** [x86cpuid-elf.o] Error 1
gmake[1]: Leaving directory 
`/usr/pkgsrc/security/openssl/work/openssl-0.9.8o/crypto'
gmake: *** [build_crypto] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
>Fix:
The problem is easily fixed by changing line 56 of 
/usr/pkgsrc/security/openssl/patches/patch-aa

from 
amd64-*-*bsd*)       OUT="BSD-x86_64" ;;

to
amd64-*-*bsd*|*-dragonfly*)  OUT="BSD-x86_64" ;;

after that the compile flags are set correctly for 64 bit.



Home | Main Index | Thread Index | Old Index