how to install dh_testdir in centos 8?

Issues related to applications and software problems and general support
Post Reply
chankim
Posts: 50
Joined: 2015/07/15 12:05:39

how to install dh_testdir in centos 8?

Post by chankim » 2020/10/07 09:25:01

I'm on CentOS 8.2.
[root@stph33 plda]# dh_testdir
bash: dh_testdir: command not found...
Install package 'debhelper' to provide command 'dh_testdir'? [N/y] y


* Waiting in queue...
* Loading list of packages.... Failed to install packages: Could not depsolve transaction; 1 problem detected:
Problem: package debhelper-12.7.3-2.el8.noarch requires perl(Dpkg::BuildProfiles), but none of the providers can be installed
- package debhelper-12.7.3-2.el8.noarch requires dpkg-perl >= 1.17.14, but none of the providers can be installed
- conflicting requests
- nothing provides perl(Digest::SHA1) needed by dpkg-perl-1.18.25-12.el8.noarch
So it says the debhelper requires perl(Dpkg::BuildProfiles) but it cann't provide dpkg-perl >= 1.17.14, there are conflicting requests, and though dpkg-perl-1.18.25-12.el8 is avilable, the perl(Digest::SHA1) can't be provided. I've used/written perl scripts in the past, but what do this perl(Dpkg::BuildProfiles) mean? (I have perl 5.xx installed in the system). and is there any way I can install the required packages or dh_testdir?
(again, installing a software requires installing other softwares not officially supported on CentOS 8)

PryMar56
Posts: 10
Joined: 2020/04/20 14:56:31

Re: how to install dh_testdir in centos 8?

Post by PryMar56 » 2020/10/09 03:25:56

I did a test install in C8 mock chroot.
It makes no sense to install dh_testdir, but its provided by debhelper.

You can see that PowerTools repo is needed, which many don't enable.

<mock-chroot> sh-4.4# dnf install debhelper dpkg-perl
Last metadata expiration check: 0:04:55 ago on Thu 08 Oct 2020 08:14:55 PM PDT.
Dependencies resolved.
==========================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================
Installing:
debhelper noarch 12.7.3-2.el8 epel 989 k
dpkg-perl noarch 1.18.25-12.el8 epel 251 k
Installing dependencies:
cdbs noarch 0.4.159-3.el8 epel 62 k
dh-autoreconf noarch 19-6.el8 epel 24 k
dpkg x86_64 1.18.25-12.el8 epel 1.3 M
dpkg-dev noarch 1.18.25-12.el8 epel 709 k
gettext-common-devel noarch 0.19.8.1-17.el8 BaseOS 419 k
gettext-devel x86_64 0.19.8.1-17.el8 BaseOS 331 k
intltool noarch 0.51.0-11.el8 AppStream 66 k
libtool x86_64 2.4.6-25.el8 AppStream 709 k
mailcap noarch 2.1.48-3.el8 BaseOS 39 k
perl-Convert-BinHex noarch 1.125-13.el8 epel 49 k
perl-Devel-GlobalDestruction noarch 0.14-5.el8 PowerTools 24 k
perl-Digest-SHA1 x86_64 2.13-23.el8 PowerTools 57 k
perl-Email-Date-Format noarch 1.005-11.el8 epel 21 k
perl-Email-Simple noarch 2.216-6.el8 epel 39 k
perl-File-FcntlLock x86_64 0.22-16.el8 epel 45 k
perl-File-Remove noarch 1.57-6.el8 PowerTools 33 k
perl-Font-TTF noarch 1.06-11.el8 epel 354 k
perl-Geography-Countries noarch 2009041301-27.el8 epel 24 k
perl-HTML-Formatter noarch 2.16-10.el8 epel 57 k
perl-HTML-Parser x86_64 3.72-14.el8 AppStream 119 k
perl-HTML-Tagset noarch 3.20-33.el8 AppStream 24 k
perl-HTML-Tree noarch 1:5.07-2.el8 PowerTools 227 k
perl-HTTP-Date noarch 6.02-18.el8 AppStream 19 k
perl-HTTP-Message noarch 6.18-1.el8 AppStream 100 k
perl-IO-HTML noarch 1.001-10.el8 AppStream 28 k
perl-IO-String noarch 1.08-31.el8 PowerTools 21 k
perl-IO-stringy noarch 2.111-9.el8 PowerTools 71 k
perl-Image-ExifTool noarch 12.00-1.el8 epel 3.1 M
perl-LWP-MediaTypes noarch 6.02-14.el8 AppStream 29 k
perl-MIME-Lite noarch 3.030-16.el8 epel 100 k
perl-MIME-Types noarch 2.17-3.el8 PowerTools 77 k
perl-MIME-tools noarch 5.509-9.el8 epel 249 k
perl-Mail-Box noarch 3.008-1.el8 epel 389 k
perl-Mail-Message noarch 3.008-6.el8 epel 480 k
perl-Mail-Sendmail noarch 0.80-4.el8 epel 40 k
perl-Mail-Transport noarch 3.004-3.el8 epel 57 k
perl-MailTools noarch 2.20-2.el8 AppStream 113 k
perl-Net-SMTP-SSL noarch 1.04-5.el8 AppStream 15 k
perl-Object-Realize-Later noarch 0.21-7.el8 epel 24 k
perl-Regexp-Assemble noarch 0.38-8.el8 epel 98 k
perl-Sub-Exporter-Progressive noarch 0.001013-5.el8 PowerTools 25 k
perl-TeX-Hyphen noarch 1.18-10.1.el8 epel 40 k
perl-Text-Autoformat noarch 1.750000-1.el8 epel 50 k
perl-Text-Reform noarch 1.20-25.el8 epel 48 k
perl-TimeDate noarch 1:2.30-13.el8 AppStream 53 k
perl-User-Identity noarch 0.99-8.el8 epel 84 k
perl-XML-Parser x86_64 2.44-11.el8 AppStream 226 k
po-debconf noarch 1.0.21-2.el8 epel 150 k
xz-lzma-compat x86_64 5.2.4-3.el8 PowerTools 28 k

Transaction Summary
==========================================================================================================================
Install 51 Packages

Total download size: 12 M
Installed size: 36 M
Is this ok [y/N]: N

cheers,
PryMar56

PryMar56
Posts: 10
Joined: 2020/04/20 14:56:31

Re: how to install dh_testdir in centos 8?

Post by PryMar56 » 2020/10/09 04:27:58

To run pbuilder in el8 it helps to use devscripts too. This is not available from any repo, including EPEL.

I had to build it from fc31:
<mock-chroot><mock-chroot> bash-4.4$ ls -al ../RPMS
total 888
drwxrwxr-x 2 mockbuild mockbuild 4096 Oct 8 21:21 .
drwxrwxr-x 9 mockbuild mockbuild 4096 Mar 12 2020 ..
-rw-rw-r-- 1 mockbuild mockbuild 605976 Oct 8 21:22 devscripts-2.19.6-2.el8.x86_64.rpm
-rw-rw-r-- 1 mockbuild mockbuild 37288 Oct 8 21:22 devscripts-checkbashisms-2.19.6-2.el8.x86_64.rpm
-rw-rw-r-- 1 mockbuild mockbuild 22336 Oct 8 21:22 devscripts-debuginfo-2.19.6-2.el8.x86_64.rpm
-rw-rw-r-- 1 mockbuild mockbuild 17872 Oct 8 21:22 devscripts-debugsource-2.19.6-2.el8.x86_64.rpm
-rw-rw-r-- 1 mockbuild mockbuild 19404 Oct 8 21:07 perl-Devel-CheckBin-0.04-12.el8.noarch.rpm
-rw-rw-r-- 1 mockbuild mockbuild 48208 Oct 8 21:11 perl-Git-Wrapper-0.048-6.el8.noarch.rpm
-rw-rw-r-- 1 mockbuild mockbuild 80164 Oct 8 21:13 perl-List-Compare-0.55-1.el8.noarch.rpm
-rw-rw-r-- 1 mockbuild mockbuild 25160 Oct 8 21:21 perl-Sort-Versions-1.62-13.el8.noarch.rpm

<mock-chroot><mock-chroot> bash-4.4$ ls -al ../SRPMS/
total 1048
drwxrwxr-x 2 mockbuild mockbuild 4096 Oct 8 21:22 .
drwxrwxr-x 9 mockbuild mockbuild 4096 Mar 12 2020 ..
-rw-rw-r-- 1 mockbuild mockbuild 869296 Oct 8 21:16 devscripts-2.19.6-2.el8.src.rpm
-rw-rw-r-- 1 mockbuild mockbuild 19894 Oct 8 21:08 perl-Devel-CheckBin-0.04-12.el8.src.rpm
-rw-rw-r-- 1 mockbuild mockbuild 41208 Oct 8 21:11 perl-Git-Wrapper-0.048-6.el8.src.rpm
-rw-rw-r-- 1 mockbuild mockbuild 97538 Oct 8 21:14 perl-List-Compare-0.55-1.el8.src.rpm
-rw-rw-r-- 1 mockbuild mockbuild 25614 Oct 8 21:22 perl-Sort-Versions-1.62-13.el8.src.rpm

Post Reply

Return to “CentOS 8 - General Support”