Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42396 - unrealircd 3.2-rc1 can't start (fixed), but new version is here :)
Summary: unrealircd 3.2-rc1 can't start (fixed), but new version is here :)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Chuck Short (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-21 10:55 UTC by Bjarke Istrup Pedersen (RETIRED)
Modified: 2004-04-22 14:39 UTC (History)
0 users

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


Attachments
UnrealIRCD 3.2 RC2 ebuild (unrealircd-3.2_rc2.ebuild,2.96 KB, text/plain)
2004-04-13 09:23 UTC, Bjarke Istrup Pedersen (RETIRED)
Details
digest (digest-unrealircd-3.2_rc2,66 bytes, text/plain)
2004-04-13 09:24 UTC, Bjarke Istrup Pedersen (RETIRED)
Details
fixed mkunrealircd-cert (mkunrealircd-cert,312 bytes, text/plain)
2004-04-13 09:24 UTC, Bjarke Istrup Pedersen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-02-21 10:55:58 UTC
/etc/init.d/unrealircd start
 * Starting unrealircd...
chdir: No such file or directory
ERROR: Unable to change to directory '/var/tmp/portage/unrealircd-3.2_rc1/work/Unreal3.2'   

Reproducible: Always
Steps to Reproduce:
1. emerge unrealircd
2. configure it
3. /etc/init.d/unrealircd start
Comment 1 Chuck Short (RETIRED) gentoo-dev 2004-03-04 18:12:23 UTC
Fixed in cvs.
Comment 2 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-03-05 15:11:10 UTC
Well, still there, but this time it is:

 * Starting unrealircd...
Usage: ircd [-h servername] [-p portnumber] [-x loglevel] [-t] [-H]
Server not started

chdir: No such file or directory
ERROR: Unable to change to directory '/var/tmp/portage/unrealircd-3.2_rc1/image//etc/unrealircd'                                     [ !! ]

I think it gets some address hardcoded into it by the compiling, and since we are using sandbox the problem exists when it is copied outside the /var/tmp/portage folder.
Comment 3 Chuck Short (RETIRED) gentoo-dev 2004-03-05 18:22:04 UTC
*sigh* DPATH and SPATH are hardcoded in include/setup.h. This should get it working properly now.
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-03-05 20:19:35 UTC
Have a fix for this:

1) -------------------------------------------------
Change in ebuild:
        --prefix=/usr \
        --with-dpath=${D}/etc/unrealircd \
        --with-spath=/usr/bin/unrealircd \
To:
        --prefix=/usr \
        --with-dpath=/etc/unrealircd \
        --with-spath=/usr/bin/unrealircd \
2) -------------------------------------------------
chown /etc/unrealircd/tmp to the user that ircd is running as.
Comment 5 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-03-06 07:19:08 UTC
Works fine, but I have to use: USE="-ssl" emerge unrealircd to get it working, because it gives me: * Initializing SSL. [ !! ]
This is because I have not run /usr/bin/mkunrealircd-cert , but it just isn't there.
I have a few purposals for enhancements:
1: Change the user in /etc/conf.d/unrealircd to ircd as default
2: Make the ircd user and group, so they are there, and the user does not have to make them manually
Comment 6 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-03-06 07:26:34 UTC
well, making the certificate does not help.
Comment 7 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-08 08:22:27 UTC
Changing mkunrealircd-cert from:

#!/bin/bash

openssl req -new -config /etc/unrealircd/ssl.cnf -out /etc/unrealircd/server.req.pem -keyout /etc/unrealircd/server.key.pem -nodes
openssl req -x509 -config /etc/unrealircd/ssl.cnf -days 365 -in /etc/unrealircd/server.req.pem -key /etc/unrealircd/server.key.pem -out server.cert.pem

to:

#!/bin/bash

openssl req -new -config /etc/unrealircd/ssl.cnf -out /etc/unrealircd/server.req.pem -keyout /etc/unrealircd/server.key.pem -nodes
openssl req -x509 -config /etc/unrealircd/ssl.cnf -days 365 -in /etc/unrealircd/server.req.pem -key /etc/unrealircd/server.key.pem -out /etc/unrealircd/server.cert.pem

Fixes it.
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-08 08:22:51 UTC
By the way, 3.2 rc2 is out :)
Comment 9 Chuck Short (RETIRED) gentoo-dev 2004-04-13 09:17:45 UTC
Please add as an attachment.

Thanks
chuck
Comment 10 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-13 09:23:34 UTC
Created attachment 29209 [details]
UnrealIRCD 3.2 RC2 ebuild
Comment 11 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-13 09:24:03 UTC
Created attachment 29210 [details]
digest
Comment 12 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-13 09:24:29 UTC
Created attachment 29211 [details]
fixed mkunrealircd-cert
Comment 13 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-13 09:24:58 UTC
There you go, ebuild, digest and fixed mkunrealircd-cert :)
Comment 14 Chuck Short (RETIRED) gentoo-dev 2004-04-13 09:37:17 UTC
Added thanks for the script
Comment 15 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-15 01:03:47 UTC
Please add the ebuild to portage :)
Comment 16 Chuck Short (RETIRED) gentoo-dev 2004-04-22 05:01:49 UTC
Added
Comment 17 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-04-22 14:20:37 UTC
Partly fixed, but the ebuild should be _rc2 not _rc1 since it is RC2 :)
Comment 18 Chuck Short (RETIRED) gentoo-dev 2004-04-22 14:39:40 UTC
Added.