Package Details: targetcli-fb 2.1.56-1

Git Clone URL: https://aur.archlinux.org/targetcli-fb.git (read-only, click to copy)
Package Base: targetcli-fb
Description: free branch of the targetcli LIO administration shell (iSCSI + Co)
Upstream URL: https://github.com/open-iscsi/targetcli-fb
Licenses: Apache
Provides: targetcli
Submitter: JonnyJD
Maintainer: dsonck92
Last Packager: Malvineous
Votes: 22
Popularity: 0.93
First Submitted: 2012-02-27 01:05 (UTC)
Last Updated: 2023-07-15 05:28 (UTC)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

zomgugoff commented on 2023-06-17 08:41 (UTC)

Updated for 2.1.56

# Contributor: Johannes Dewender  arch at JonnyJD dot net
pkgname=targetcli-fb
pkgver=2.1.56
pkgrel=1
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
arch=('any')
url="https://github.com/open-iscsi/targetcli-fb"
license=('Apache')
groups=()
depends=('python-rtslib-fb>=2.1.fb52' 'python-configshell-fb>=1.1.fb17'
         'python-dbus' 'python-gobject')
makedepends=('python-setuptools')
optdepends=('python-ethtool')
provides=('targetcli')
backup=()
options=()
install=
source=(https://github.com/open-iscsi/targetcli-fb/archive/v${pkgver}.tar.gz)
sha512sums=('ad115fc996a33d4b1800edec702cfcae2c4e86cceeb539163a6686cbdbdf285169aae94dd30d0bc7c5ac9c96e47d30bdb85006826c2345e67f0096a5b86143bd')


build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i "s|/lib/systemd/system|lib/systemd/system|" setup.py
  python setup.py build
  gzip --stdout targetcli.8 > "targetcli.8.gz"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python setup.py install --skip-build --root="$pkgdir/" --optimize=1

  install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
}

EdeWolf commented on 2023-05-30 12:36 (UTC)

As of yesterday, Version 2.1.56 is available

JuniorJPDJ commented on 2023-05-09 12:08 (UTC)

This is already fixed in upstream, they just didn't release new version: https://github.com/open-iscsi/configshell-fb/commit/f3ac914861bd605e3d634aeeb5e706abdbd39259

JuniorJPDJ commented on 2023-05-09 12:07 (UTC)

This is not targetcli bug, this is configshell-fb bug.

Here's quick workaround: https://github.com/pyinvoke/invoke/issues/833#issuecomment-1396931531

a1678991 commented on 2023-05-04 14:59 (UTC)

The python package has been updated to 3.11 and targetcli no longer works.

Traceback (most recent call last):
  File "/usr/bin/targetcli", line 24, in <module>
    from targetcli import UIRoot
ModuleNotFoundError: No module named 'targetcli'

I run makepkg -si and the library is placed in the 3.11 path, but I am getting the following error

targetcli shell version 2.1.54
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/> saveconfig 
Traceback (most recent call last):
  File "/usr/bin/targetcli", line 329, in <module>
    main()
  File "/usr/bin/targetcli", line 317, in main
    shell.run_interactive()
  File "/usr/lib/python3.11/site-packages/configshell_fb/shell.py", line 900, in run_interactive
    self._cli_loop()
  File "/usr/lib/python3.11/site-packages/configshell_fb/shell.py", line 729, in _cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python3.11/site-packages/configshell_fb/shell.py", line 843, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python3.11/site-packages/configshell_fb/shell.py", line 818, in _execute_command
    result = target.execute_command(command, pparams, kparams)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/configshell_fb/node.py", line 1405, in execute_command
    self.assert_params(method, pparams, kparams)
  File "/usr/lib/python3.11/site-packages/configshell_fb/node.py", line 1420, in assert_params
    spec = inspect.getargspec(method)
           ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

The same problem occurs when I install targetcli-fb using pip in python 3.11, but not in 3.10 built with pyenv, so this is most likely an upstream compatibility issue.

I think you need to add python 3.10 to the dependencies of this package or make it work in some other way.

DocMAX commented on 2022-06-20 20:08 (UTC) (edited on 2022-06-20 20:08 (UTC) by DocMAX)

[Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list' Anyone else encounter this error? I get this on block delete.

JuniorJPDJ commented on 2021-10-11 18:56 (UTC)

now checksum is failing

edacval commented on 2021-10-11 10:57 (UTC)

Fix source shecksum and systemd units installation: http://ix.io/3BqN

diff --git a/PKGBUILD b/PKGBUILD
index ea9c0e1..ea6ef1e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,11 +12,8 @@ depends=('python-rtslib-fb>=2.1.fb52' 'python-configshell-fb>=1.1.fb17'
 makedepends=('python-setuptools')
 optdepends=('python-ethtool')
 provides=('targetcli')
-backup=()
-options=()
-install=
 source=(https://github.com/open-iscsi/targetcli-fb/archive/v${pkgver}.tar.gz)
-sha512sums=('acefa7f8df8ee901cae8f04cbeb264d6024100e2d8b8343024bc52842af88a23d1bf5dd880ff2c77046bd8da8493630b4e357103617c02d1a90947e42c3a7c92')
+sha512sums=('dd008b8c47acc095078454c94b0c6f19ba88f86ddf1b5335eb050abf61d89ce1ffb7411ff3a174de60ed9759e6337206253aa9b2def6497b85c884a0a111308d')


 build() {
@@ -31,6 +28,9 @@ package() {
   python setup.py install --skip-build --root="$pkgdir/" --optimize=1

   install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
+
+  install -D -m 644 systemd/targetclid.{socket,service} -t "$pkgdir/usr/lib/systemd/system"
+  sed -i 's|/var/run/|/run/|' "$pkgdir/usr/lib/systemd/system/targetclid.socket"
 }

 # vim:set ts=2 sw=2 et:

mikesd commented on 2021-10-11 05:38 (UTC)

Didn't realize it had been that long. I don't use the iSCSI stuff currently so have been a bit slack with updates. Will see if I can bump these this week. If you wanted to grab them let me know.

JuniorJPDJ commented on 2021-10-11 00:53 (UTC) (edited on 2021-10-11 01:06 (UTC) by JuniorJPDJ)

hey, are you still maintaining this package? It's out of date half a year now.