Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2012 13:47:26 GMT
From:      Vladimir <ln@ruweb.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167965: if to make port (www/apache22) with an option: WITH_ALL_STATIC_MODULES=yes, suexec won't belong to this port.
Message-ID:  <201205161347.q4GDlQSU089425@red.freebsd.org>
Resent-Message-ID: <201205161350.q4GDo12t070351@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167965
>Category:       ports
>Synopsis:       if to make port (www/apache22) with an option: WITH_ALL_STATIC_MODULES=yes, suexec won't belong to this port.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 13:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir
>Release:        
>Organization:
>Environment:
>Description:
if to make port (www/apache22) with an option: WITH_ALL_STATIC_MODULES=yes, suexec won't belong to this port.
>How-To-Repeat:
problem example:
==============================================================
# cat /etc/make.conf
.if ${.CURDIR:M*/www/apache22}
    WITH_ALL_STATIC_MODULES=yes
    SUEXEC_DOCROOT=/ home/
    SUEXEC_LOGFILE=/ var/log/httpd/suexec_log
    WITH_SUEXEC=yes
    SUEXEC_UIDMIN=100
    SUEXEC_GIDMIN=100
    SUEXEC_CALLER="apache"
.endif

# ls -al /usr/local/sbin/suexec
ls: /usr/local/sbin/suexec: No such file or directory

#cd /usr/ports/www/apache22

# make clean && make install clean

# ls -al /usr/local/sbin/suexec
-rwsr-xr-x  1 root  wheel  25404 May 13 08:36 /usr/local/sbin/suexec

# pkg_which /usr/local/sbin/suexec
[Updating the pkgdb <format:b db_btree> in /var/db/pkg ... - 244 packages found (-1 +1) (...). done]
?

# grep 'sbin/suexec' /var/db/pkg/apache-2.2.22_5/+CONTENTS
@comment sbin/suexec

#pkg_delete -f apache-2.2.22_5

# ls -al /usr/local/sbin/suexec
-rwsr-xr-x  1 root  wheel  25404 May 13 08:36 /usr/local/sbin/suexec
==============================================================



example without the option: WITH_ALL_STATIC_MODULES=yes 
(there is not problem)
==============================================================
# cat /etc/make.conf
.if ${.CURDIR:M*/www/apache22}
    SUEXEC_DOCROOT=/ home/
    SUEXEC_LOGFILE=/ var/log/httpd/suexec_log
    WITH_SUEXEC=yes
    SUEXEC_UIDMIN=100
    SUEXEC_GIDMIN=100
    SUEXEC_CALLER="apache"
.endif

# ls -al /usr/local/sbin/suexec
ls: /usr/local/sbin/suexec: No such file or directory

#cd /usr/ports/www/apache22

# make clean && make install clean

# ls -al /usr/local/sbin/suexec
-rwsr-xr-x  1 root  wheel  25404 May 13 08:42 /usr/local/sbin/suexec

# pkg_which /usr/local/sbin/suexec
[Updating the pkgdb <format:b db_btree> in /var/db/pkg ... - 244 packages found (-1 +1) (...). done]
apache-2.2.22_5

# grep 'sbin/suexec' /var/db/pkg/apache-2.2.22_5/+CONTENTS 
sbin/suexec
==============================================================

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205161347.q4GDlQSU089425>