libeatmydata has unmet dependencies
package libeatmydata has unmet dependencies.
We can see that dpkg-architecture
(package dpkg-dev
) is required In file /usr/bin/eatmydata
export `dpkg-architecture|grep DEB_BUILD_MULTIARCH`
shlib="/usr/lib/$DEB_BUILD_MULTIARCH/eatmydata.sh"
if [ -f "$shlib" ]; then
. "$shlib"
else
echo "Unable to locate eatmydata shell library, it was not enabled" >&2
exec "$@"
fi
However, when installing dpkg-architecture
we can see that the script still does not work:
# dpkg-architecture|grep DEB_BUILD_MULTIARCH
DEB_BUILD_MULTIARCH=x86_64-linux-musl
This would have the /usr/bin/eatmydata
source shlib="/usr/lib/x86_64-linux-musl/eatmydata.sh"
which does not exist. The eatmydata.sh
script is actually installed to /usr/libexec/eatmydata.sh
To fix we need to change file /usr/bin/eatmydata
# diff -u eatmydata.old eatmydata.new
--- eatmydata.old 2022-06-25 14:48:51.248481927 +0200
+++ eatmydata.new 2022-06-25 14:47:53.167970315 +0200
@@ -15,9 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-export `dpkg-architecture|grep DEB_BUILD_MULTIARCH`
-
-shlib="/usr/lib/$DEB_BUILD_MULTIARCH/eatmydata.sh"
+shlib="/usr/libexec/eatmydata.sh"
if [ -f "$shlib" ]; then
. "$shlib"
else
I've tested this with Alpine-virt 3.16 and with Apline-lts x86_64 3.16.