pkgsrc-Users archive

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

security/openssl on big-endian ppc/Linux is configured as 32-bit



Hi. I bootstrapped pkgsrc on 64-bit big-endian PowerPC-based Linux.

It works well, except that security/openssl package is configured as
32-bit ("linux-ppc" in terms of openssl internal ids)

The following patch solves the problem. Unless any one objects I'd like
to commit it.
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/distinfo,v
retrieving revision 1.173
diff -u -r1.173 distinfo
--- distinfo	9 Apr 2024 17:16:45 -0000	1.173
+++ distinfo	30 May 2024 14:01:42 -0000
@@ -4,4 +4,4 @@
 SHA512 (openssl-3.3.0.tar.gz) = 1f9daeee6542e1b831c65f1f87befaef98ccedc3abc958c9d17f064ef771924c30849e3ff880f94eed4aaa9d81ea105e3bc8815e6d2e4d6b60b5e890f14fc5da
 Size (openssl-3.3.0.tar.gz) = 18038030 bytes
 SHA1 (patch-Configurations_unix-Makefile.tmpl) = ea9b0a0c8de810362813d84a4f85c5ebdedf9fc6
-SHA1 (patch-util_perl_OpenSSL_config.pm) = 3d5b52a397265e91544a24c2a6c81029dff27b77
+SHA1 (patch-util_perl_OpenSSL_config.pm) = 3ba3c23046bf69c7d348b4c1c8c8269d83cfa2b4
Index: patches/patch-util_perl_OpenSSL_config.pm
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/patches/patch-util_perl_OpenSSL_config.pm,v
retrieving revision 1.2
diff -u -r1.2 patch-util_perl_OpenSSL_config.pm
--- patches/patch-util_perl_OpenSSL_config.pm	9 Apr 2024 17:16:45 -0000	1.2
+++ patches/patch-util_perl_OpenSSL_config.pm	30 May 2024 14:01:42 -0000
@@ -2,6 +2,8 @@

 a strategic chomp makes openssl on NetBSD/i386 configure

+fix default platform id (linux-ppc64) for big-endian PowerPC-based Linux
+
 --- util/perl/OpenSSL/config.pm.orig	2024-04-09 12:12:22.000000000 +0000
 +++ util/perl/OpenSSL/config.pm
 @@ -130,6 +130,7 @@ my $guess_patterns = [
@@ -12,3 +14,34 @@
            return "${hw}-whatever-netbsd";
        }
      ],
+@@ -579,29 +580,7 @@ EOF
+                      %config };
+         }
+       ],
+-      [ 'ppc64-.*-linux2',
+-        sub {
+-            my $KERNEL_BITS = $ENV{KERNEL_BITS} // '';
+-            if ( $KERNEL_BITS eq '' ) {
+-                print <<EOF;
+-WARNING! To build 64-bit package, do this:
+-         $WHERE/Configure linux-ppc64
+-EOF
+-                maybe_abort();
+-            }
+-            return { target => "linux-ppc64" } if $KERNEL_BITS eq '64';
+-
+-            my %config = ();
+-            if (!okrun('echo __LP64__',
+-                       'gcc -E -x c - 2>/dev/null',
+-                       'grep "^__LP64__" 2>&1 >/dev/null') ) {
+-                %config = ( cflags => [ '-m32' ],
+-                            cxxflags =>  [ '-m32' ] );
+-            }
+-            return { target => "linux-ppc",
+-                     %config };
+-        }
+-      ],
++      [ 'ppc64-.*-linux2',        { target => "linux-ppc64" } ],
+       [ 'ppc64le-.*-linux2',      { target => "linux-ppc64le" } ],
+       [ 'ppc-.*-linux2',          { target => "linux-ppc" } ],
+       [ 'mips64.*-*-linux2',


Home | Main Index | Thread Index | Old Index