Seriously.  Not enough coffee today...


Brian Elliott Finley wrote:
I've attached (really I have) a _new_ openssl.rul and an updated openssh.rul. Just drop these in your make.d dir and off you go.

I've also comitted these to the v3_4_x cvs branch.

Mods you may still need to make:
- modify the openssh configure or make lines to have it link against the openssl stuff.
- modify the mklibs -L bit in Makefile to include the right libs in the openssl dir.


Once it's working for you, go ahead and commit the changes to the v3_4_x branch of CVS -- and your new .spec if you like. I'll review, then will cut a new release (3.4.1).

Cheers, -Brian


Brian Elliott Finley wrote:

Jerry DeLapp wrote:

So far, I've had very little success building the first 3.4.0 RPMs. There are a number of issues:

1) Had to add the openssh tarball to the build.

2) We've been building e2fsprogs without shared libraries for some time. This means we've been linking our static binaries against the source directory, but dynamic against the distro.

2a) The e2fsprogs library directory needs to be added to the linker path for boel_binaries tarball build.

3) the mklibs script in the boel_binaries.tgz construction malfunctions on rh9 and tries to pick up the wrong version of libcom_err.so from /usr/kerberos/lib (tries, and fails). I didn't test it on Fedora Core because...

4) Kernel build fails on Fedora Core 3. Google search for the build error messages indicates that the problem is related to kernel 2.4.25 (and .26) and seems to be fixed in 2.4.27. (Kernel did build on rh9).



I'd say just build on rh9 for now if it works. Probably don't want to change the kernel version for the RPM.



5) I can't just remove /usr/kerberos/lib from the system because openssh-3.8.1x links against openssl, which links against kerberos. (Neither of which are in our source tree, yet).



I've attached an openssl.rul. Just drop it in make.d, and run 'make openssl' before 'make openssh'. If you can work out the openssh.rul bits for linking against openssl, send me patches and I'll commit them and cut a 3.4.1. Sound good?


I have patches for 2 and 2a that I'll send separately.



Ok. Very good.

Any thoughts on the kernel? Upgrade? Backport patches from 2.4.27?



Let's just build on rh9 for now, if possible.



------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Sisuite-devel mailing list Sisuite-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sisuite-devel





-- ------------------------------------------------------ Brian Elliott Finley Mobile: 630.631.6621 gpg --keyserver wwwkeys.pgp.net --recv-keys 10F8EE52 ------------------------------------------------------
#
#   $Id: openssh.rul,v 1.16.2.1 2005/01/31 22:53:02 brianfinley Exp $
#   
#   /* vi: set noet ts=4: */
#   
#   2004.07.26  Brian Elliott Finley
#   - new version of openssh
#   2004.09.10  Brian Elliott Finley
#   - include as part of standard boel_binaries_tarball
#   2005.01.25  Brian Elliott Finley
#   - add to ALL_SOURCE
#

OPENSSH_VERSION         := 3.8.1p1
OPENSSH_DIR             := openssh-$(OPENSSH_VERSION)
OPENSSH_TARBALL         := openssh-$(OPENSSH_VERSION).tar.gz
OPENSSH_MD5SUM          := 1dbfd40ae683f822ae917eebf171ca42
OPENSSH_TARBALL_TARGET  := $(SRC_DIR)/$(OPENSSH_TARBALL)
OPENSSH_URL             := 
http://alpaca.mcs.anl.gov/openssh/portable/$(OPENSSH_TARBALL)
OPENSSH_BINARIES        := $(SRC_DIR)/$(OPENSSH_DIR)/ssh \
                                $(SRC_DIR)/$(OPENSSH_DIR)/sshd \
                                $(SRC_DIR)/$(OPENSSH_DIR)/scp \
                                $(SRC_DIR)/$(OPENSSH_DIR)/ssh-keygen

ALL_SOURCE += $(SRC_DIR)/$(OPENSSH_TARBALL)

OPENSSH_CONF_FILES := $(TOPDIR)/etc/ssh/ssh_config \
                                $(TOPDIR)/etc/ssh/sshd_config

OPENSSH_OTHER_FILES := $(shell echo /lib/libnss_files*)

OPENSSH_SOURCE := $(SRC_DIR)/$(OPENSSH_TARBALL)

ifeq ($(ARCH),i386)
    # should this be i486?  as we use an i486 kernel? -BEF-
        SSH_HOST_TYPE=i586-pc-linux-gnu
endif


PHONY += openssh
openssh:        $(OPENSSH_BINARIES)

$(OPENSSH_BINARIES):    $(SRC_DIR)/openssh_verify.stamp openssl
        rm -rf $(SRC_DIR)/$(OPENSSH_DIR)
        ( cd $(SRC_DIR) && tar -xvzf $(OPENSSH_TARBALL) )
        cd $(SRC_DIR)/$(OPENSSH_DIR) && ./configure --prefix=/usr \
                                                                                
                --sysconfdir=/etc/ssh \
                                                                                
                --host=i586-pc-linux-gnu
        $(MAKE) -C $(SRC_DIR)/$(OPENSSH_DIR)

$(SRC_DIR)/openssh_verify.stamp:        $(OPENSSH_TARBALL_TARGET)
        [ "$(shell md5sum $(OPENSSH_TARBALL_TARGET) | cut -d' ' -f1)" == 
"$(OPENSSH_MD5SUM)" ]
        touch $(SRC_DIR)/openssh_verify.stamp

$(OPENSSH_TARBALL_TARGET):
        [ -d $(SRC_DIR) ] || mkdir -p $(SRC_DIR)
        $(GETSOURCE) $(OPENSSH_URL) $(SRC_DIR)

PHONY += openssh_clean
openssh_clean:
        rm -rf $(SRC_DIR)/$(OPENSSH_DIR)
        rm -f $(SRC_DIR)/openssh_verify.stamp


# include build dependencies here
DEBIAN_BUILD_DEPS += libssl-dev zlib1g-dev
#
#   $Id: openssl.rul,v 1.1.2.1 2005/01/31 22:53:04 brianfinley Exp $
#   
#   /* vi: set noet ts=4: */
#   
#   2005.01.31  Brian Elliott Finley
#   - add to ALL_SOURCE
#

OPENSSL_VERSION         := 0.9.7e
OPENSSL_DIR             := openssl-$(OPENSSL_VERSION)
OPENSSL_TARBALL         := openssl-$(OPENSSL_VERSION).tar.gz
OPENSSL_MD5SUM          := a8777164bca38d84e5eb2b1535223474
OPENSSL_TARBALL_TARGET  := $(SRC_DIR)/$(OPENSSL_TARBALL)
OPENSSL_URL             := http://www.openssl.org/source/$(OPENSSL_TARBALL)
OPENSSL_BINARIES        := $(SRC_DIR)/$(OPENSSL_DIR)/apps/openssl

ALL_SOURCE += $(SRC_DIR)/$(OPENSSL_TARBALL)

OPENSSL_SOURCE := $(SRC_DIR)/$(OPENSSL_TARBALL)

PHONY += openssl
openssl:        $(OPENSSL_BINARIES)

$(OPENSSL_BINARIES):    $(SRC_DIR)/openssl_verify.stamp
        rm -rf $(SRC_DIR)/$(OPENSSL_DIR)
        ( cd $(SRC_DIR) && tar -xvzf $(OPENSSL_TARBALL) )
        cd $(SRC_DIR)/$(OPENSSL_DIR) && \
                ./config no-shared --prefix=/usr --openssldir=/usr/lib/ssl 
no-idea no-mdc2 no-rc5 no-krb5
        $(MAKE) -C $(SRC_DIR)/$(OPENSSL_DIR)

$(SRC_DIR)/openssl_verify.stamp:        $(OPENSSL_TARBALL_TARGET)
        [ "$(shell md5sum $(OPENSSL_TARBALL_TARGET) | cut -d' ' -f1)" == 
"$(OPENSSL_MD5SUM)" ]
        touch $(SRC_DIR)/openssl_verify.stamp

$(OPENSSL_TARBALL_TARGET):
        [ -d $(SRC_DIR) ] || mkdir -p $(SRC_DIR)
        $(GETSOURCE) $(OPENSSL_URL) $(SRC_DIR)

PHONY += ssh_clean
ssh_clean:  openssl_clean
        @echo ''
        @echo 'Next time, use "make openssl_clean" as it is the proper target.'
        @echo ''

PHONY += openssl_clean
openssl_clean:
        rm -rf $(SRC_DIR)/$(OPENSSL_DIR)
        rm -f $(SRC_DIR)/openssl_verify.stamp


# include build dependencies here
DEBIAN_BUILD_DEPS += libssl-dev zlib1g-dev

Reply via email to