Segmentation fault when try run rpm to install init.d scripts

Jeff Johnson n3npq at
Mon Dec 8 01:03:55 UTC 2008

On Dec 7, 2008, at 7:50 PM, bpathakis at wrote:

> Hi,
>   I'm try to build a simple rpm to install a dbora script on  
> sles10.  The rpm builds fine (with rpmbuild -ba), however when I try  
> to install it, I get a Segmentation Fault.  My spec file looks like:

A backtrace of the rpm segfault would help. Even better, a reproducer,  
a pointer to the package that is causing the segfault, would help.  
very little info about segfaults in spec file recipes.

> Name: oracle
> Version: 1
> Release: 1
> Source0: %{name}-%{version}.tar.gz
> License: GPL
> Group: Developer/Tools
> BuildRoot: /var/tmp/%{name}-root
> %description
> Scripts for starting and stopping oracle databases and listeners on  
> boot.
> find-{requires,provides}
> %_use_internal_dependency_generator     0

This isn't doing what you think its doing.

The syntax in spec files is
	%define _use_internal_dependency_generator 0
and (iirc) you may not even have to specify on SLES10.

Ask SuSE, not me, whether unsetting  
%_use_internal_dependency_generator is needed.

> %prep
> %setup -q
> %build
> rm -rf $RPM_BUILD_ROOT
> mkdir -p $RPM_BUILD_ROOT/etc/rc.d/
> %install
> cp dbora $RPM_BUILD_ROOT/etc/rc.d
> #ln /etc/init.d/oracle /etc/rc.d/rc5.d/S01oracle
> #ln /etc/init.d/oracle /etc/rc.d/rc5.d/K21oracle
> #ln /etc/init.d/oracle /etc/rc.d/rc3.d/S01oracle
> #ln /etc/init.d/oracle /etc/rc.d/rc3.d/K21oracle
> %clean
> #rm -rf $RPM_BUILD_ROOT
> %files
> %defattr(-,root,root)
> %{_sysconfdir}/rc.d/dbora


73 de Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4664 bytes
Desc: not available
Url : 

More information about the Rpm-list mailing list