Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #14249 (assigned enhancement)

Opened 7 months ago

Last modified 6 months ago

Add libXt - X Toolkit Intrinsics

Reported by: mvfranz@… Owned by: ram@…
Priority: Normal Milestone: Port Submissions
Component: ports Version: 1.6.0
Keywords: Cc:

Description

I have created a Portfile to add libXt to macports.

Attachments

Portfile (0.6 kB) - added by mvfranz@… 7 months ago.

Change History

Changed 7 months ago by mvfranz@…

Changed 7 months ago by ram@…

  • milestone set to Port Submissions

Changed 6 months ago by ram@…

  • type changed from defect to enhancement

would you mind being maintainer of this port?

Changed 6 months ago by ram@…

  • owner changed from macports-tickets@… to ram@…
  • status changed from new to assigned

Changed 6 months ago by ram@…

in the dependencies you've commented out port:xorg-libX11 I take it that this port depends on libX11, but builds fine with the system X11?

You can specify this dependency as: lib:libX11.6:xorg-libX11 which will use the system version, if available, or the xorg-libX11 port otherwise.

Is this the case?

Changed 6 months ago by mvfranz@…

I am not expert. I initially had the dependency in there since I thought it would need it. When I was verifying that they worked, I add only the dependencies that were required. To do that, I uninstalled macports and all ports and then installed macports. Then built the port. So, I had X11 installed as it is not part of macports. If people have not installed X11, then I guess the xorg-libX11 would be required.

Is it easy to remove X11 to do a definitive test?

Changed 6 months ago by ram@…

probably by renaming /usr/X11?

Changed 6 months ago by mvfranz@…

I renamed the /usr/X11R6 and tried to install. It failed. I renamed to what is should be and tried to install. It also failed. I added the port as a dependancy and the port installed.

I think that the port:xorg-libX11 is required.

As I mentioned on the list, I had tested these ports before submitting. The version of OS X was different and the dependancy was not required - at least I didn't think it was. I guess, having it will not hurt.

Changed 6 months ago by ram@…

I can't get this to build, it fails during configure with the error:

checking pkg-config is at least version 0.9.0... yes
checking for XT... configure: error: Package requirements (sm x11 xproto kbproto) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.

adding

configure.pkg_config_path ${prefix}/lib/pkgconfig

to the port, to specify the location of the pkg-config files, results in the same error, the only way I can get libXt to build is to use:

configure.pkg_config_path ${prefix}/lib/pkgconfig:${xllprefix}/lib/pkgconfig

but that will link against the system libsm etc... (This is on Intel Leopard, with Xquartz 2.1.4) Are you seeing this error?

Changed 6 months ago by mvfranz@…

The only problems I had yesterday when I built on a clean install was issues with xorg-libXdmcp requiring xorg-xproto.

I am not on Leopard, so that might make a difference.

To debug the different package requirements, I change the configure.ac file pk config line to be 4 individual checks. That way I can find out which on it is really complaining about.

Can the port file be specific to Leopard and Tiger? Macports be able to tell which environment it is building under and choose the correct configuration?

Changed 6 months ago by ram@…

I think this is going to involve a bit of thought on how to resolve properly, I've emailed the Xquartz maintainers to get their input.

Note: See TracTickets for help on using tickets.