New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12174 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

Unnecessary build.env in sqlite3 Portfile

Reported by: jmpp@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.4.40
Keywords: Cc: mww@…, jmpp@…
Port:

Description

The current SQLite3 Portfile defines the following build environment:

build.env               CFLAGS="-I${prefix}/include/ -DSQLITE_ENABLE_LOCKING_STYLE=1" \
                                LDFLAGS="-L${prefix}/lib"

I tried building without the -I${prefix}/include/ and -L${prefix}/lib declarations and found linkage of the build results to be unaltered, so Id' say those can be safely removed (MacPorts now passes them by default out of the box). In doing that, I moved the remaining compiler macro to the configure environment following the new syntax:

configure.cflags-append                -DSQLITE_ENABLE_LOCKING_STYLE=1

But also found that that's rather unnecessary, as SQLite3's build magic still passes that particular compiler macro to the build calls even if we don't list it explicitly in CFLAGS. The attached Portfile patch moves the macro to configure.env per the syntax above even if for safety, but I would say we're safe removing it altogether (the attached destroot.log file catches all the output of the destroot run and demonstrates the macro is being passed even though it's neither in configure.env, DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CFLAGS='-O2' LDFLAGS='-L/opt/local/lib', nor in build.env, DEBUG: Environment:).

-jmpp

Attachments

Portfile.diff Download (434 bytes) - added by jmpp@… 5 years ago.
destroot.log Download (49.9 KB) - added by jmpp@… 5 years ago.

Change History

Changed 5 years ago by jmpp@…

Changed 5 years ago by jmpp@…

Changed 5 years ago by jmpp@…

  • milestone changed from Port Enhancements to Port Bugs

Committed in r26620 due to maintainer timeout.

-jmpp

Changed 5 years ago by jmpp@…

  • status changed from new to closed
  • resolution set to fixed

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.