So I've never dealt with porting X11 programs before. Since we all use a non-MacPorts X11 now, does that make it acceptable to write outside ${prefix] for X11 ports? Specifically, this submission writes to /usr/X11R6/bin/ and /usr/X11R6/lib (via destroot). Please advise. http://trac.macosforge.org/projects/macports/ticket/7488 Mark
On 2006-10-10 00:38:43 -0700, Mark Duling wrote:
So I've never dealt with porting X11 programs before. Since we all use a non-MacPorts X11 now, does that make it acceptable to write outside ${prefix] for X11 ports? Specifically, this submission writes to /usr/X11R6/bin/ and /usr/X11R6/lib (via destroot). Please advise.
Is there a reason to want to write there? Note that there is no such prefix for Xorg (= X11 R7), so that writing to a different $prefix would make ports more complicate to work with both X11R6 and Xorg. For instance, undex Linux (Debian) with Xorg: vin:~> which xterm /usr/bin/xterm -- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Mark Duling wrote:
So I've never dealt with porting X11 programs before. Since we all use a non-MacPorts X11 now, does that make it acceptable to write outside ${prefix] for X11 ports? Specifically, this submission writes to /usr/X11R6/bin/ and /usr/X11R6/lib (via destroot). Please advise.
I don't know if writing outside ${prefix} is fine, but there is precedence for it in the Xaw3d package, which writes include and library files into /usr/X11R6. Regards, Blair -- Blair Zajac, Ph.D. <blair@orcaware.com> Subversion training, consulting and support http://www.orcaware.com/svn/
Vincent Lefevre <vincent-opdarw@vinc17.org> on Tuesday, October 10, 2006 at 1:41 AM -0800 wrote:
So I've never dealt with porting X11 programs before. Since we all use a non-MacPorts X11 now, does that make it acceptable to write outside ${prefix] for X11 ports? Specifically, this submission writes to /usr/X11R6/bin/ and /usr/X11R6/lib (via destroot). Please advise.
Is there a reason to want to write there?
Note that there is no such prefix for Xorg (= X11 R7), so that writing to a different $prefix would make ports more complicate to work with both X11R6 and Xorg.
For instance, undex Linux (Debian) with Xorg:
vin:~> which xterm /usr/bin/xterm
Ok, the Makefile was poorly written and BINDIR was specifiying both the location for default X11 bin stuff and also where you want the x3270 to go. I fixed that. But what about fonts? I can specify that they be installed in ${prefix}, but the app can't find them. I've tried putting the ${prefix}-my-font-path in the catalogue path in /etc/X11/fs/config but it still can't find them. Also, what about writing to /etc/X11/app-defaults? It seems to me there may be no way around that. Mark
On 2006-10-10 11:14:12 -0700, Mark Duling wrote:
But what about fonts? I can specify that they be installed in ${prefix}, but the app can't find them.
This is probably a config problem. Under Linux, one can have fonts in /usr/local/share/fonts (in addition to /usr/share/fonts) and they are found.
I've tried putting the ${prefix}-my-font-path in the catalogue path in /etc/X11/fs/config but it still can't find them.
Do you mean you're using a font server on your machine? Otherwise I don't know how the font paths are set up under Mac OS X. Perhaps with the xset command from the system and/or user xinitrc. Moreover some applications use /etc/fonts/fonts.conf or $prefix/etc/fonts/fonts.conf (via libraries such as Xft).
Also, what about writing to /etc/X11/app-defaults? It seems to me there may be no way around that.
There is. See XFILESEARCHPATH and XUSERFILESEARCHPATH in the X(7) man page. These environment variables may be set up in the system and/or user xinitrc. -- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Vincent Lefevre <vincent-opdarw@vinc17.org> on Tuesday, October 10, 2006 at 5:45 PM -0800 wrote:
This is probably a config problem. Under Linux, one can have fonts in /usr/local/share/fonts (in addition to /usr/share/fonts) and they are found.
I've tried putting the ${prefix}-my-font-path in the catalogue path in /etc/X11/fs/config but it still can't find them.
Do you mean you're using a font server on your machine?
Otherwise I don't know how the font paths are set up under Mac OS X. Perhaps with the xset command from the system and/or user xinitrc. Moreover some applications use /etc/fonts/fonts.conf or $prefix/etc/fonts/fonts.conf (via libraries such as Xft).
'/usr/X11R6/bin/xset fp+ /my/font/path/' works, but only until X11 is restarted. So you either put that command in your .xinitrc or in the system default /etc/X11/xinit/xinitrc and it is permanent. Sweet!
Also, what about writing to /etc/X11/app-defaults? It seems to me there may be no way around that.
There is. See XFILESEARCHPATH and XUSERFILESEARCHPATH in the X(7) man page. These environment variables may be set up in the system and/or user xinitrc.
I see. Shouldn't MacPorts have a common location for that? Such as ${prefix}/etc/X11/app-defaults? Mark
On 2006-10-10 21:58:43 -0700, Mark Duling wrote:
I see. Shouldn't MacPorts have a common location for that? Such as ${prefix}/etc/X11/app-defaults?
Yes. -- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
participants (3)
-
Blair Zajac
-
Mark Duling
-
Vincent Lefevre