Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#24477 closed defect (fixed)

dbus-glib will not upgrade

Reported by: drnamba@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: muniversal Cc: ryandesign (Ryan Carsten Schmidt), mcl_guard-netmail@…, cooljeanius (Eric Gallager)
Port: dbus-glib

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have problem in upgrading dbus-glib 0.80 to 0.86.

Macbook 2.16G mid2007 10.5.8

I consulted this problem in a mailing list and Ryan suggested as follows:


DEBUG: new fully merged portvariants: universal +


Ok, you're building universal.


---> Configuring dbus-glib for architecture ppc


checking for BSD- or MS-compatible name lister (nm)... no


---> Configuring dbus-glib for architecture i386


checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm


And when doing the ppc part, it couldn't figure out where the "nm" command is (while for the i386 part it could).


---> Building dbus-glib for architecture ppc


../libtool: eval: line 941: syntax error near unexpected token `|'


You'll probably find that on line 941 of the libtool, it uses the $NM variable between two pipes; since the $NM variable is empty here, that makes two pipes in a row, which is a syntax error.


We've seen this several times before in several other ports that use the muniversal portgroup, so we just have to apply the same fix to the dbus-glib port.

Attachments (1)

dbus-glib.txt (55.1 KB) - added by drnamba@… 14 years ago.
Debug message

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by drnamba@…

Attachment: dbus-glib.txt added

Debug message

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…

For example, this same problem was solved in the pango port in r50606. So this same fix could presumably be applied to dbus-glib. (Ignore the lines about ac_cv_header_Carbon_Carbon_h which were specific to pango.)

comment:2 Changed 14 years ago by mcl_guard-netmail@…

Cc: mcl_guard-netmail@… added

Cc Me!

comment:3 Changed 14 years ago by mcl_guard-netmail@…

Defining NM in the port file works. Just test a build. Also I found gtk2 to be affected by the same issue. The patch I made for dbus-glib port file

59a60,62
>     	set merger_configure_env(ppc) "NM='/usr/bin/nm -p'"
>     	set merger_configure_env(ppc64)   "NM='/usr/bin/nm -p'"
>     	
65c68,71
<     } else {    	
---
>     } else {
>     	set merger_configure_env(i386)    "NM='/usr/bin/nm -p'"
>     	set merger_configure_env(x86_64)  "NM='/usr/bin/nm -p'" 
>     	

comment:4 in reply to:  3 Changed 14 years ago by drnamba@…

Replying to mcl_guard-netmail@…:

59a60,62

set merger_configure_env(ppc) "NM='/usr/bin/nm -p'" set merger_configure_env(ppc64) "NM='/usr/bin/nm -p'"

65c68,71 < } else { ---

} else {

set merger_configure_env(i386) "NM='/usr/bin/nm -p'" set merger_configure_env(x86_64) "NM='/usr/bin/nm -p'"

This patch worked for me.

Now I have 0.86. Thanks.

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: muniversal added
Resolution: fixed
Status: newclosed

Hopefully now fixed for all ports in r70156.

comment:6 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.