Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17181 - new aolserver 4.0 beta8 ebuild
Summary: new aolserver 4.0 beta8 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Ian Leitch (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 2024
Blocks: 22317 22318 22319 22320 22475 50870
  Show dependency tree
 
Reported: 2003-03-09 23:42 UTC by Chris Johnson
Modified: 2005-01-04 18:18 UTC (History)
1 user (show)

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


Attachments
aolserver-4.0.ebuild (really for aolserver-4.0 beta2 (aolserver-4.0.ebuild,2.25 KB, text/plain)
2003-03-09 23:45 UTC, Chris Johnson
Details
aolserver-4.0 beta3 ebuild. supercedes the previous ebuild. (aolserver-4.0.ebuild,2.25 KB, text/plain)
2003-03-21 23:27 UTC, Chris Johnson
Details
aolserver-4.0_beta8.ebuild (finally got the file name correct even!) (aolserver-4.0_beta8.ebuild,2.42 KB, text/plain)
2003-06-05 21:19 UTC, Chris Johnson
Details
aolserver-4.0_beta8.ebuild (updated to copy headers for use in openfts ebuild) (aolserver-4.0_beta8.ebuild,2.55 KB, text/plain)
2003-06-09 01:50 UTC, Chris Johnson
Details
aolserver-4.0_beta10.ebuild (with headers needed for use in openfts ebuild) (aolserver-4.0_beta10.ebuild,2.53 KB, text/plain)
2003-10-19 00:37 UTC, Chris Johnson
Details
aolserver-4.0_beta10.ebuild and associated files (aolserver-4.0_beta10.tgz,7.37 KB, application/octet-stream)
2003-10-22 12:24 UTC, Lee Denison
Details
aolserver4.0 beta 10 (with module support) (aolserver-4.0_beta10.tar.gz,7.34 KB, application/octet-stream)
2003-10-24 03:20 UTC, Rob Denison
Details
Aolserver 4.0 official release ebuild (aolserver-4.0.tar.gz,7.31 KB, application/octet-stream)
2003-12-02 04:13 UTC, Lee Denison
Details
Aolserver 4.0.8 ebuild (aolserver-4.0.8.tar.gz,7.07 KB, application/octet-stream)
2004-10-19 09:00 UTC, Lee Denison
Details
Aolserver 4.0.8 revised ebuild (aolserver-4.0.8.tar.gz,7.50 KB, application/x-gzip)
2004-11-04 09:29 UTC, Travis Cross
Details
Aolserver 4.0.8 revised ebuild (2) (aolserver-4.0.8.tar.gz,7.45 KB, application/x-gzip)
2004-11-05 17:51 UTC, Travis Cross
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Johnson 2003-03-09 23:42:48 UTC
New ebuild for aolserver 4.0-beta2. This ebuild can be easily maintained as aolserver moves to 4.0 
final.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chris Johnson 2003-03-09 23:46:00 UTC
Created attachment 9186 [details]
aolserver-4.0.ebuild (really for aolserver-4.0 beta2

Uploading first ebuild version. This is aolserver-4.0 beta2, but I have not
encoded the beta2 status in the ebuild name (feel free to correct me in a
convenient way). This ebuild will be easy to maintain and upgrade as aolserver
moves to 4.0 final very soon. 
Aolserver is a high-performance gpl'd web server backed by AOL and open source
since the late '90s. This ebuild should go in net-www/aolserver/ .

--Chris
Comment 2 Chris Johnson 2003-03-21 23:27:06 UTC
Created attachment 9686 [details]
aolserver-4.0 beta3 ebuild. supercedes the previous ebuild.

aolserver-4.0 beta3 finishes adding the openacs i18n tcl code and fixes some
bugs, including a wait to shutdown bug.
Comment 3 Chris Johnson 2003-06-05 21:19:50 UTC
Created attachment 12861 [details]
aolserver-4.0_beta8.ebuild (finally got the file name correct even!)

Beta bump. search for upcoming associated ebuilds that work with this beta8:
nssha1
nsxml
nspostgres
nscache
Comment 4 Chris Johnson 2003-06-09 01:50:29 UTC
Created attachment 12970 [details]
aolserver-4.0_beta8.ebuild (updated to copy headers for use in openfts ebuild)

I updated the ebuild to copy a few header files which are used in my openfts
driver ebuild (search for that).
Comment 5 Nathaniel Haggard 2003-06-10 10:41:12 UTC
emerge aolserver (aolserver-4.0_beta8)
configure: error: must build tcl with --enable-threads

Since Bug 2024 --enable-threads has been disabled in tcl.  I enabled it, emerged tcl and still received the same error message.
Comment 6 Chris Johnson 2003-06-10 15:25:56 UTC
Yes, it is correct that I had to hack the --enable-threads into the tcl ebuild; but i used the newer tcl-8.4.2-r1 ebuild. When I built that version of tcl enabling threads, then I could proceed with the aolserver ebuild without error. 
My apologies for not warning of this in the aolserver ebuild; I disagree with the resolution of bug 2024 by disabling threading... But I understand that tcl has been having problems with it. 

I had forgotten that I had to enable threading in tcl to get my aolserver to build... for those that know ebuilds better than I, what would be a good way to resolve this issue in my ebuild? 
Comment 7 Talli Somekh 2003-06-13 18:25:14 UTC
I'm having the same problem with --enable-threads. However, it seems that the problem is in 
emerging Tcl, as it gives an error, 

/usr/sbin/ebuild.sh: line 36: --enable-threads: command not found

This is right after the configuration and right before the compiling begins.

Chris, how did you enable threads when you built tcl?

talli
Comment 8 Chris Johnson 2003-06-13 22:07:43 UTC
You get the command not found because you uncomment the --enable-threads (which is after the || die part, so it doesn't go into the configure command). I had the exact same problem... But it should look like this: 
	./configure --host=${CHOST} \
				--prefix=/usr \
				--mandir=/usr/share/man \
			--enable-threads \
				|| die
	# threading is not recommended as it breaks some packages 
	#			--enable-threads \

Instead of this
	./configure --host=${CHOST} \
				--prefix=/usr \
				--mandir=/usr/share/man \
				|| die
	# threading is not recommended as it breaks some packages 
				--enable-threads \


Hope that helps! Then your tcl should build, then your aolserver...
Comment 9 Chris Johnson 2003-10-19 00:37:55 UTC
Created attachment 19446 [details]
aolserver-4.0_beta10.ebuild (with headers needed for use in openfts ebuild)

version bump. wonder when this ebuild will make it into cvs? Hopefully soon?
Comment 10 Ian Leitch (RETIRED) gentoo-dev 2003-10-19 17:39:25 UTC
Please see bug #2024 for developments on the TCL threads issue. 
Comment 11 Lee Denison 2003-10-22 12:24:47 UTC
Created attachment 19635 [details]
aolserver-4.0_beta10.ebuild and associated files

I modified chris's ebuild to install aolserver into the standard gentoo
filesystem, added service control scripts, a dependency on tcl and a check
that
tcl was compiled using USE=threads (which you can do using the ebuild attached
to bug 2024).

Hope that's useful to folks.
Comment 12 Rob Denison 2003-10-24 03:20:13 UTC
Created attachment 19723 [details]
aolserver4.0 beta 10 (with module support)
Comment 13 Rob Denison 2003-10-24 03:24:33 UTC
Comment on attachment 19723 [details]
aolserver4.0 beta 10 (with module support)

Same as lees patch but makes makefile.global available for module compilation
Comment 14 Lee Denison 2003-12-02 04:13:59 UTC
Created attachment 21582 [details]
Aolserver 4.0 official release ebuild
Comment 15 Ian Leitch (RETIRED) gentoo-dev 2004-06-19 08:25:53 UTC
To better fit in with Gentoo's way of handling vhosts (/var/www/<hostname>) I've had to make some changes to the ebuild and the default config. 

Whats different?
* config.tcl is installed to /etc/aolserver
* serverroot is now /var/aolserver
* default pageroot is /var/www/localhost/aolserver/www
* each vhost will then be /var/www/<host>/aolserver/www
  * I've modified config.tcl to use the new pageroot for vhosts, though I have        no means of testing it. 
* sample-config.tcl and the Makefiles go into /usr/share/aolserver
* Module configs go into /etc/aolserver/modules/<name>/. Anyone know how to tell nsperm thats where its configs are stored?
* Some smaller changes

Lots of testing is appreciated, especially the vhost setup!

http://dev.gentoo.org/~port001/aolserver/
Comment 16 Lee Denison 2004-10-19 09:00:20 UTC
Created attachment 42174 [details]
Aolserver 4.0.8 ebuild

I've added the Aolserver 4.0.8 ebuild based on the 4.0.5 version by Ian.  It's
identical except for some fixes in the init script and I changed the default
config file name to aolserver.tcl (to make the init script work).
Comment 17 Travis Cross 2004-11-04 09:29:54 UTC
Created attachment 43293 [details]
Aolserver 4.0.8 revised ebuild

This should obsolete the 'Aolserver 4.0.8 ebuild' submitted 2004-10-19 09:00
PST
Comment 18 Travis Cross 2004-11-04 09:31:36 UTC
I made some changes to the ebulid and default config.tcl to better match the directory structure conventions of Gentoo, and to generally make the ebuild (in my view) more readable.

What's different?
* logs are now placed in /var/log/aolserver
* the pid file is now placed in /var/run/aolserver
* the default pageroot is now /var/www/ns-localhost
* each vhost will then be /var/www/ns-<vhost> -or- /var/www/<vhost>
   - I find this to be a better solution than crafting a double hierarchy by creating an aolserver/www directory below each apache host (/var/www/myhost/aolserver/www 
Comment 19 Travis Cross 2004-11-04 09:31:36 UTC
I made some changes to the ebulid and default config.tcl to better match the directory structure conventions of Gentoo, and to generally make the ebuild (in my view) more readable.

What's different?
* logs are now placed in /var/log/aolserver
* the pid file is now placed in /var/run/aolserver
* the default pageroot is now /var/www/ns-localhost
* each vhost will then be /var/www/ns-<vhost> -or- /var/www/<vhost>
   - I find this to be a better solution than crafting a double hierarchy by creating an aolserver/www directory below each apache host (/var/www/myhost/aolserver/www  besides, who wants to type that?).  The way I see it, any content served by AOLserver is likely to be a logically different virtual host anyway, and there is no reason to try to subjugate aolserver content to the apache hierarchy.
* set 'enabledtclpages' to true by default in config.tcl
* I had some trouble with the mirror://sourceforge method of grabbing AOLserver sources, so I added a set of explicitly specified servers to SRC_URI
* Reduced the levels of complexity in how path variables are specified
* Spun the code to check that tcl was compiled with threads off to its own function
* Made heavier use of the ebuild doins, doexe routines as opposed to cp's
* Rearranged support files into directories by version (ie net-www/aolserver/files/4.0.8/config.tcl).  I find this makes things easier when it is time to roll an ebuild for a new version.
* Various smaller changes.
Comment 20 Travis Cross 2004-11-04 09:42:09 UTC
A couple more notes on 'Aolserver 4.0.8 revised ebuild' (2004-11-04 09:29 PST):
* I've tested this ebuild extensively, but additional testing would be appreciated!
* The ebuild compiles, installs, merges, and unmerges cleanly.
* It seems to me this ebuild is ready to be in CVS?

Thanks,
-- Travis
Comment 21 Travis Cross 2004-11-05 17:51:06 UTC
Created attachment 43381 [details]
Aolserver 4.0.8 revised ebuild (2)

Removed the explicitly specified URLs.	I thought the better of it.

-- Travis
Comment 22 Jowell Sabino 2004-11-12 14:47:06 UTC
ebuild 4.0.8 won't compile, because pthread_kill_other_threads_np() is missing. I use nptl, which I think makes the function obsolete. Is there a workaround?

ebuild 4.0 compiles ok even with nptl.
Comment 23 Ian Leitch (RETIRED) gentoo-dev 2004-11-16 04:28:47 UTC
I've not tried, but it seems pthread_kill_other_threads_np() is now a native feature of the NPTL. Simply commenting it out should be enough. 

These ebuilds will go into portage as soon I return to develoment (early December time).
Comment 24 Ian Leitch (RETIRED) gentoo-dev 2004-12-18 19:00:18 UTC
Well, its in at last. The modules will have to wait a few more days as I need to evaluate the need for an eclass, and if so, implement it. Leaving this bug open for a few more days for any feedback/problems.
Comment 25 Ian Leitch (RETIRED) gentoo-dev 2005-01-04 18:18:49 UTC
Resolving.