Package Details: dockd 1.3.1-2

Git Clone URL: https://aur.archlinux.org/dockd.git (read-only, click to copy)
Package Base: dockd
Description: Lenovo ThinkPad Dock Management Daemon
Upstream URL: https://github.com/libthinkpad/dockd
Keywords: thinkpad
Licenses: BSD
Submitter: smlb
Maintainer: nurfz (MartinX3)
Last Packager: nurfz
Votes: 6
Popularity: 0.000000
First Submitted: 2017-11-19 12:01 (UTC)
Last Updated: 2022-09-06 16:39 (UTC)

Latest Comments

1 2 Next › Last »

nurfz commented on 2022-09-06 16:43 (UTC)

It should work now. GitHub auto-generates the .tar.gz file on release - but with a different filename and URL as we used to have. Also, the .tar.gz file contains a subfolder so I had to cd into this folder to get build() and package() working. An alternative would probably be to overwrite an extract() hook but I was too lazy to look that up.

ogghi commented on 2022-09-06 13:32 (UTC)

Same here:

AUR not working: ==> ERROR: Failure while downloading https://github.com/libthinkpad/dockd/releases/download/1.3.1/dockd-1.3.1.tar.gz

There only is a 1.3 release there: https://github.com/libthinkpad/dockd/releases/ It's from 2020?

hashworks commented on 2022-09-06 12:57 (UTC)

It looks like the referenced release/tag does not exist. Has it been removed? https://github.com/libthinkpad/dockd/releases

Phreno commented on 2022-09-05 08:50 (UTC)

It works, thanks for your quick response.

I just had to add cmake to do the job, like this:

git clone https://github.com/libthinkpad/dockd
cd dockd
cmake ./
make
sudo make install

nurfz commented on 2022-09-04 20:20 (UTC) (edited on 2022-09-04 20:24 (UTC) by nurfz)

Hi Phreno, I'm struggling right now to properly publish a new version on AUR. But I fixed the problem in the source. You can

git clone https://github.com/libthinkpad/dockd
cd dockd
make
sudo make install

That should work...

Phreno commented on 2022-09-04 18:47 (UTC) (edited on 2022-09-04 18:49 (UTC) by Phreno)

Hi

Can't install the package. I tried with aur and with git with the same error. Being pretty new with Arch and with knowing nothing about C and C++, I hope I just omit some obvious step.

ENV
  • cmake version 3.23.3
  • g++ (GCC) 12.1.1 20220730
  • GNU Make 4.3
  • libthinkpad-2.6-5-x86_64.pkg.tar.zst
  • extra/libxrandr 1.5.2-4 [installé]
  • multilib/lib32-libxrandr 1.5.2-2 [installé]
ERROR
> makepkg -si                                                                                                                                                                             


==> Création du paquet dockd 1.3-2 (dim. 04 sept. 2022 20:36:25)
==> Vérification des dépendances pour l’exécution…
==> Vérification des dépendances pour la compilation…
==> Récupération des sources…
  -> dockd-1.3.tar.gz trouvé
==> Validation des fichiers source avec md5sums…
    dockd-1.3.tar.gz ... Réussite
==> Extraction des sources…
  -> Extraction de dockd-1.3.tar.gz avec bsdtar
==> Lancement de prepare()…
==> Suppression du répertoire $pkgdir/ existant…
==> Lancement de build()…
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done
-- Generating done
-- Build files have been written to: /home/phreno/git/aur/dockd/src
Consolidate compiler generated dependencies of target dockd
[ 25%] Building CXX object CMakeFiles/dockd.dir/main.cpp.o
/home/phreno/git/aur/dockd/src/main.cpp:21:29: erreur: « PTHREAD_MUTEX_INITIALIZER » n'a pas été déclaré dans cette portée
   21 |     pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/phreno/git/aur/dockd/src/main.cpp: Dans la fonction membre « virtual void ACPIHandler::handleEvent(ThinkPad::PowerManagement::ACPIEvent) »:
/home/phreno/git/aur/dockd/src/main.cpp:33:13: erreur: « pthread_mutex_lock » n'a pas été déclaré dans cette portée; vouliez-vous employer « pthread_mutex_t » ?
   33 |             pthread_mutex_lock(&mutex);
      |             ^~~~~~~~~~~~~~~~~~
      |             pthread_mutex_t
/home/phreno/git/aur/dockd/src/main.cpp:36:13: erreur: « pthread_mutex_unlock » n'a pas été déclaré dans cette portée; vouliez-vous employer « pthread_mutex_t » ?
   36 |             pthread_mutex_unlock(&mutex);
      |             ^~~~~~~~~~~~~~~~~~~~
      |             pthread_mutex_t
make[2]: *** [CMakeFiles/dockd.dir/build.make:76 : CMakeFiles/dockd.dir/main.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:83 : CMakeFiles/dockd.dir/all] Erreur 2
make: *** [Makefile:156 : all] Erreur 2
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…

CantoroMC commented on 2021-07-09 21:11 (UTC)

Thanks nurfz, this was not a big issue but in my humble opinion, is better that the package files have the correct permission rather than the user have to manually fix it every time the package is updated.

nurfz commented on 2021-07-09 21:02 (UTC)

CantoroMC: Yeah, I don't know. I think you're right – better do this in package than annoy the user with that.

CantoroMC commented on 2021-07-08 00:38 (UTC)

Why not?

package() {
  install -Dm755 -d etc "$pkgdir/etc/$pkgname"
  make DESTDIR=$pkgdir install
  chmod +x "$pkgdir/etc/$pkgname/dock.hook"
  chmod +x "$pkgdir/etc/$pkgname/undock.hook"
}

nurfz commented on 2020-09-13 17:48 (UTC) (edited on 2021-07-09 21:03 (UTC) by nurfz)

Package is updated to release 1.3

  • --help should work
  • infinite loop on --config is fixed
  • the source is now GitHub; the homepage libthinkpad.github.io is outdated

Please contribute on GitHub if you find bugs.