Opened 19 years ago

Closed 19 years ago

#6551 closed defect (fixed)

apr-util: Use variants to link against sqlite and sqlite3 libraries

Reported by: blair (Blair Zajac) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

Hi,

I noticed that if you have sqlite and/or sqlite3 installed when you build apr-util, it'll pick them up and everything that builds against apr-util. such as Subversion, link against sqlite.

$ otool -L /opt/local/lib/libaprutil-1.dylib /opt/local/lib/libaprutil-1.dylib:

/opt/local/lib/libaprutil-1.0.dylib (compatibility version 3.0.0,

current version 3.2.0)

/opt/local/lib/libdb-4.3.dylib (compatibility version 0.0.0, current

version 0.0.0)

/opt/local/lib/libsqlite3.0.dylib (compatibility version 9.0.0, current

version 9.6.0)

/opt/local/lib/libsqlite.0.dylib (compatibility version 9.0.0, current

version 9.6.0)

/opt/local/lib/libexpat.0.dylib (compatibility version 6.0.0, current

version 6.0.0)

/opt/local/lib/libiconv.2.dylib (compatibility version 6.0.0, current

version 6.0.0)

/opt/local/lib/libapr-1.0.dylib (compatibility version 3.0.0, current

version 3.2.0)

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version

88.1.2)

/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version

1.0.0)

/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0)

Can apr-util be changed to explicitly not link against sqlite and sqlite3 unless a variant is requested? I don't know of any packages that make use of sqlite and/or sqlite through apr-util.

Regards, Blair

-- Blair Zajac, Ph.D. <blair@…> Subversion training and consulting http://www.orcaware.com/svn/

Change History (4)

comment:1 Changed 19 years ago by blair (Blair Zajac)

Owner: changed from darwinports-bugs@… to dluke@…

Reassigning to dluke@….

comment:2 Changed 19 years ago by blair (Blair Zajac)

Summary: Have apr-util use variants to link against sqlite and sqlite3 librariesapr-util: Use variants to link against sqlite and sqlite3 libraries

I should note that even if you don't have Darwin Port's sqlite or sqlite3 installed, I'm pretty certain on 10.4 it'll pick up Apple's sqlite3 from /usr/include/sqlite3.h /usr/lib/libsqlite3.dylib, so it would be nice to disable this linking.

Regards, Blair

comment:3 Changed 19 years ago by danielluke (Daniel J. Luke)

Status: newassigned

(In reply to comment #0)

I noticed that if you have sqlite and/or sqlite3 installed when you build apr-util, it'll pick them up and everything that builds against apr-util. such as Subversion, link against sqlite.

... right ... but does this break anything?

I'll add a +no_sqlite and/or +no_sqlite3 variants to disable linking for people who really want to.

comment:4 Changed 19 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: assignedclosed

I added a +no_sqlite variant that disables sqlite2 and sqlite3 linking.

Note: See TracTickets for help on using tickets.