Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#14249 closed submission (fixed)

Add libXt - X Toolkit Intrinsics

Reported by: mvfranz@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: xorg-libXt

Description

I have created a Portfile to add libXt to macports.

Attachments (2)

Portfile (609 bytes) - added by mvfranz@… 16 years ago.
Portfile.2 (965 bytes) - added by myschizobuddy@… 15 years ago.
working portfile

Download all attachments as: .zip

Change History (24)

Changed 16 years ago by mvfranz@…

Attachment: Portfile added

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

Milestone: Port Submissions

comment:2 Changed 16 years ago by skymoo (Adam Mercer)

Type: defectenhancement

would you mind being maintainer of this port?

comment:3 Changed 16 years ago by skymoo (Adam Mercer)

Owner: changed from macports-tickets@… to ram@…
Status: newassigned

comment:4 Changed 16 years ago by skymoo (Adam Mercer)

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?

comment:5 Changed 16 years 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?

comment:6 Changed 16 years ago by skymoo (Adam Mercer)

probably by renaming /usr/X11?

comment:7 Changed 16 years 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.

comment:8 Changed 16 years ago by skymoo (Adam Mercer)

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?

comment:9 Changed 16 years 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?

comment:10 Changed 16 years ago by skymoo (Adam Mercer)

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.

comment:11 Changed 15 years ago by myschizobuddy@…

this is needed to build the latest webkit build. any updates on this port

comment:12 Changed 15 years ago by myschizobuddy@…

its categories have to be "X11 devel"

comment:13 Changed 15 years ago by myschizobuddy@…

ok port:xorg-libX11 is required for this to build on leopard. beside that this is good to go

comment:14 Changed 15 years ago by myschizobuddy@…

I guess we can have a variant if users want to build against the system or not

Changed 15 years ago by myschizobuddy@…

Attachment: Portfile.2 added

working portfile

comment:15 Changed 15 years ago by myschizobuddy@…

can someone test this and commit it

comment:16 Changed 15 years ago by skymoo (Adam Mercer)

Getting the error:

Error: Dependency 'xorg-xf86bigfontproto' not found.
Error: Status 1 encountered during processing.

xorg-xf86bigfontproto is not in the ports tree and is being brought in as a dependency of xorg-proto. This is ticket #15387

comment:17 Changed 15 years ago by myschizobuddy@…

i just tested this on leopard 10.5.5 and it didn't mention xorg-xf86bigfontproto and compiled correctly

comment:18 Changed 15 years ago by skymoo (Adam Mercer)

I'm on 10.5.5 as well, did you already have the xorg-proto port installed? I didn't and this port expresses a dependency on xorg-xf86bigfontproto:

$ port deps xorg-proto | grep xf86bigfontproto
        xorg-xf86bigfontproto
$

comment:19 Changed 15 years ago by myschizobuddy@…

OK i have posted a new port for xf86bigfontproto see #16878

comment:20 Changed 15 years ago by skymoo (Adam Mercer)

Port: xorg-libXt added
Resolution: fixed
Status: assignedclosed

committed in r40855, thanks.

comment:21 Changed 15 years ago by jmroot (Joshua Root)

Type: enhancementsubmission

comment:22 Changed 15 years ago by (none)

Milestone: Port Submissions

Milestone Port Submissions deleted

Note: See TracTickets for help on using tickets.