[MacPorts] #63347: imlib2 does not find libbzip2

MacPorts noreply at macports.org
Sun Aug 8 17:46:49 UTC 2021


#63347: imlib2 does not find libbzip2
--------------------------+--------------------
  Reporter:  ballapete    |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.1
Resolution:               |   Keywords:
      Port:  imlib2       |
--------------------------+--------------------

Comment (by ballapete):

 On Big Sur, still Version 11.5, I could see that the previously installed
 version, @1.7.1_1, has `bzip2` support:

 {{{
 pete 384 /\ port contents imlib2 | grep bz2
   /opt/local/lib/imlib2/loaders/bz2.so
 pete 385 /\ otool -L   /opt/local/lib/imlib2/loaders/bz2.so
 /opt/local/lib/imlib2/loaders/bz2.so:
         /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0,
 current version 1.0.8)
         /opt/local/lib/libImlib2.1.dylib (compatibility version 9.0.0,
 current version 9.1.0)
         /opt/local/lib/libfreetype.6.dylib (compatibility version 24.0.0,
 current version 24.4.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1292.0.0)
         /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0,
 current version 11.0.0)
         /opt/local/lib/libX11-xcb.1.dylib (compatibility version 2.0.0,
 current version 2.0.0)
         /opt/local/lib/libX11.6.dylib (compatibility version 11.0.0,
 current version 11.0.0)
         /opt/local/lib/libxcb.1.dylib (compatibility version 3.0.0,
 current version 3.0.0)
         /opt/local/lib/libxcb-shm.0.dylib (compatibility version 1.0.0,
 current version 1.0.0)
 }}}

 With new version `1.7.2_0` I can see:

 {{{
 checking whether to enable bzip2 support... auto
 checking for BZ2... no
 configure: WARNING: *** Native bz2 support will not be built (bzip2 not
 found) ***
 .
 .
 .

 ------------------------------------------------------------------------
 imlib2 1.7.2
 ------------------------------------------------------------------------

 Configuration Options Summary:

 Image loaders:
   JPEG....................: yes
   PNG.....................: yes
   TIFF....................: yes
   GIF.....................: yes
   WEBP....................: yes
   ZLIB....................: yes
   BZIP2...................: no
   ID3.....................: yes

 }}}

 and of course `imlib2-1.7.2/src/modules/loaders` does not contain a
 `bz2.so` loader. So the provider of the `binary port package` must be
 applying some tricks… To prove this I built the port with the line

 {{{
  46 configure.args      --disable-amd64 LDFLAGS="-t -v"
 }}}

 in `Portfile` which proved that `libbzip2` was not introduced by some
 side-effect. Again, adding `BZ2_LIBS=-lbz2 BZ2_CFLAGS="-L/opt/local/lib"`
 the port is built with `libbzip2`.

-- 
Ticket URL: <https://trac.macports.org/ticket/63347#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list