Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688604 - net-libs/libssh2-1.9.0: CMake Error at tests/CMakeLists.txt:155 (add_executable): Cannot find source file: test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c
Summary: net-libs/libssh2-1.9.0: CMake Error at tests/CMakeLists.txt:155 (add_executab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 688628 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-06-24 12:52 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2019-06-24 18:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.52 KB, text/plain)
2019-06-24 12:52 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
Add all missing tests and updated that are missing. (libssh-1.9.0-missing-tests.patch,53.16 KB, patch)
2019-06-24 13:11 UTC, Jory A. Pratt
Details | Diff
Place tests in proper directory so they are found (0001-add-the-missing-test-files.patch,5.95 KB, patch)
2019-06-24 13:30 UTC, Jory A. Pratt
Details | Diff
successful build.log with updated patch (build.log,80.86 KB, text/x-log)
2019-06-24 13:31 UTC, Jory A. Pratt
Details
net-libs:libssh2-1.9.0:20190624-132917.log (net-libs:libssh2-1.9.0:20190624-132917.log,376.57 KB, text/plain)
2019-06-24 13:41 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-06-24 12:52:48 UTC
Created attachment 580626 [details]
build.log

-- Configuring done
CMake Error at tests/CMakeLists.txt:155 (add_executable):
  Cannot find source file:

    test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


CMake Error at tests/CMakeLists.txt:155 (add_executable):
  Cannot find source file:

    test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


CMake Error at tests/CMakeLists.txt:155 (add_executable):
  Cannot find source file:

    test_public_key_auth_succeeds_with_correct_ed25519_key.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


CMake Error at tests/CMakeLists.txt:155 (add_executable):
  No SOURCES given to target:
  test_public_key_auth_succeeds_with_correct_ed25519_key_from_mem


CMake Error at tests/CMakeLists.txt:155 (add_executable):
  No SOURCES given to target:
  test_public_key_auth_succeeds_with_correct_encrypted_ed25519_key


CMake Error at tests/CMakeLists.txt:155 (add_executable):
  No SOURCES given to target:
  test_public_key_auth_succeeds_with_correct_ed25519_key


CMake Generate step failed.  Build files cannot be regenerated correctly.
 * ERROR: net-libs/libssh2-1.9.0::gentoo failed (configure phase):
 *   cmake failed


# emerge --info libssh2
Portage 2.3.67 (python 3.6.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-8.3.0, glibc-2.29-r2, 4.19.55 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.55-x86_64-AMD_Opteron-tm-_Processor_6328-with-gentoo-2.6
KiB Mem:   131999296 total,  94969896 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 24 Jun 2019 06:00:01 +0000
Head commit of repository gentoo: 052af06fde103f99aa77499bd5b76dc3ae95b933
Timestamp of repository poly-c: Mon, 24 Jun 2019 07:45:59 +0000
sh dash 0.5.10.2
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/cmake:           3.15.0_rc2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::poly-c
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://192.168.0.254/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --new-compress
    sync-rsync-verify-max-age: 24

poly-c
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --verbose-slot-rebuilds=n --fuzzy-search=n --dynamic-deps=n --changed-deps-report=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/etc/systemd /lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /etc/init.d/functions.sh /usr/lib/modules-load.d/virtualbox.conf /usr/lib64/firefox/browser/features/firefox@getpocket.com.xpi"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de de@1901 en"
MAKEOPTS="-j16"
PKGDIR="/opt/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac aacs acl acpi activities alsa amd64 berkdb bluetooth bluray branding brotli bzip2 c++0x cairo caps cdda cdr cli crypt css cups cxx dbus declarative dri dts dvd dvdr elogind emboss encode exif faac ffmpeg flac gcrypt gdbm gif glamor gmp gnutls gstreamer gtk iconv icu idn imagemagick inotify jpeg jpeg2k kde kipi kwallet lame lcms libcanberra libnotify libtirpc linguas_de lzma mac mad matroska midi mmap mmx mmxext mng mp3 mp4 mpeg mpfr multilib ncurses nls nptl nsplugin ogg openal opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 quicktime readline rtmp sdl seccomp slang speex spell split-usr sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev udisks unicode upower usb vaapi vcd vdpau vorbis vpx vulkan webp widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xv xvid xvmc zlib zsh-completion zstd" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="access_compat alias auth_basic auth_digest authn_anon authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dir env file_cache filter headers http2 include info log_config mime mime_magic rewrite socache_shmcb status unique_id unixd userdir vhost_alias" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de-1901 en" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

net-libs/libssh2-1.8.2::gentoo was built with the following:
USE="-gcrypt -libressl -mbedtls zlib" ABI_X86="-32 (64) (-x32)"
Comment 1 Jory A. Pratt gentoo-dev 2019-06-24 13:11:18 UTC
Created attachment 580628 [details, diff]
Add all missing tests and updated that are missing.

This just corrects the tests directory completely. I have tested it and have a fully working libssh2 update now.
Comment 2 Jory A. Pratt gentoo-dev 2019-06-24 13:30:30 UTC
Created attachment 580630 [details, diff]
Place tests in proper directory so they are found

After further digging the patch in the tree is putting the files into SRC and not SRC/tests this patch updates the issue and has been fully tested and working
Comment 3 Larry the Git Cow gentoo-dev 2019-06-24 13:30:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b96296c587c1909b642b0d22a33e3060776e45e

commit 6b96296c587c1909b642b0d22a33e3060776e45e
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-06-24 13:28:57 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-06-24 13:30:43 +0000

    Revert "net-libs/libssh2: Clean up patch"
    
    This reverts commit a55608f44e799e4fab03882909992053b8e25b90.
    
    Fixes: https://bugs.gentoo.org/688604
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-libs/libssh2/files/libssh2-1.9.0-missing.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 4 Jory A. Pratt gentoo-dev 2019-06-24 13:31:25 UTC
Created attachment 580632 [details]
successful build.log with updated patch
Comment 5 Jory A. Pratt gentoo-dev 2019-06-24 13:33:20 UTC
Stop guessing your doing things right and actually check your work already.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2019-06-24 13:36:35 UTC
(In reply to Jory A. Pratt from comment #5)
> Stop guessing your doing things right and actually check your work already.

Please tell me what that means.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2019-06-24 13:41:32 UTC
Created attachment 580634 [details]
net-libs:libssh2-1.9.0:20190624-132917.log

After reverting the changes to the patch. so after commit 6b96296c587c1909b642b0d22a33e3060776e45e.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-06-24 18:48:23 UTC
*** Bug 688628 has been marked as a duplicate of this bug. ***