[MacPorts] #17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed -----------------------------+---------------------------------------------- Reporter: bugs@capelis.dj | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Keywords: | Port: libtasn1 -----------------------------+---------------------------------------------- See [41968] and #17197 for examples where this is causing problems. Since it will take some time to find all the broken packages and make them not broken, perhaps the following script should be installed into /opt/local/bin/libtasn1-config and set executable as part of the libtasn1 installation: {{{ #!/bin/bash if [[ $1 == "--libs" ]]; then echo "-L/opt/local/lib -ltasn1" fi if [[ $1 == "--cflags" ]]; then echo "-I/opt/local/include" fi if [[ $1 == "--version" ]]; then echo "1.6" fi }}} This will allow things to work until ports get tracked down and updated. Here's a better version I didn't test as well that should respect people's prefixes: {{{ #!/bin/bash PREFIX=`cat /opt/local/etc/macports/macports.conf | grep ^prefix | cut -f 2- | xargs -n 1 echo` if [[ $1 == "--libs" ]]; then echo "-L${PREFIX}/lib -ltasn1" fi if [[ $1 == "--cflags" ]]; then echo "-I${PREFIX}/include" fi if [[ $1 == "--version" ]]; then echo "1.6" fi }}} -- Ticket URL: <http://trac.macports.org/ticket/17253> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Changes (by macsforever2000@macports.org): * owner: macports-tickets@lists.macosforge.org => sfiera@macports.org Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Comment(by bugs@capelis.dj): Actually this one is substantially better as it will try and find the actual configuration file instead of just assuming it's at the standard prefix. The advantage to this being that we can actually try and actually respect prefixes instead of just pretending to. :) {{{ #!/bin/bash IFS=":" for dir in $PATH; do if [ -e `echo ${dir}/etc/macports/macports.conf | sed s/\\\/bin//` ]; then CONF=`echo ${dir}/etc/macports/macports.conf | sed s/\\\/bin//` fi done if [ ! -e ${CONF} ]; then echo "No configuration for macports found" exit fi PREFIX=`cat ${CONF} | grep ^prefix | cut -f 2- | xargs -n 1 echo` if [[ $1 == "--libs" ]]; then echo "-L${PREFIX}/lib -ltasn1" fi if [[ $1 == "--cflags" ]]; then echo "-I${PREFIX}/include" fi if [[ $1 == "--version" ]]; then echo "1.6" fi }}} -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Comment(by jmr@macports.org): Why not use pkg-config in the script? Then there's no need to jump through hoops or hardcode values. -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Comment(by bugs@capelis.dj): Replying to [comment:3 jmr@…]:
Why not use pkg-config in the script? Then there's no need to jump through hoops or hardcode values.
That sounds like exactly what should be done... as for why I didn't do it, well, didn't really know about it. :) {{{ #!/bin/bash if [[ $1 == "--libs" ]]; then echo `pkg-config --libs libtasn1` fi if [[ $1 == "--cflags" ]]; then echo `pkg-config --cflags libtasn1` fi if [[ $1 == "--version" ]]; then echo `pkg-config --version libtasn1` fi }}} Better? -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Comment(by blb@macports.org): Or even {{{ #!/bin/bash ${prefix}/bin/pkg-config $1 libtasn1 }}} -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Comment(by jmr@macports.org): But is `pkg-config --version` different to `libtasn1-config --version`? Might need to translate --version to --modversion. -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Comment(by jmr@macports.org): I fixed gnome-keyring using the patch from http://bugzilla.gnome.org/show_bug.cgi?id=560869 in r42286. Are there any other ports that need libtasn1-config? -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Changes (by devans@macports.org): * cc: mww@macports.org, usx303@googlemail.com (added) Comment: Additional ports that depend on libtasn1 are: {{{ irc/bitlbee mail/msmtp net/gloox security/libprelude sysutils/ntfsprogs textproc/iksemel }}} Ccing maintainers of msmtp and libprelude. Rest are nomaintainer. -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@capelis.dj | Owner: sfiera@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: Resolution: | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Comment(by devans@macports.org): Replying to [comment:10 devans@…]:
Additional ports that depend on libtasn1 are: {{{ irc/bitlbee mail/msmtp net/gloox security/libprelude sysutils/ntfsprogs textproc/iksemel }}}
None of these use libtasn1-config but rather use libgnutls-config and gnutls was fixed in r41968. The dependency on libtasn1 in these files is therefore superfluous -- a dependency on gnutls is sufficient. -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed -----------------------------+---------------------------------------------- Reporter: bugs@… | Owner: sfiera@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: libtasn1 -----------------------------+---------------------------------------------- Comment(by blb@…): Are there any ports remaining that would need this, or should we close this? -- Ticket URL: <http://trac.macports.org/ticket/17253#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed ------------------------------+--------------------------------------------- Reporter: bugs@… | Owner: sfiera@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: libtasn1 | ------------------------------+--------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Assuming this isn't a problem any more based on lack of response to comment:13. -- Ticket URL: <https://trac.macports.org/ticket/17253#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts