@yrlf, thanks, works for me. Maintainer should take your patch and bump the package version.
Search Criteria
Package Details: devscripts 2.26.3-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/devscripts.git (read-only, click to copy) |
|---|---|
| Package Base: | devscripts |
| Description: | Scripts to make the life of a Debian Package maintainer easier |
| Upstream URL: | https://tracker.debian.org/pkg/devscripts |
| Licenses: | GPL-2.0-or-later |
| Conflicts: | checkbashisms |
| Provides: | checkbashisms |
| Submitter: | Misery |
| Maintainer: | fixeria |
| Last Packager: | ItachiSan |
| Votes: | 27 |
| Popularity: | 0.000000 |
| First Submitted: | 2008-03-19 22:52 (UTC) |
| Last Updated: | 2026-01-11 15:56 (UTC) |
Dependencies (30)
- debhelperAUR
- debianutilsAUR
- dpkg (dpkg-gitAUR, dpkg-gitAUR)
- perl (perl-gitAUR)
- perl-file-homedir
- perl-timedate
- sed (sed-gitAUR, uutils-sedAUR)
- sensible-utilsAUR (sensible-utils-gitAUR)
- wget (wget-gitAUR)
- bash-completion (bash-completion-gitAUR) (make)
- docbook-xsl (make)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- help2man (help2man-gitAUR, python-help2manAUR) (make)
- perl-file-basedir (make)
- perl-file-desktopentry (make)
- perl-git-wrapperAUR (make)
- perl-libwww (make)
- perl-list-compare (make)
- perl-parse-debcontrolAUR (make)
- perl-pod-parser (make)
- Show 10 more dependencies...
Required by (6)
Sources (2)
damentz commented on 2023-02-19 17:03 (UTC)
yrlf commented on 2023-02-16 11:14 (UTC) (edited on 2023-02-16 11:23 (UTC) by yrlf)
Hi! The latest PKGBUILD has a few issues:
- you misspelled the
conflictsvariable asconflicst - you misspelled the package name
checkbashismsascheckbashism
Additionally, I want to say that I can reproduce the issues @sa7dse, @Excalibur, and @agraef encountered. Here is a quick rundown of the cause:
devscripts/scripts/setup.pytries to importdevscripts.testfromdevscripts/scripts/devscripts/test/__init__.py- python looks for
devscripts - python instead finds the installed
/usr/lib/python3.10/site-packages/devscripts/__init__.py(root cause) - python looks for
devscripts.testin the found package - python errors out because the
testsubpackage was not not installed with the rest (symptom)
I haven't found out why python prefers the installed version over the local one here, since usually it's the other way round; I will dig further into this.
For now, a workaround is to uninstall devscripts and reinstalling it, at least that works for me.
EDIT: I found it! devscripts/scripts/devscripts/__init__.py does not exist. python checks for the existence of a devscripts.py or a devscripts/__init__.py before looking in site-packages, but this package just doesn't have that file. This works fine if the package is not installed, but breaks if it is already installed.
All changes in a single patch:
diff --git a/PKGBUILD b/PKGBUILD
index a7f2dcc..506b64e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37,8 +37,8 @@ optdepends=(
'perl-ipc-run: Required for uscan'
'perl-lwp-protocol-https: Required for uscan'
)
-provides=(checkbashism)
-conflicst=(checkbashism)
+provides=(checkbashisms)
+conflicts=(checkbashisms)
options=('!makeflags')
source=(
"https://deb.debian.org/debian/pool/main/${pkgname:0:1}/${pkgname}/${pkgname}_${pkgver}.tar.xz"
@@ -50,6 +50,9 @@ sha256sums=('54eb392b18818460e56c052e40602bc9a1ba33c5349a58017c57b1d312b3ed9a'
prepare(){
cd "$pkgname"
patch -p1 -i "$srcdir/fixes.patch"
+
+ # fix local script not being found when already installed
+ touch "$srcdir/devscripts/scripts/devscripts/__init__.py"
}
build() {
sa7dse commented on 2023-02-16 09:16 (UTC)
The build also fails on all of my machines with:
python3 setup.py install --root="/home/dp/git/devscripts/pkg/devscripts" --no-compile
Traceback (most recent call last):
File "/home/dp/git/devscripts/src/devscripts/scripts/setup.py", line 8, in <module>
from devscripts.test import SCRIPTS
ModuleNotFoundError: No module named 'devscripts.test'
and that is with git cloning this repo and running makepkg
ItachiSan commented on 2023-02-16 09:01 (UTC)
Hi @Excalibur,
I had a similar error reported on Github:
https://github.com/ItachiSan/linux_packaging/issues/12
I simply cannot reproduce. Building "the official way" with makepkg leads to no issue. Maybe cleaning the yay cache folder can solve the issue?
Excalibur commented on 2023-02-16 03:06 (UTC)
I got the following error when trying to upgrade 2.23.0-1 -> 2.23.1-2:
==> Starting package()...
make -C scripts/ install DESTDIR=/home/excalibur/.cache/yay/devscripts/pkg/devscripts
make[1]: Entering directory '/home/excalibur/.cache/yay/devscripts/src/devscripts/scripts'
cp bts.bash_completion bash_completion/bts
cp chdist.bash_completion bash_completion/chdist
cp checkbashisms.bash_completion bash_completion/checkbashisms
cp debchange.bash_completion bash_completion/debchange
cp debdiff.bash_completion bash_completion/debdiff
cp debi.bash_completion bash_completion/debi
cp debsign.bash_completion bash_completion/debsign
cp debuild.bash_completion bash_completion/debuild
cp dscextract.bash_completion bash_completion/dscextract
cp dscverify.bash_completion bash_completion/dscverify
cp list-unreleased.bash_completion bash_completion/list-unreleased
cp mk-origtargz.bash_completion bash_completion/mk-origtargz
cp pkgnames.bash_completion bash_completion/pkgnames
cp plotchangelog.bash_completion bash_completion/plotchangelog
cp salsa.bash_completion bash_completion/salsa
cp uscan.bash_completion bash_completion/uscan
cp uupdate.bash_completion bash_completion/uupdate
python3 setup.py install --root="/home/excalibur/.cache/yay/devscripts/pkg/devscripts" --no-compile
Traceback (most recent call last):
File "/home/excalibur/.cache/yay/devscripts/src/devscripts/scripts/setup.py", line 8, in <module>
from devscripts.test import SCRIPTS
ModuleNotFoundError: No module named 'devscripts.test'
make[1]: *** [Makefile:154: install] Error 1
make[1]: Leaving directory '/home/excalibur/.cache/yay/devscripts/src/devscripts/scripts'
make: *** [Makefile:70: install_scripts] Error 2
==> ERROR: A failure occurred in package().
Aborting...
-> error making: devscripts
weilinfox commented on 2022-11-01 12:54 (UTC)
It seems that perl-moo , perl-ipc-run and perl-lwp-protocol-https are also required for uscan.
anoa commented on 2021-11-16 14:31 (UTC)
Thanks for the tip zadkiel. I needed to add:
mkdir -p $pkgdir/usr/{bin,lib}
before the make DESTDIR="$pkgdir" install line before it would install successfully.
zadkiel commented on 2021-05-12 11:15 (UTC)
It looks like the PKGBUILD misses a build instruction.
There should be a mkdir -p $pkgdir/usr/lib before the make install command.
peeweep commented on 2020-10-13 03:44 (UTC)
Please add debian-keyring as optdepends
[/tmp]$ dget http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc
dget: retrieving http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1688 100 1688 0 0 4251 0 --:--:-- --:--:-- --:--:-- 4251
dget: using existing sensible-utils_0.0.13.tar.xz
dscverify: can't find any system keyrings
peeweep commented on 2020-10-13 03:20 (UTC) (edited on 2020-10-13 03:20 (UTC) by peeweep)
Please add perl-file-homedir to depends, not makedepends
[/tmp]$ dget http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils
_0.0.13.dsc
dget: retrieving http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.dsc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1688 100 1688 0 0 4077 0 --:--:-- --:--:-- --:--:-- 4077
dget: retrieving http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.13.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 62020 100 62020 0 0 150k 0 --:--:-- --:--:-- --:--:-- 150k
Can't locate File/HomeDir.pm in @INC (you may need to install the File::HomeDir module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at /usr/bin/dscverify line 31.
BEGIN failed--compilation aborted at /usr/bin/dscverify line 31.
Pinned Comments
ItachiSan commented on 2026-01-11 09:00 (UTC)
For all: debianutils and systemd conflict.
See a fix at the AUR page for debianutils: https://aur.archlinux.org/packages/debianutils#comment-1054438
ItachiSan commented on 2017-05-17 10:50 (UTC) (edited on 2023-02-16 09:00 (UTC) by ItachiSan)
If the package is outdated, please report it with the 'Flag outdated package' above.
If there is an issue regarding packaging, please report it here:
https://github.com/ItachiSan/linux_packaging/issues/
As I do not use this package (I use a Docker container for Debian packaging) please tell me whenever a dependency is missing, so that I can move it from a make dependency to a normal dependency.