Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454970 - =www-servers/apache-2.2.23 init scrips fail
Summary: =www-servers/apache-2.2.23 init scrips fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: AMD64 FreeBSD
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-01 09:28 UTC by Denis I. Polukarov
Modified: 2019-04-20 13:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for /etc/init.d/apache2 (454970-init-apache2.patch,442 bytes, patch)
2013-02-01 11:19 UTC, Yuta SATOH
Details | Diff
sample patch for eclass/apache-2.eclass (454970-apache2-eclass.patch,361 bytes, patch)
2013-02-01 11:20 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis I. Polukarov 2013-02-01 09:28:42 UTC
gfbsd xxx # rc-service apache2 start
 * This init script works only with openrc (baselayout-2).
 * If you still need baselayout-1.x, please, use
 * apache2.initd-baselayout-1 from /usr/share/doc/apache2-*/
 * Starting apache2 ...
[Fri Feb 01 13:22:25 2013] [warn] (2)No such file or directory: Failed to enable the 'dataready' Accept Filter                                                                                               [ ok ]
gfbsd xxx # emerge -vp baselayout openrc apache

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] www-servers/apache-2.2.23:2  USE="ssl threads -debug -doc -ldap (-selinux) -static -suexec" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="event -itk -peruser -prefork -worker" 0 kB
[ebuild   R    ] sys-apps/baselayout-2.2  USE="-build" 0 kB
[ebuild   R    ] sys-apps/openrc-0.11.8  USE="ncurses unicode -debug -newnet (-pam) (-prefix) (-selinux) -static-libs" 0 kB

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
gfbsd xxx # uname -a
FreeBSD gfbsd 9.1-Gentoo FreeBSD Gentoo 9.1 #0: Thu Jan 31 13:22:19 MSK 2013     root@gfbsd:/usr/src/sys/amd64/compile/vm  amd64
gfbsd xxx #
Comment 1 Yuta SATOH 2013-02-01 11:19:09 UTC
Created attachment 337580 [details, diff]
sample patch for /etc/init.d/apache2

File /etc/init.d/sysfs does not exist on FreeBSD.
Changed to check file on only Linux.
Comment 2 Yuta SATOH 2013-02-01 11:20:50 UTC
Created attachment 337582 [details, diff]
sample patch for eclass/apache-2.eclass

Fix the following warning.

[warn] (2)No such file or directory: Failed to enable the 'dataready' Accept Filter
Comment 3 Denis I. Polukarov 2013-02-01 15:46:23 UTC
I've no error with this patches. Thanks.
Comment 4 Naohiro Aota gentoo-dev 2013-02-06 03:10:05 UTC
(In reply to comment #1)
> Created attachment 337580 [details, diff] [details, diff]
> sample patch for /etc/init.d/apache2
> 
> File /etc/init.d/sysfs does not exist on FreeBSD.
> Changed to check file on only Linux.

"$(uname -s)" should be "$RC_UNAME" instead. 

Anyway, I'll add the patch in a few days.
Comment 5 Naohiro Aota gentoo-dev 2013-03-04 07:50:15 UTC
I found the init script is only touched by patrick. Could you take a look at the patche please?
Comment 6 Naohiro Aota gentoo-dev 2013-03-21 04:34:19 UTC
@Patrick could you take a look at the patch please?
Comment 7 Pacho Ramos gentoo-dev 2017-11-09 11:03:18 UTC
is this still valid with 2.4.29?
Comment 8 Larry the Git Cow gentoo-dev 2019-04-20 13:43:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c9415811b77a1e4759fd653fab89d272f724d01

commit 6c9415811b77a1e4759fd653fab89d272f724d01
Author:     Yuta SATOH <nigoro.dev@gmail.com>
AuthorDate: 2019-04-20 13:40:36 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-04-20 13:43:00 +0000

    Improved elog message for userland_BSD systems
    
    so users don't see this warning:
    
      [warn] (2)No such file or directory: Failed to enable the 'dataready'
      Accept Filter
    
    Closes: https://bugs.gentoo.org/454970
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 eclass/apache-2.eclass | 3 +++
 1 file changed, 3 insertions(+)