Problems with openssh compilation

Hi.

I need to connect to various old hardware using ssh protocol 1, but it is abolished in the latest ssh client on opensuse 15 (would feel bad to downgrade back to 42.3 just because of that), so I decided to compile the ssh package from source and got unexpected troubles right from the start. The thing is, the repos are missing at least one dependency for the openssh-7.6p1.tar.gz package and one dependency seems broken in some way:

thinpad:/usr/src/packages # rpmbuild -bp /usr/src/packages/SPECS/openssh.spec
error: Failed build dependencies:
krb5-mini-devel is needed by openssh-7.6p1-lp150.7.4.x86_64
pkgconfig(libsystemd) is needed by openssh-7.6p1-lp150.7.4.x86_64

The krb5-mini is nowhere to be found, but I think it was there in the repos for older opensuse releases. The pkgconfig package is actually installed, but failes to be resolved:

thinpad:/usr/src/packages # zypper se pkg-config
Loading repository data…
Reading installed packages…

S | Name | Summary | Type
—±-------------------------------------±-------------------------------------±----------
i+ | pkg-config | A library management system | package
| pkg-config | A library management system | srcpackage
| ruby2.5-rubygem-pkg-config | A pkg-config implementation for Ruby | package
| ruby2.5-rubygem-pkg-config-doc | RDoc documentation for pkg-config | package
| ruby2.5-rubygem-pkg-config-testsuite | Test suite for pkg-config | package
| rubygem-pkg-config | A pkg-config implementation for Ruby | srcpackage
thinpad:/usr/src/packages #

Can anyone suggest anything? Apart from upgrading the old hardware, that is :wink:

How about the LEAP 42.1 oss?

https://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/leap/42.1/repo/oss/suse/x86_64/

You can download the package only or add the repo to your build.

You can look for older versions in older versions of openSUSE on the same site.

TSU

I might be doing something terribly wrong.
I downloaded the krb5-mini-devel package from that ftp, but it required krb5-mini be installed:


thinpad:/home/jin/Downloads # rpm -i krb5-mini-devel-1.12.1-19.2.x86_64.rpm 
error: Failed dependencies:
    krb5-mini = 1.12.1 is needed by krb5-mini-devel-1.12.1-19.2.x86_64
thinpad:/home/jin/Downloads # rpm -i krb5-mini-1.12.1-19.2.x86_64.rpm 
error: Failed dependencies:
    krb5 conflicts with krb5-mini-1.12.1-19.2.x86_64
    krb5-mini conflicts with (installed) krb5-1.15.2-lp150.4.4.x86_64
thinpad:/home/jin/Downloads # 

But krb5-mini conflicts with the native krb5 package which is the dependency for another 920 packages:


thinpad:/home/jin/Downloads # zypper rm krb5
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 62 applications are going to be REMOVED:
  BRLTTY Bijiben Cheese Contacts "Dconf Editor" "Disk Usage Analyzer" Documents Evince Evolution "Eye of GNOME" "Firefox Web Browser" GIMP "GNOME Calculator" "GNOME
  Characters" "GNOME Chess" "GNOME Clocks" "GNOME Color Manager" "GNOME Control Center" "GNOME Dictionary" "GNOME Disks" "GNOME Logs" "GNOME Mahjongg" "GNOME Maps" "GNOME
  Mines" "GNOME Music" "GNOME Package Updater" "GNOME Power Statistics" "GNOME Screenshot" "GNOME Software" "GNOME Sudoku" "GNOME System Monitor" "GNOME Tweaks" "GStreamer
  Multimedia Codecs" Gnote Iagno "LibreOffice Base" "LibreOffice Calc" "LibreOffice Draw" "LibreOffice Impress" "LibreOffice Writer" "Lights Off" Nautilus NetworkManager
  Photos Pidgin Polari "Print Settings" Quadrapassel Remmina "Remote Desktop Viewer" Seahorse "Simple Scan" "Swell Foop" TLP Thunderbird "Transmission BitTorrent Client" VLC
  Videos Weather "Wireshark (QT) Network Analyzer" YaST gedit

The following 920 packages are going to be REMOVED:

... SKIPPING the humongous list of packages to fit in the msgsize limit ...

The following 23 patterns are going to be REMOVED:
  apparmor apparmor_opt base enhanced_base games gnome gnome_basis gnome_basis_opt gnome_imaging gnome_office gnome_utilities gnome_x11 gnome_yast imaging imaging_opt laptop
  minimal_base sw_management sw_management_gnome x11 x11_enhanced x11_opt yast2_basis

920 packages to remove.
After the operation, 2.3 GiB will be freed.
Continue? [y/n/...? shows all options] (y): n
thinpad:/home/jin/Downloads # 

So, this is actually leading me to thinking that I should not remove the native krb5 package or install the krb5-mini package forcefully (possibly breaking the installation). But how come OpenSuSE 15 ships with a source package for openssh that is incompatible with the existing libs? The source package and the binary one are of the exactly same version, but the source one depends on the libraries not even present in the repos.


thinpad:/home/jin/Downloads # zypper info --type srcpackage openssh
Loading repository data...
Reading installed packages...


Information for srcpackage openssh:
-----------------------------------
Repository            : openSUSE-Leap-15.0-Source                            
Name                  : openssh                                              
Version               : 7.6p1-lp150.7.4                                      
Arch                  : noarch                                               
Vendor                : openSUSE                                             
Summary               : Secure Shell Client and Server (Remote Login Program)
Description           :                                                      
    SSH (Secure Shell) is a program for logging into and executing commands
    on a remote machine. It is intended to replace rsh (rlogin and rsh) and
    provides openssl (secure encrypted communication) between two untrusted
    hosts over an insecure network.

    xorg-x11 (X Window System) connections and arbitrary TCP/IP ports can
    also be forwarded over the secure channel.
Builds binary package :                                                      
    S | Name            | Version
    --+-----------------+----------------
    i | openssh         | 7.6p1-lp150.7.4
      | openssh-cavs    | 7.6p1-lp150.7.4
      | openssh-fips    | 7.6p1-lp150.7.4
    i | openssh-helpers | 7.6p1-lp150.7.4

thinpad:/home/jin/Downloads # zypper info openssh
Loading repository data...
Reading installed packages...


Information for package openssh:
--------------------------------
Repository     : openSUSE-Leap-15.0-1                                 
Name           : openssh                                              
Version        : 7.6p1-lp150.7.4                                      
Arch           : x86_64                                               
Vendor         : openSUSE                                             
Installed Size : 5.6 MiB                                              
Installed      : Yes                                                  
Status         : up-to-date                                           
Source package : openssh-7.6p1-lp150.7.4.src                          
Summary        : Secure Shell Client and Server (Remote Login Program)
Description    :                                                      
    SSH (Secure Shell) is a program for logging into and executing commands
    on a remote machine. It is intended to replace rsh (rlogin and rsh) and
    provides openssl (secure encrypted communication) between two untrusted
    hosts over an insecure network.

    xorg-x11 (X Window System) connections and arbitrary TCP/IP ports can
    also be forwarded over the secure channel.

thinpad:/home/jin/Downloads # 

And there’s still the other problem: the pkgconfig(systemd) dependency of openssh should be satisfied with pkg-config, but clearly isn’t. Maybe I downloaded the wrong source package? Is there something wrong with my repos config?


thinpad:/home/jin/Downloads # zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh
---+-------------------------------------+-----------------------------------------+---------+-----------+--------
 1 | http-download.opensuse.org-077d7943 | multimedia:libs                         | Yes     | (r ) Yes  | Yes    
 2 | http-download.opensuse.org-bd0e421e | multimedia:apps                         | Yes     | (r ) Yes  | Yes    
 3 | http-opensuse-guide.org-7ebc0fc1    | libdvdcss repository                    | No      | ----      | ----   
 4 | http-packman.inode.at-a13dcee5      | Packman Repository                      | Yes     | (r ) Yes  | Yes    
 5 | openSUSE-Leap-15.0-1                | openSUSE-Leap-15.0-1                    | Yes     | (r ) Yes  | Yes    
 6 | repo-debug                          | openSUSE-Leap-15.0-Debug                | No      | ----      | ----   
 7 | repo-debug-non-oss                  | openSUSE-Leap-15.0-Debug-Non-Oss        | No      | ----      | ----   
 8 | repo-debug-update                   | openSUSE-Leap-15.0-Update-Debug         | No      | ----      | ----   
 9 | repo-debug-update-non-oss           | openSUSE-Leap-15.0-Update-Debug-Non-Oss | No      | ----      | ----   
10 | repo-non-oss                        | openSUSE-Leap-15.0-Non-Oss              | Yes     | (r ) Yes  | Yes    
11 | repo-source                         | openSUSE-Leap-15.0-Source               | Yes     | (r ) Yes  | Yes    
12 | repo-source-non-oss                 | openSUSE-Leap-15.0-Source-Non-Oss       | No      | ----      | ----   
13 | repo-update                         | openSUSE-Leap-15.0-Update               | Yes     | (r ) Yes  | Yes    
14 | repo-update-non-oss                 | openSUSE-Leap-15.0-Update-Non-Oss       | Yes     | (r ) Yes  | Yes    
thinpad:/home/jin/Downloads # 

In situations like this,
I create an special build system, for example maybe in your case a LEAP 42.1… Likely installed in a virtual machine unless the app being built needed access to real-mode hardware and then it’d be a question whether hardware pass-through was an option.

That way,
You won’t have conflicting dependencies like what you’re describing.

TSU

Is there a mailing list for package maintainers? Maybe I could get some guidance there.

All the mailing lists can be found here

https://lists.opensuse.org/

Specific instructions how to subscribe, unsunscribe, post, etc
Remember, all posts have to be plain text. All HTML will be bounced!

https://en.opensuse.org/openSUSE:Mailing_lists_subscription

HTH,
TSU

On Fri 22 Jun 2018 11:06:03 AM CDT, ujin981 wrote:

Hi.

I need to connect to various old hardware using ssh protocol 1, but it
is abolished in the latest ssh client on opensuse 15 (would feel bad to
downgrade back to 42.3 just because of that), so I decided to compile
the ssh package from source and got unexpected troubles right from the
start. The thing is, the repos are missing at least one dependency for
the openssh-7.6p1.tar.gz package and one dependency seems broken in some
way:

<snip>

Hi
How often are you connecting to said old hardware? Is this local or
remote hardware? If not often, then I would look at a live JeOS release
of something (or use Studio Express) and just boot that up. Or a docker
container?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-23-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!