|
From: Bryan G. <Bry...@HP...> - 2007-11-21 14:47:05
|
Bruno,
On Wed, Nov 21, 2007 at 10:38:09AM +0000, Cornec, Bruno (Linux Consultant) wrote:
> Bruno Cornec said on Wed, Nov 21, 2007 at 10:38:38AM +0100:
> my /etc/linuxcoe-sd/includes/config.state is probably wrong:
> #! /bin/sh
>
> # from previous configure run
> export prefix=/var/www/linuxcoe-sd
> export exec_prefix=${prefix}
> export bindir=${exec_prefix}/bin
> export sbindir=${exec_prefix}/sbin
> export libexecdir=${exec_prefix}/libexec
> export datadir=${datarootdir}
> export datarootdir=${prefix}/share
> export sysconfdir=/etc/linuxcoe-sd
> export sharedstatedir=${prefix}/com
> export localstatedir=/var
> export libdir=${exec_prefix}/lib
> export includedir=${prefix}/include
> export oldincludedir=/usr/include
> export infodir=${datarootdir}/info
> export mandir=/usr/share/man
> export PACKAGE_NAME=linuxcoe-sd
> export PACKAGE_VERSION=4.1
> export webalias=SystemDesigner
> export httpdcfgdir=/etc/httpd/conf.d
> export docrootdir=/var/www/html
> export httpd_user=apache
> export httpd_group=apache
> export sudoers_cfg=/etc/sudoers
> export TAR=/bin/tar
> export CPIO=/bin/cpio
> export GZIP=/bin/gzip
> export GUNZIP=/bin/gunzip
> export DIFF=/usr/bin/diff
> export FIND=/usr/bin/find
> export MKISOFS=SKIP
> export PERL=/usr/bin/perl
> export PERLMOD=@PERLMOD@
I have fixed this (basically forgot to have configure publish this
value).
> export PALO=NONE
> export SENDMAIL=SKIP
> export APACHE=SKIP
> export APACHECTL=SKIP,
I have fixed the errant comma.
> export APACHE2CTL=SKIP
> export SUDOERS=DOIT
> export SUDO=SKIP
>
> Shouldn't those SKIP be replaced by what is also in binaries.pm ?
As in previous message, nope (it's meant to capture what we were
told to do).
> The diff with the working machine gives (< works, > doesn't)
>
> 13c13
> < export localstatedir=/var/lib
> ---
> > export localstatedir=/var
Since you use:
--localstatedir=%{_localstatedir}
is it possible that the differing build platform's rpm is doing
this to you?
> 32,33c32,35
> < export FIND=/bin/find
> < export MKISOFS=/usr/bin/mkisofs
> ---
> > export FIND=/usr/bin/find
> > export MKISOFS=SKIP
> > export PERL=/usr/bin/perl
> > export PERLMOD=@PERLMOD@
> 35,38c37,42
> < export SENDMAIL=/usr/sbin/sendmail
> < export APACHECTL=/usr/sbin/apachectl
> < export APACHE2CTL=NONE
> < export SUDO=/usr/bin/sudo
> ---
> > export SENDMAIL=SKIP
> > export APACHE=SKIP
> > export APACHECTL=SKIP,
> > export APACHE2CTL=SKIP
> > export SUDOERS=DOIT
> > export SUDO=SKIP
> 74c74
>
> Maybe the PERLMOD,localstatedir,MKISOFS,SENDMAIL,APACHE,APACHECTL,
> APACHE2CTL,SUDO lines are wrong too ?
> It seems that that script is called by post-actions:
> /var/www/linuxcoe-sd/bin/post-actions: test -f "/etc/linuxcoe-sd/includes/config.state" && . /etc/linuxcoe-sd/includes/config.state
Yes, this is the way I pass choices from build time to install time
(since can be on totally different systems).
> I'm also skeptic by that one:
> diff /var/www/linuxcoe-sd/includes/sysdes_paths.pm /mnt//var/www/linuxcoe-sd/includes/sysdes_paths.pm
> 14c14
> < $VAR="/var/lib";
> ---
> > $VAR="/var";
So that is consistent with the above differences, and matches my
expectations since:
$VAR="@localstatedir@";
is what I do.
> (which corresponds to the difference mentioned above in localstatedir)
>
> I also found another issue:
> # ls -al /var/lib/linuxcoe-sd/profiles/
> total 20
> drwxrwsr-x 2 apache apache 4096 Aug 30 02:09 .
> drwxrwsr-x 3 apache apache 4096 Aug 30 02:09 ..
> lrwxrwxrwx 1 root apache 29 Aug 30 02:09 profiles -> /var/lib/linuxcoe-sd/profiles
>
> So I created the following:
> # ln -s /var/log/linuxcoe-sd /var/lib/logs
>
> But still no log file :-(
> [root@localhost images]# find / -name sysdes.log
Hmm.
> [root@localhost images]#
>
> Still searching ;-)
In a default install (letting localstatedir remain as ${prefix}/var),
/usr/local/linuxcoe-sd/var/logs -> /var/log/linuxcoe-sd
and sysdes.log logfile would be in that directory
/usr/local/linuxcoe-sd/var/profiles -> /var/lib/linuxcoe-sd/profiles
and the actual profiles would be in that directory
but with your config above (my guesses would be):
/var/logs -> /var/log/linuxcoe-sd
/var/profiles -> /var/lib/linuxcoe-sd/profiles
bryang
|