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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Dec 7, 2008, at 7:50 PM, bpathakis@xxxxxxxxxxx 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, like a pointer to the package that is causing the segfault, would help. There's
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


hth

73 de Jeff

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux