https://bugzilla.novell.com/show_bug.cgi?id=393413 Summary: openssh-5.0p1-16 _appears_ to have errors during rpmbuild Product: openSUSE 11.0 Version: Factory Platform: x86-64 OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse@tlinx.org QAContact: qa@suse.de Found By: Customer Background: I grabbed the source rpm for openssh-5.0p1-16 to try to build on my current 10.3 machine(s)...my motivation was(is) to apply the ssh/scp high performance patches from (http://www.psc.edu/networking/projects/hpn-ssh/) which has patches for 4.7p1 and 5.0p1. Since 10.3 contained 4.6, I figured I needed to upgrade to 4.7 or 5.0 and decided to examine the suse 11 openssh package as a first starting point thinking it would likely have the next version up from 4.6 (4.7?). It contained 5.0p1 -- which was fine for me, wasn't prefocused on 4.7 or 5.0. It was easier to apply the HPN patch, BTW, to the openssh tarball, then apply the the open-suse patches listed in the .spec file. Patching it that way gives 1 patch that doesn't apply completely cleanly -- and that's in the Makefile where it adds the AUDIT libraries for the SuSE build. That's easily done by hand. Building against 10.3 -- I believe the krb-gssapi libs have advanced in 11.0, as there was a missing gss function I couldn't isolate, but this is NOT the problem. To get around that, I changed the configure statement in the .spec file to not include the optional krb support (as it's not necessary for my setup). I still end up with 1 serious, and (I believe) 1 minor bug in building. Am also mentioning a specfile style 'violation'... Problems: The serious bug is building a prog/utility called "ssh-keyconverter". It is built from the .spec file it's own 'make' operation, at or around line 221 in the spec file from a specline: (cd converter; make install DESTDIR=$RPM_BUILD_ROOT/) Later, a man page that is supposed to be generated in that makefile is referenced for 'install' -- Minor consistency NOTE: the %attr line (line 271) to install the manpage doesn't match the format of the surrounding %attr lines. All the other attr lines use the macro %{_mandir} as the base to install manpages. This one attr line, for no good reason that I can ascertain, uses the "fixed-string" for the mandir base instead of using the macro. While this works (for now), it is bad form and will cause problems if the macro _mandir is ever changed (as the line using the literal won't match). This is *trivial* to change. Anyway, when rpm tries to package that file, it can't find the file. I tracked it back to a failure in the "make install" under the 'converter' directory at specfile line 221. It fails during the link phase -- can't find the various "pthreads(7)/pthread_X(3)" related commands that are POSIX standard threads. Usually (and on suse10.3), pthreads are in libpthreads which needs to be specified on the link(gcc|ld) command line (-lpthreads). Instead there are librarys specified (-l) for libs{ssh, dl, wrap, util, z nsl, crypt and ssl}. Minor prob: In the same spec file, as rpm is looking for the packages 'requires' list, I see an error message that indicates it's looking for the openssh spec file in "SOURCES", not "SPECS": Processing files: openssh-debuginfo-5.0p1-16 Processing files: openssh-askpass-5.0p1-16 Finding Provides: /usr/lib/rpm/find-provides openssh Finding Requires: /usr/lib/rpm/find-requires openssh sed: can't read /usr/src/packages/SOURCES/openssh.spec: No such file or director y Finding Supplements: /usr/lib/rpm/find-supplements openssh Provides: openssh:/usr/lib64/ssh/ssh-askpass ---- I don't think any rpm-generation procedures should be looking in SOURCES for the package spec file. Can't say if this causes a problem in the final rpm's or not, since rpm shortly dies after that with a build error: RPM build errors: File not found: /var/tmp/openssh-5.0p1-build/usr/share/man/man1/ssh-keyconve rter.1.gz FWIW -- it may be too late to 'fix', but I thing including the X-dependent util, "askpass", in the same rpm as openssh, is the wrong way to go -- previously, openssh was a "command-line" oriented package. With the addition of 'askpass', I would assume it requires the X-libraries to be present in order to install openssh. That seems like an unnecessary drawback for installing on a non-gui based machine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.