[MacPorts] #41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la'
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' --------------------------+--------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: mavericks | Port: rpm --------------------------+--------------------- rpm fails to build on Mavericks, saying: {{{ libtool: link: cannot find the library `/opt/local/lib/libpopt.la' or unhandled argument `/opt/local/lib/libpopt.la' }}} On Mavericks by default MacPorts deletes .la files because they are thought not to be generally useful and cause some problems, but apparently rpm's build system specifically looks for libpopt's (nonexistent) .la file. Perhaps the rpm build system can be patched to not do that. It's also conceivable that this is a bug in popt somehow but I didn't find any occurrences of ".la" in the files the popt port installs. -- Ticket URL: <https://trac.macports.org/ticket/41697> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by ryandesign@…): It's definitely the rpm port's fault, specifically the file patch- configure which has these sections: {{{ @@ -27309,8 +27309,8 @@ if test $ac_cv_lib_popt_poptGetContext = yes; then WITH_POPT_SUBDIR= - WITH_POPT_INCLUDE= - WITH_POPT_LIB="-lpopt" + WITH_POPT_INCLUDE='-I${prefix}/include' + WITH_POPT_LIB='${prefix}/lib/libpopt.la' fi @@ -27545,8 +27545,8 @@ _ACEOF WITH_SQLITE3_SUBDIR= - WITH_SQLITE3_INCLUDE= - WITH_SQLITE3_LIB="-lsqlite" + WITH_SQLITE3_INCLUDE='-I${prefix}/include' + WITH_SQLITE3_LIB='${prefix}/lib/libsqlite3.la' DBLIBSRCS="$DBLIBSRCS sqlite.c" fi }}} These were added in r26411 to "fix the linking issues with popt/sqlite3" but I'm not sure what that means now. I would say the `WITH_POPT_LIB`/`WITH_SQLITE3_LIB` lines were better before the patch and should be changed back. I have not yet tested if this fixes the problem. -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by egall@…): Couldn't we just use `destroot.delete_la_files no` in the meantime? -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Changes (by larryv@…): * cc: mvillalobos@… (added) Comment: Has duplicate #41742. -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by ryandesign@…): Replying to [comment:4 egall@…]:
Couldn't we just use `destroot.delete_la_files no` in the meantime?
But that would have to be done in the popt port, which would then have to be rebuilt. I'd rather fix the actual bug, which is in the rpm port. -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by viktor@…): Are there any work arounds to get rpm installed? -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by apapia@…): Replying to [comment:11 viktor@…]:
Are there any work arounds to get rpm installed?
I was able to install it with brew: brew install rpm -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by mat.boniface@…): Replying to [comment:11 viktor@…]:
Are there any work arounds to get rpm installed?
I've successfully installed rpm 5.1 {{{ sudo port install rpm51 }}} -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by afb@…): The build doesn't work, now that MacPorts is deleting the libtool files at random.\\ The patch was added to avoid the build error when trying using an external library: {{{ No rule to make target `-lpopt' }}} Probably also breaks static linking of anything trying to use librpm, but that's minor...\\ (since you need to include libiconv and libintl, in order to link against libpopt, that is) -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by viktor@…): Replying to [comment:13 mat.boniface@…]:
Replying to [comment:11 viktor@…]:
Are there any work arounds to get rpm installed?
I've successfully installed rpm 5.1
{{{ sudo port install rpm51 }}}
Thank you !!! It indeed works -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Comment (by afb@…): Port rpm51 (and rpm50) are replaced by rpm52, in case you didn't notice... RPM 5.2 is obsolete, but upgrading requires someone to care (see #38456) -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#41697: rpm: libtool: link: cannot find the library `/opt/local/lib/libpopt.la' ---------------------------+----------------------- Reporter: ryandesign@… | Owner: n3npq@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: mavericks Port: rpm | ---------------------------+----------------------- Changes (by afb@…): * status: new => closed * resolution: => fixed Comment: Fixed, r115687. -- Ticket URL: <https://trac.macports.org/ticket/41697#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts