| Summary: | apache 2.0.47 ebuild fails if user apache has home dir set as /dev/null | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | ozymandias <ozy> |
| Component: | New packages | Assignee: | Gentoo Web Application Packages Maintainers <web-apps> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
This will not be a problem since Apache-2.0.48.ebuild is now the default. That dynamic detection crud was removed a little while ago... I dont know what you are hoping to gain from changing user apache's home directory to /dev/null. What is a "safety" reason? |
in apache-2.0.47.ebuild line 51 it says: local datadir=`getent passwd apache | cut -d: -f6` and if not there, datadir becomes /home/httpd, but if the home has been defined as /dev/null (for safety reasons) then portage will break while installing apache because it is going to move /dev/ null to /dev/null.backup which is 'not permitted' so also check for /dev/null in the ebuild. Reproducible: Always Steps to Reproduce: 1. edit passwd end set homedir of apache user to /dev/null 2. USE="apache2" emerge apache Actual Results: >>> Completed installing into /var/tmp/portage/apache-2.0.47/image/ >>> Merging net-www/apache-2.0.47 to / --- /dev/ !!! Failed to move /dev/null to /dev/null.backup !!! [Errno 1] Operation not permitted Expected Results: an installed apache 2.0.47 Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4, 2.4.21_rc2-gss ) ============================================================ ===== System uname: 2.4.21_rc2-gss i686 VIA Ezra Gentoo Base System version 1.4.2.9 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu x/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt encode foomaticdb gif gpm imlib jpeg libg++ mad mikmod motif ncurses nls opengl pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga java mysql sdl tcpd pam libwww perl python oggvorbis -X -gtk -gnome -kde -alsa -qt -cups -mpeg apache2 ssl ldap"