I'm trying to build *.deb packages into a chroot. When building the first package - bash, there were difficulties. I build packages using debootstrap and chroot.
I install debootstrap: sudo debootstrap stable /stable-chroot http://deb.debian.org/debian/;
I install the packages I need: apt -y install wget dpkg-dev devscripts dh-make locales;
Configure /etc/apt/source.list - add deb-src http://deb.debian.org/debian bullseye main
Downloading the source to build - apt source bash(or using wget from the debian website)
Install build dependency - apt build-dep bash
And, finally, build - debuild -b(also tried with dpkg-buildpackage)
As a result, I get this error when building a bash package:
mkdir -p stamps : # see #327477, needed to have HAVE_DEV_STDIN defined (test -d /dev/fd && test -r /dev/stdin < /dev/null)
|| (test -d /proc/self/fd && test -r /dev/stdin < /dev/null) make: *** [debian/rules:102: before-build] Error 1 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
I tried to find it on the Internet, but did not succeed, and my knowledge is not enough to understand the essence of this error on my own. Tell me, please, maybe I have to tweak something in the build environment or do I need some additional packages?