Package Details: randrctl-git 1.8.0.r1.ad847b3-1

Git Clone URL: (read-only, click to copy)
Package Base: randrctl-git
Description: Lightweight profile based screen manager for X
Upstream URL:
Licenses: GPL3
Conflicts: randrctl
Provides: randrctl
Submitter: edio
Maintainer: edio
Last Packager: edio
Votes: 6
Popularity: 0.000607
First Submitted: 2014-09-07 13:26 (UTC)
Last Updated: 2018-10-24 00:47 (UTC)

Latest Comments

edio commented on 2018-10-24 01:07 (UTC)

@Perdu, I added python-pbr to makedepends array (it is only required for installation). Thanks for noticing!

Perdu commented on 2018-10-23 08:25 (UTC)

python-pbr is missing as a dependency, otherwise build fails: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')

edio commented on 2018-09-01 20:55 (UTC)

Sorry, missed that. Should be fixed now. Thanks for the heads up!

xduugu commented on 2018-09-01 10:31 (UTC)

Thanks edio for fixing it. However, the package of pyyaml is called python-yaml.

edio commented on 2018-08-31 14:07 (UTC)

@xduugu, thank you for suggested fixes. Done.

xduugu commented on 2018-08-30 20:09 (UTC) (edited on 2018-08-30 20:12 (UTC) by xduugu)

Could you fix some more issues in the PKGBUILD?

  • python-setuptools and python-yaml should be added as dependencies, python can be removed as it is already a dependency of the python packages
  • from namcap: "randrctl-git E: GPLv3 is not a common license (it's not in /usr/share/licenses/common/)" -> license needs to be changed to "GPL3"


edio commented on 2018-08-29 05:30 (UTC)


Thanks for reporting.

I moved away from packit to pbr (still not bare setup-tools, but hope this will cause less troubles).

Also I added python-argcomplete package to dependencies array.

deboeckj commented on 2018-08-26 06:16 (UTC)

The way packit was installed failed big time with me

  File "/usr/lib/python3.7/site-packages/pkg_resources/", 
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
TypeError: '<' not supported between instances of 'Version' and 'Vers
==> ERROR: A failure occurred in package().

Manually pip installing it resolved it (pip3 install --user packit)

Current version also depends on python-argcomplete

fab31 commented on 2018-07-03 11:07 (UTC)

Couldn't build, this patch fixed it:

--- randrctl-git/PKGBUILD 2018-06-16 23:10:03.000000000 +0200 +++ randrctl-git-ng/PKGBUILD 2018-07-03 13:06:08.648885815 +0200 @@ -3,13 +3,13 @@ _gitname=randrctl pkgname=$_gitname-git pkgdesc="Lightweight profile based screen manager for X" -pkgver=1.7.1.r1.1be3084 +pkgver=1.7.1.r3.6259240 pkgrel=1 arch=('any') url="" license=('GPLv3') -makedepends=('git' 'python-pip') -depends=('python' 'xorg-xrandr') +makedepends=('git' 'python-pip' 'python-pbr') +depends=('python' 'xorg-xrandr' 'python-argcomplete') optdepends=('bash-completion') source=( 'git+' @@ -35,7 +35,7 @@

python install --root="$pkgdir/" --optimize=1 install -Dm644 "$srcdir/completion" "$pkgdir/usr/share/bash-completion/completions/randrctl" - install -Dm644 "randrctl/misc/udev/99-randrctl.rules" "$pkgdir/usr/lib/udev/rules.d/99-randrctl.rules" + install -Dm644 "$srcdir/randrctl/misc/udev/99-randrctl.rules" "$pkgdir/usr/lib/udev/rules.d/99-randrctl.rules" }

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

edio commented on 2018-04-10 15:46 (UTC) (edited on 2018-04-10 15:46 (UTC) by edio)

@drws, pip may be the culprit. I'll add it to make deps shortly.

Thanks a lot for reporting and digging into this.

drws commented on 2018-04-10 10:52 (UTC)

Sorry, I foolishly discarded the output. I think the last outputted line was a line from Makefile that searched for the "packit" package and there were of course also a few error lines after that. I use pacaur, maybe that is the case?

However, even after successful randrctl installation, it does not work, because python-yaml is missing. Again, the package installed correctly with pacaur, and upon running the program, I got:

ModuleNotFoundError: No module named 'yaml'

This time installation of python-yaml solved it right away, not requiring PIP, as was the case with packit. Also, this time it is clear that python-yaml is simply missing from dependencies:

edio commented on 2018-04-05 03:21 (UTC)

@drws, I just tried installing it with pacaur on a fresh Arch installation, and it worked without any manual intervetion.

Could you describe, how did build fail for you?

drws commented on 2018-04-04 20:02 (UTC)

Package needs Python's "packit" package, which can be installed with "pip install packit", and builds successfully after.

edio commented on 2016-03-20 12:58 (UTC)

xduugu, if you do not want a profile to be considered for auto-matching, just remove the match section from that profile (or do not pass any of -m -p -e option to randrctl dump when creating profile). Though, your change makes perfect sense anyway. I could add that fix later, or, if you wish, you can do a pull request and I'll just merge it. Thanks for feedback!

xduugu commented on 2016-03-20 12:15 (UTC)

Thanks for fixing the version number. I have another suggestion, but this one is not related to packaging. Often, I have multiple profiles for the same monitor setup. Usually, it is one that uses all available outputs and one that disables the internal display of my laptop. One of these profiles acts as my default profile and the others are for convenient switching between different setup modes. However, these profiles get the same score assigned and the result of "randrctl auto" is non-deterministic, because of line 34 in function read_all in > for entry in os.listdir(profile_dir): I've changed the line to > for entry in sorted(os.listdir(profile_dir)): so I can define a "default" profile by choosing a profile name that comes first in sorted order.

edio commented on 2016-03-16 09:48 (UTC)

xduugu, thanks for pointing that out. Fixed.

xduugu commented on 2016-03-15 22:01 (UTC)

The package version doesn't include the commit id anymore. For *-git packages, the recommended pkgver function is printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" (see /usr/share/pacman/PKGBUILD-vcs.proto) which results in a current version of "1.0.r0.b69e4ed". Could you please fix this?