Mailinglist Archive: opensuse-buildservice (354 mails)

< Previous Next >
Re: [opensuse-buildservice] Issues installing init scripts
  • From: Andrew Wafaa <andrew@xxxxxxxxxx>
  • Date: Thu, 15 Feb 2007 10:17:13 +0000
  • Message-id: <45D43329.6030600@xxxxxxxxxx>
Nadia Derbey wrote:
> Andrew Wafaa wrote:
>> I've been having issues getting my packages to install the init scripts.
>> I am always left with a build failure stating:
>> + /usr/bin/install -D -m755 init/bongo.init.fc4 -D
>> /var/tmp/build-root-bongo/etc/init.d/bongo
>> /usr/bin/install: cannot stat `init/bongo.init.fc4': No such file or
>> directory
> Looks like your file is missing from the BUILD/<your-package> directory:
> the 1st thing rpmbuild does during the install phase is to go there:
> Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.23204
> + umask 022
> + cd /home/derbeyn/rpmbuild/BUILD
> + cd libtune-0.12
> So (unless you did some 'cd xxx' before trying to install your init
> script), check that init/bongo.init.fc4 has been correctly generated in
> the BUILD directory.
> Hope this helps!
> Regards,
> Nadia

It looks like it moves from $RPM_BUILD_ROOT into /var/tmp/<package>, so
I inserted a cd $RPM_BUILD_ROOT prior to trying to install the init
script but still the same answer :(

I think my %install isn't actually correct, but I'm still learning:

mkdir -p $RPM_BUILD_ROOT/etc/init.d


#find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
#find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp
#sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp >
#find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs
#sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,'
$RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name}
#sed 's,^\.,\%attr(-\,root\,root) ,'
$RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name}
#sed 's,^\.,\%attr(-\,root\,root) ,'
$RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name}

%if 0%{?suse_version}
#cd /usr/src/packages/BUILD/%{name}-%{version}
%{__install} -D -m755 init/bongo.init.suse10 -D
%if 0%{?fedora_version}
#cd /usr/src/redhat/BUILD/%{name}-%{version}
%{__install} -D -m755 init/bongo.init.fc4 -D
%if 0%{?mandriva_version}
#cd /usr/src/rpm/BUILD/%{name}-%{version}
%{__install} -D -m755 init/bongo.init.fc4 -D

Many thanks for the help,


Andrew Wafaa
Business Tel: +44 (0)7919 522451
Personal Tel: +44 (0)7974 074546
e-Mail: andrew@xxxxxxxxxx

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >