[MacPorts] #12911: OpenSSL doesn't patch with +universal variant

MacPorts trac at macosforge.org
Tue Jan 8 13:54:31 PST 2008


#12911: OpenSSL doesn't patch with +universal variant
--------------------------------+-------------------------------------------
  Reporter:  frew at stanford.edu  |       Owner:  mww at macports.org 
      Type:  defect             |      Status:  closed           
  Priority:  Normal             |   Milestone:  Port Bugs        
 Component:  ports              |     Version:  1.5.0            
Resolution:  fixed              |    Keywords:  openssl universal
--------------------------------+-------------------------------------------
Comment (by rasmus at lerdorf.com):

 Replying to [comment:5 mww at macports.org]:
 > yes it does, but port(1) doesn't feature configurability which
 architectures to build nor a way to read this option;

 Yet, you mean?  I thought the plan was to move towards a user-configurable
 set of architectures.  Or is the plan to go to all 4 and not let the user
 tweak it?  Also, as I am sure you are aware, the Portfile has:

        foreach arch {i386 ppc} {
            system "cd ${workpath}/${arch} && ./Configure darwin-${arch}-cc
 ${configure.pre_args} ${configure.args}"
        }

 Looking at the commented out foreach loops in that file that contain all 4
 architectures, it sort of suggests that you might be able to add x86_64 to
 the ./Configure loop which of course won't work because that creates
 darwin-x86_64-cc and the build will fail since it should be
 darwin64-x86_64-cc

 Even if people figure that out, they get bitten by the fact that openssl
 spits out different versions of /opt/local/include/openssl/opensslconf.h
 between the 32 and 64-bit builds.  The differences being:

 @@ -130,3 +130,3 @@
  #ifndef DES_LONG
 -#define DES_LONG unsigned long
 +#define DES_LONG unsigned int
  #endif
 @@ -136,3 +136,3 @@
  #define CONFIG_HEADER_BN_H
 -#define BN_LLONG
 +#undef BN_LLONG

 @@ -144,5 +144,5 @@
   * for debuging the bignum libraries */
 -#undef SIXTY_FOUR_BIT_LONG
 +#define SIXTY_FOUR_BIT_LONG
  #undef SIXTY_FOUR_BIT
 -#define THIRTY_TWO_BIT
 +#undef THIRTY_TWO_BIT
  #undef SIXTEEN_BIT
 @@ -160,3 +160,3 @@
  #define CONFIG_HEADER_BF_LOCL_H
 -#define BF_PTR
 +#define BF_PTR2
  #endif /* HEADER_BF_LOCL_H */

 Is there a plan for stuff like that?  Like an include64 directory or
 something?

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/12911#comment:6>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list