Package Details: lastpass-cli 1.6.1-1

Git Clone URL: https://aur.archlinux.org/lastpass-cli.git (read-only, click to copy)
Package Base: lastpass-cli
Description: LastPass command line interface tool
Upstream URL: https://lastpass.com/
Licenses: GPL2
Submitter: arojas
Maintainer: matthewq337
Last Packager: arojas
Votes: 0
Popularity: 0.000000
First Submitted: 2025-03-31 17:29 (UTC)
Last Updated: 2025-03-31 17:29 (UTC)

Latest Comments

TheVulpecula commented on 2025-04-21 12:21 (UTC) (edited on 2025-04-21 12:43 (UTC) by TheVulpecula)

The package does not build in the current state:

==> Making package: lastpass-cli 1.6.1-1 (Mon 21 Apr 2025 08:20:12 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: lastpass-cli-exit status 4

You can use the following patch:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index efc6ba0..c012d0a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,36 +1,11 @@
-if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_LESS 3.1)
-  set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake > 2.8.4 is required
-  cmake_minimum_required(VERSION 2.8)
-else()
-  cmake_minimum_required(VERSION 3.1)
-endif()
+cmake_minimum_required(VERSION 3.10)

 project(lpass)
 include(GNUInstallDirs)
 find_package(PkgConfig REQUIRED)

-if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_LESS 3.4)
-  # pkg_get_variable is not available until CMake >= 3.4.0
-  # Debian oldstable still packages CMake 3.0.2
-  function(pkg_get_variable _output_name _pkg _name)
-    execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${_name} ${_pkg}
-                    OUTPUT_VARIABLE _pkg_result
-                    OUTPUT_STRIP_TRAILING_WHITESPACE)
-
-    set("${_output_name}" "${_pkg_result}" CACHE STRING "pkg-config variable ${_name} of ${_pkg}")
-  endfunction()
-
-  pkg_get_variable(BASH_COMPLETION_PREFIX bash-completion prefix)
-  if(BASH_COMPLETION_PREFIX)
-    set(BASH_COMPLETION_FOUND TRUE)
-  endif()
-
-else()
-
-  include(FindPkgConfig)
-  pkg_search_module(BASH_COMPLETION bash-completion)
-
-endif()
+include(FindPkgConfig)
+pkg_search_module(BASH_COMPLETION bash-completion)

 if(APPLE)
   find_program(BREW_INSTALLED BREW)