apache-tools 2.4.1. does not install htpasswd in /usr/sbin. The symlink in updated, /usr/bin/htpasswd -> /usr/sbin/htpasswd, but no htpasswd file in /usr/sbin Reproducible: Always
I have the same issue - htdigest too. Reverting to 2.2.22 resolves the issue.
Created attachment 312933 [details, diff] fix htpasswd installation The reason is simple: htpasswd (and ab) moved to bin and is replaced with a symlink to sbin by the package. Attached patch fixes that.
(In reply to comment #2) > Created attachment 312933 [details, diff] [details, diff] > fix htpasswd installation > > The reason is simple: htpasswd (and ab) moved to bin and is replaced with a > symlink to sbin by the package. Attached patch fixes that. Probably not, at least version 2.4.2 installs onla the symlink, not the binary : n22 ~ # ls -l /usr/bin/htpasswd /usr/bin/htdigest lrwxrwxrwx 1 root root 18 Jul 20 13:19 /usr/bin/htdigest -> /usr/sbin/htdigest lrwxrwxrwx 1 root root 18 Jul 20 13:19 /usr/bin/htpasswd -> /usr/sbin/htpasswd n22 ~ # ls -l /usr/sbin/htpasswd /usr/sbin/htdigest ls: cannot access /usr/sbin/htpasswd: No such file or directory ls: cannot access /usr/sbin/htdigest: No such file or directory
(In reply to comment #3) > > The reason is simple: htpasswd (and ab) moved to bin and is replaced with a > > symlink to sbin by the package. Attached patch fixes that. > > Probably not, at least version 2.4.2 installs onla the symlink, not the > binary : Well, the patch *does* fix it, it just hasn't made it into the tree, yet. Can someone please apply the patch or give a quick hint what needs to be changed in order for it to be applied? Thanks, Micha
(In reply to comment #4) > Well, the patch *does* fix it, it just hasn't made it into the tree, yet. Right, patch tested - works ok here too.
On my system: # equery check apache-tools !!! /usr/sbin/ab2-ssl does not exist !!! /usr/bin/htpasswd does not exist !!! /usr/bin/htdigest does not exist !!! /usr/sbin/ab-ssl does not exist * Checking app-admin/apache-tools-2.4.3 ... 31 out of 35 files passed Files /usr/bin{htpasswd,htdigest} don't exist at all, as already reported. The other two files are broken symlinks: ls -l /usr/sbin/ab2-ssl /usr/sbin/ab-ssl lrwxrwxrwx 1 root root 12 Oct 13 13:21 /usr/sbin/ab2-ssl -> /usr/sbin/ab lrwxrwxrwx 1 root root 12 Oct 13 13:21 /usr/sbin/ab-ssl -> /usr/sbin/ab That is, /usr/sbin/ab doesn't exist.
Confirming the problem on apache-tools-2.4.3 Attached patch fixes it, allowing htpasswd and htdigest to be installed, while also allowing ab-ssl and ab2-ssl symlinks to work as expected.
app-admin/apache-tools-2.4.3 confirm gentoo ~ # equery check apache-tools * Checking app-admin/apache-tools-2.4.3 ... !!! /usr/sbin/ab2-ssl does not exist !!! /usr/bin/htpasswd does not exist !!! /usr/bin/htdigest does not exist !!! /usr/sbin/ab-ssl does not exist 31 out of 35 files passed
gentoo ~ # equery f apache-tools * Searching for apache-tools ... * Contents of app-admin/apache-tools-2.4.3: /usr /usr/bin /usr/bin/ab /usr/bin/htdbm /usr/bin/htdigest -> /usr/sbin/htdigest /usr/bin/htpasswd -> /usr/sbin/htpasswd /usr/bin/httxt2dbm /usr/bin/logresolve /usr/modules /usr/sbin /usr/sbin/ab-ssl -> /usr/sbin/ab /usr/sbin/ab2-ssl -> /usr/sbin/ab /usr/sbin/checkgid /usr/sbin/checkgid2 -> /usr/sbin/checkgid /usr/sbin/fcgistarter /usr/sbin/fcgistarter2 -> /usr/sbin/fcgistarter /usr/sbin/htcacheclean /usr/sbin/htcacheclean2 -> /usr/sbin/htcacheclean /usr/sbin/rotatelogs /usr/sbin/rotatelogs2 -> /usr/sbin/rotatelogs /usr/share /usr/share/doc /usr/share/doc/apache-tools-2.4.3 /usr/share/doc/apache-tools-2.4.3/CHANGES.bz2 /usr/share/man /usr/share/man/man1 /usr/share/man/man1/ab.1.bz2 /usr/share/man/man1/dbmmanage.1.bz2 /usr/share/man/man1/htdbm.1.bz2 /usr/share/man/man1/htdigest.1.bz2 /usr/share/man/man1/htpasswd.1.bz2 /usr/share/man/man1/logresolve.1.bz2 /usr/share/man/man8 /usr/share/man/man8/htcacheclean.8.bz2 /usr/share/man/man8/rotatelogs.8.bz2
same error fox 2.4.3, so confirming
fixed in tree. Michael Weiser thanks for the patch.