[opensuse-buildservice] Differences local build - build service

Hi, I face the problem that a package build locally on my machine orks fine, but build on the build service fails. The problem appears on the installation of the startscript. with the build from the build service, the following appears: --- z60m:/home/axel/Desktop # rpm -ihv hylafax-4.3.4-2.1.i586.rpm Preparing... ########################################### [100%] 1:hylafax ########################################### [100%] /var/tmp/rpm-tmp.71556: line 30: etc/init.d/hylafax: Datei oder Verzeichnis nicht gefunden insserv: etc/init.d/hylafax: No such file or directory ######################################################### # HylaFAX installation complete! # # # # You should now run /usr/sbin/faxsetup to # # create or update HylaFAX configuration # # before you can begin using the software. # # # ######################################################### z60m:/home/axel/Desktop # --- If I build the package on my local PC, the installation works fine. What can be the problem? Thanks Axel --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 21-05-2007 at 19:31, Axel Braun <axel.braun@gmx.de> wrote: Hi,
I face the problem that a package build locally on my machine orks fine, but
build on the build service fails.
The problem appears on the installation of the startscript. with the build from the build service, the following appears:
--- z60m:/home/axel/Desktop # rpm -ihv hylafax-4.3.4-2.1.i586.rpm Preparing... ########################################### [100%] 1:hylafax ########################################### [100%] /var/tmp/rpm-tmp.71556: line 30: etc/init.d/hylafax: Datei oder Verzeichnis nicht gefunden insserv: etc/init.d/hylafax: No such file or directory ######################################################### # HylaFAX installation complete! # # # # You should now run /usr/sbin/faxsetup to # # create or update HylaFAX configuration # # before you can begin using the software. # # # ######################################################### z60m:/home/axel/Desktop # ---
It looks to me like one of the scripts break a bit out of the chroot jail or one of the files does not get copied to the right place (you probably copy it to /etc/init.d instead of $BUILDROOT/etc/init.d) try to compare the filelist of the both resultng RPMs (your local one and the one on the server); this might give some hints. Dominique -- TMF is a global management and accounting outsourcing firm with 72 offices in 56 countries and over 2,000 professionals (February 2007). TMF is expanding rapidly throughout the world. Learn more about our unique network and our services and visit our website at www.tmf-group.com. The information contained in this e-mail communication is confidential and solely intended for the person to whom it is addressed. If someone other than the intended recipient should receive or come into possession of this e-mail communication, he/she will not be entitled to read, disseminate, disclose or duplicate it. If you are not the intended recipient, you are requested to notify the sender and to destroy the original e-mail communication. TMF is neither liable for the correct and complete transmission of the information contained in this e-mail communication nor for any delay in its receipt. This footnote also confirms that this email message has been checked for the presence of computer viruses. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Hi, Am Dienstag 22 Mai 2007 schrieb Dominique Leuenberger:
z60m:/home/axel/Desktop # rpm -ihv hylafax-4.3.4-2.1.i586.rpm Preparing... ########################################### [100%] 1:hylafax ########################################### [100%] /var/tmp/rpm-tmp.71556: line 30: etc/init.d/hylafax: Datei oder
It looks to me like one of the scripts break a bit out of the chroot jail or one of the files does not get copied to the right place (you probably copy it to /etc/init.d instead of $BUILDROOT/etc/init.d)
try to compare the filelist of the both resultng RPMs (your local one and the one on the server); this might give some hints.
Indeed, the build service includes the file /etc/rc.d/init.d/hylafax whereas the local build puts in /etc/init.d/hylafax looks like the build system has a slightly different system environment, which is deceted from: %define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0) further down the specfile: %if %{is_suse} %define initdir /etc/init.d %define faxspool %{_var}/spool/fax %else %define sles_version 0 %define suse_version 0 %define initdir /etc/rc.d/init.d %endif In the build-enviroment, what is given back for /etc/SuSE-release in a 10.2 environment? Cheers Ax --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 2007-05-22 13:38:45 +0200, Axel Braun wrote:
%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
%if 0%{?suse_version} you dont need that custom hack. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Axel Braun wrote:
Hi,
Am Dienstag 22 Mai 2007 schrieb Dominique Leuenberger:
z60m:/home/axel/Desktop # rpm -ihv hylafax-4.3.4-2.1.i586.rpm Preparing... ########################################### [100%] 1:hylafax ########################################### [100%] /var/tmp/rpm-tmp.71556: line 30: etc/init.d/hylafax: Datei oder
It looks to me like one of the scripts break a bit out of the chroot jail or one of the files does not get copied to the right place (you probably copy it to /etc/init.d instead of $BUILDROOT/etc/init.d)
try to compare the filelist of the both resultng RPMs (your local one and the one on the server); this might give some hints.
Indeed, the build service includes the file /etc/rc.d/init.d/hylafax
whereas the local build puts in /etc/init.d/hylafax
looks like the build system has a slightly different system environment, which is deceted from:
%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
Use the %suse_version macro instead, the build script doesn't install the openSUSE-relase package (b/c there's no *real* need to have it in a build root). Also have a look at build and osc build, that should give you the same build environment as the buildservice. Building in live system is usually not the recommended way ;) Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Axel Braun
-
Dominique Leuenberger
-
Marcus Rueckert
-
Michal Marek