#67899 closed defect (fixed)

libstemmer: does not respect MACOSX_DEPLOYMENT_TARGET or SDKROOT

Reported by: lukaso (Lukas Oberhuber) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libstemmer

Description

This means it is always built for the current SDK/OS (which breaks ability to build GIMP for older OSs.

otool -l ~/macports-gimp3-x86_64/lib/libstemmer.dylib

Output:

...

Load command 10
      cmd LC_BUILD_VERSION
  cmdsize 32
 platform 1
    minos 13.0
      sdk 13.3
   ntools 1
     tool 3
  version 857.1

...

Attachments (1)

libstemmper-main.log (43.2 KB) - added by lukaso (Lukas Oberhuber) 10 months ago.
Build log from libstemmer (sorry for the file name).

Download all attachments as: .zip

Change History (6)

Changed 10 months ago by lukaso (Lukas Oberhuber)

Attachment: libstemmper-main.log added

Build log from libstemmer (sorry for the file name).

comment:1 Changed 10 months ago by lukaso (Lukas Oberhuber)

It needs something like:

CFLAGS += -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET
LDFLAGS += -Wl,-macosx_version_min,$MACOSX_DEPLOYMENT_TARGET

being added to the GNUMakefile

comment:2 Changed 10 months ago by kencu (Ken)

It's also not UsingTheRightCompiler:

 cc -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations   -c -o compiler/space.o compiler/space.c

comment:3 Changed 10 months ago by kencu (Ken)

adding the Makefile 1.0 PG helps:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libstemmer/libstemmer/work/compwrap/cc/usr/bin/clang -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations   -c -o compiler/space.o compiler/space.c

comment:4 in reply to:  1 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to lukaso:

It needs something like:

CFLAGS += -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET
LDFLAGS += -Wl,-macosx_version_min,$MACOSX_DEPLOYMENT_TARGET

being added to the GNUMakefile

MacPorts automatically sets the MACOSX_DEPLOYMENT_TARGET environment variable to the correct value during all port phases which is sufficient unless the build system is deliberately overriding that elsewhere.

comment:5 Changed 10 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 6d75c22ebad1cf495e688fba8cbc4db9266d6286/macports-ports (master):

libstemmer: use the right deployment target, CC, etc

Also install docs and distribute the copyright notices and license text
as required by the BSD license.

Fixes: #67899

Note: See TracTickets for help on using tickets.