Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346941 - www-servers/uwsgi-0.9.6.6 Version bump
Summary: www-servers/uwsgi-0.9.6.6 Version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-27 10:55 UTC by Alexander Soloviëv
Modified: 2011-02-18 19:07 UTC (History)
4 users (show)

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


Attachments
ebuild for 0.9.6.5 version (uwsgi-0.9.6.5.ebuild,837 bytes, text/plain)
2010-11-27 10:56 UTC, Alexander Soloviëv
Details
init.d/uwsgi (uwsgi,1.07 KB, text/plain)
2011-01-12 13:55 UTC, Alexander Soloviëv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Soloviëv 2010-11-27 10:55:16 UTC
Ebuild for current stable version uwsgi-0.9.6.5

Reproducible: Always
Comment 1 Alexander Soloviëv 2010-11-27 10:56:03 UTC
Created attachment 255563 [details]
ebuild for 0.9.6.5 version
Comment 2 Alexandru Scvortov 2010-12-24 00:22:08 UTC
uwsgi-0.9.6 adds support for the --ini-paste paramater which simplifies starting uwsgi significantly.  It would be really nice to have.
Comment 3 Alexandru Scvortov 2010-12-24 00:30:15 UTC
(In reply to comment #1)
> Created an attachment (id=255563) [details]
> ebuild for 0.9.6.5 version
> 

Ebuild works for me.  Cheers.
Comment 4 Alexander Soloviëv 2010-12-27 20:46:10 UTC
How many years must elapse before this ebuild will be in portage tree?
Comment 5 Stefan de Konink 2010-12-30 08:15:36 UTC
Since 0.9.6.6 is out now, lets include that directly.
Comment 6 Alexander Soloviëv 2010-12-30 11:47:56 UTC
(In reply to comment #5)
> Since 0.9.6.6 is out now, lets include that directly.
> 

ebuild for 0.9.6.6 is the same, just need to be renamed to uwsgi-0.9.6.6.ebuild
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2011-01-07 14:23:37 UTC
bumped, but I p.masked it for now since it didn't compile out of the box for me.
Can you please test and report back?
I also added optional apache mod_uwsgi/Ruwsgi support.

@hollow: sorry for stepping on your toes
Comment 8 Torsten Kurbad 2011-01-11 14:14:44 UTC
(In reply to comment #7)
> bumped, but I p.masked it for now since it didn't compile out of the box for
> me.

This is because the gcc version is being determined in a very ugly fashion during build in the file uwsgiconfig.py (line 88).

A quick fix is to change the index of the last .split in that line from [4] to [1]. A much better way would be to search the last line of 'gcc -v' for a version number string (i.e. major.minor.patchlevel) via regex. Unfortunately, I don't have time yet to do a proper patch. Perhaps someone else would be willing? ;-)

Best regards,
Torsten
Comment 9 Tiziano Müller (RETIRED) gentoo-dev 2011-01-11 14:35:49 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > bumped, but I p.masked it for now since it didn't compile out of the box for
> > me.
> 
> This is because the gcc version is being determined in a very ugly fashion
> during build in the file uwsgiconfig.py (line 88).
> 
> A quick fix is to change the index of the last .split in that line from [4] to
> [1].
This is what I did in the version bump.

> A much better way would be to search the last line of 'gcc -v' for a
> version number string (i.e. major.minor.patchlevel) via regex. Unfortunately, I
> don't have time yet to do a proper patch. Perhaps someone else would be
> willing? ;-)

I guess we have to do this since I guess the current version bump won't compile for people with gcc-4.4 and older.
Comment 10 Alexander Soloviëv 2011-01-11 21:59:25 UTC
> I guess we have to do this since I guess the current version bump won't compile
> for people with gcc-4.4 and older.

Yes, that is right. But what is the problem? I've checked gcc version strings for 3.4.6 and 4.5.2 and its look like 'gcc version 3.4.6 ...' and 'gcc version 4.5.2 ...'.  Post please your version strings.


Comment 11 Tiziano Müller (RETIRED) gentoo-dev 2011-01-12 07:00:00 UTC
~ $ gcc --version
gcc (Gentoo 4.5.2 p1.0, pie-0.4.5) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.
Comment 12 Tiziano Müller (RETIRED) gentoo-dev 2011-01-12 07:06:22 UTC
I guess we should patch it to use '-dumpversion' instead of '-v'. Since the configure core seems to be gcc-specific anyway upstream could accept the patch.
Comment 13 Tiziano Müller (RETIRED) gentoo-dev 2011-01-12 07:20:02 UTC
ok, that works for me on sparc with gcc-4.4, x86 with gcc-4.1 and amd64 with gcc-4.5.2. Just pushed the patch.
A test with gcc-3.x would be appreciated, but give it some time to propagate to the mirrors.
Comment 14 Alexander Soloviëv 2011-01-12 08:53:01 UTC
works with gcc-3.4.6-r2 x86
Comment 15 Nikolaj Šujskij 2011-01-12 10:28:56 UTC
Maybe it's time to put it in ~arch? Seems like it does work decently, though my system is quite a common ~amd64-up-to-date one.
Comment 16 Tiziano Müller (RETIRED) gentoo-dev 2011-01-12 10:42:49 UTC
I agree, only thing I'd like to integrate before unmasking uwsgi is a simple init.d/uwsgi script.

Analog to the one from spawn-fcgi (symlinking for different configs), but with only two variables in conf.d/uwsgi:
OPTIONS="..."
PIDFILE="..."

PIDFILE must then match the one given as a commandline option via OPTIONS or in a configuration-file. And OPTIONS is passed to uwsgi.

Furthermore I'd like to establish the following directories for uwsgi configuration, log and sockets:

/var/run/uwsgi ... sockets and pid-file
/var/log/uwsgi ... logfiles
/etc/uwsgi ... configurations (if any)

Opinions?
Comment 17 Nikolaj Šujskij 2011-01-12 13:14:18 UTC
(In reply to comment #16)
> I agree, only thing I'd like to integrate before unmasking uwsgi is a simple
> init.d/uwsgi script.
> 
> Analog to the one from spawn-fcgi (symlinking for different configs), but with
> only two variables in conf.d/uwsgi:
> OPTIONS="..."
> PIDFILE="..."
> 
> PIDFILE must then match the one given as a commandline option via OPTIONS or in
> a configuration-file. And OPTIONS is passed to uwsgi.
> 
> Furthermore I'd like to establish the following directories for uwsgi
> configuration, log and sockets:
> 
> /var/run/uwsgi ... sockets and pid-file
> /var/log/uwsgi ... logfiles
> /etc/uwsgi ... configurations (if any)
> 
> Opinions?
> 

There's https://bugs.gentoo.org/show_bug.cgi?id=340058 concerning this issue.
Comment 18 Alexander Soloviëv 2011-01-12 13:54:42 UTC
As usage of uwsgi suggest using a signle server for each application, net.lo style scripts is more preferable. Below i'm attaching example init sctipt with features:

1. named variables like ${appname}_varname from conf.d/uwsgi for each application. Now supports _options (extra launch options), _binary (binary path for application) and _socket.

2. Common settings for all applications. Now support only default_binary.

3. Daemon settings for application should be provided by one of the uwsgi supported way: via xml file (passed in _options path like -x path), ini file, command line (i.e. via ${appname}_option config string) or others.

4. Use /var/run/uwsgi/ base path for pid files (format ${appname}.pid) and default sockets base path { format ${appname}.socket }
 
5. Log file is /var/log/uwsgi/${appname}
Comment 19 Alexander Soloviëv 2011-01-12 13:55:04 UTC
Created attachment 259620 [details]
init.d/uwsgi
Comment 20 Benedikt Böhm (RETIRED) gentoo-dev 2011-02-18 19:07:51 UTC
0.9.6.6 is unmasked. init script is tracked in bug #340058