Since I don't have root access on the build machine, a make install as another user on the build machine will not set the setuid, owner and group correctly. It looks to me like using build-bindist requires a make install first anyway, and Xinstall.sh will only use the permissions set in the tar files. Therefore, to avoid having to do a make install on the target machine, I'm planning to tar up the make install (with DESTDIR) on the build machine. Then after unpacking the tar file on the target machine, change the set uid and gid on the files that need it, and also the correct user and group on all files (can't change owner or group on build machine), which would be done from a script. If I am wrong in my deductions or if there is a better way, I would welcome anybody informing me so.
>From a previous install on a target machine, most files had owner root and
group staff, except for directories which are all group other. Exceptions
to this and uid and gid permissions I found to be:
---------------------------
group other
/etc/X11/rstart/commands/@List
/etc/X11/rstart/commands/ListContexts
/etc/X11/rstart/commands/ListGenericCommands
/etc/X11/rstart/commands/x11r6/@List
/etc/X11/rstart/commands/x11r6/LoadMonitor
/etc/X11/rstart/commands/x11r6/Terminal
/etc/X11/rstart/contexts/@List
/etc/X11/rstart/contexts/default
/etc/X11/rstart/contexts/x11r6
/etc/X11/xkb/keycodes/ere
/etc/X11/xkb/keycodes/xfree86.caps./lib/X11/rstart/commands/@List
/usr/X11R6/lib/X11/rstart/commands/ListContexts
/usr/X11R6/lib/X11/rstart/commands/ListGenericCommands
/usr/X11R6/lib/X11/rstart/commands/x11r6/@List
/usr/X11R6/lib/X11/rstart/commands/x11r6/LoadMonitor
/usr/X11R6/lib/X11/rstart/commands/x11r6/Terminal
/usr/X11R6/lib/X11/rstart/contexts/@List
/usr/X11R6/lib/X11/rstart/contexts/default
/usr/X11R6/lib/X11/rstart/contexts/x11r6
/usr/X11R6/man/windex
------------------------
group sys
/usr/X11R6/bin/xload
--------------------------
uid
/usr/X11R6/bin/xterm
/usr/X11R6/bin/XFree86
--------------------------
gid
/usr/X11R6/bin/xload
--------------------------------
Please note the following in host.def:
#define XnestServer NO
#define XVirtualFramebufferServer NO
#define XprtServer NO
#define BuildCID NO
#define BuildFreeType NO
#define BuildXTrueType NO
#define BuildFonts NO
#define MakeLocalFontDir NO
#define BuildGlxExt NO
Regards,
Lindsay Haigh
Guido Guenther
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
rg> cc:
Sent by: Subject: Re: Building binaries for
distribution
[EMAIL PROTECTED]
ree86.Org
23/06/03 17:48
Please respond
to devel
On Mon, Jun 23, 2003 at 10:20:34AM +1000, [EMAIL PROTECTED] wrote:
> Is there a way to build binaries for distribution from the 4.3.0 source
> tree, similar to the ones made publicly available? I am using XFree86
I think that's what the
xc/programs/Xserver/hw/xfree86/etc/bindist/build-bindist
script is for. You might have to tweak the Solaris/ subdir in the same
directory a bit though. Alternatively you can do a 'make
DESTDIR=/tmp/bla install' and simply tar together /tmp/bla's contents
and unpack it on the target machine later.
-- Guido
(See attached file: atttjl5i.dat)
atttjl5i.dat
Description: Binary data
