contrib/redhat/openssh.spec question

Rachit Siamwalla rachit at ensim.com
Thu Jan 11 17:24:09 EST 2001


I have a couple of questions regarding openssh.spec and the rpm that
gets generated from it. I am using 2.3.0p1

1. Why is openssl a prereq? openssh statically links to openssl during
build by default (rightfully so, you don't want your security library a
shared object if possible)

2. I don't understand the following line in the spec file during the
install step (it makes it not build for me):

%{makeinstall} \
	sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/ssh \
	libexecdir=$RPM_BUILD_ROOT%{_libexecdir}/openssh \
	DESTDIR=/  # Hack to disable key generation

The problem here is that make install will then put everything in the
root directory (/usr/bin, etc.) instead of
/usr/src/redhat/INSTALL/usr/bin, etc. (depends on RPM_ROOT) and thus in
later stages of the RPM build, it won't find those files. Shouldn't DEST
be $RPM_BUILD_ROOT and the others blank?

One thing that might have affected stuff was i changed in the spec from
%{makeinstall} to "make install". With rpm 3.0.3, i guess doesn't have
that defined by default (i doubt this affects anything though).

3. Why is openssl-devel a BuildPreReq?





More information about the openssh-unix-dev mailing list