Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52517 - jinzora (New Package)
Summary: jinzora (New Package)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
: 121127 201236 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-30 19:57 UTC by Tom Hosiawa
Modified: 2007-12-04 20:36 UTC (History)
8 users (show)

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


Attachments
/jinzora-1.1.ebuild (jinzora-1.1.ebuild,992 bytes, text/plain)
2004-10-26 21:40 UTC, Tom Hosiawa
Details
postinstall-en.txt (postinstall-en.txt,639 bytes, text/plain)
2004-10-26 21:41 UTC, Tom Hosiawa
Details
jinzora-2.0.1_rc2.ebuild (jinzora-2.0.1_rc2.ebuild,760 bytes, text/plain)
2005-04-29 14:44 UTC, Tom Hosiawa
Details
postinstall-en.txt (postinstall-en.txt,567 bytes, text/plain)
2005-04-29 14:45 UTC, Tom Hosiawa
Details
jinzora-2.0.1_rc2.ebuild (jinzora-2.0.1_rc2.ebuild,1.28 KB, text/plain)
2005-05-07 19:01 UTC, Tom Hosiawa
Details
jinzora-2.0.1_rc2.ebuild (jinzora-2.0.1_rc2.ebuild,1.28 KB, text/plain)
2005-05-07 19:03 UTC, Tom Hosiawa
Details
jinzora-2.2.1.ebuild (jinzora-2.2.1.ebuild,1.36 KB, text/plain)
2005-08-28 19:55 UTC, Tom Hosiawa
Details
postinstall-en.txt (postinstall-en.txt,580 bytes, text/plain)
2005-08-28 19:56 UTC, Tom Hosiawa
Details
jinzora-2.2.1.ebuild (jinzora-2.2.1.ebuild,1.45 KB, text/plain)
2005-10-12 17:47 UTC, Tom Hosiawa
Details
postinstall-en.txt (postinstall-en.txt,508 bytes, text/plain)
2005-10-13 06:27 UTC, Tom Hosiawa
Details
jinzora-2.2.1-r1.ebuild (jinzora-2.2.1-r1.ebuild,1.45 KB, text/plain)
2005-10-22 15:24 UTC, Art Wallace
Details
Jinzora 2.3 ebuild (jinzora-2.3.ebuild,1.45 KB, text/plain)
2005-11-11 11:01 UTC, Ben Dodson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hosiawa 2004-05-30 19:57:05 UTC
This is a request to add jinzora, a media streamer, to portage.

Reproducible: Always
Steps to Reproduce:
Comment 1 Tom Hosiawa 2004-05-31 08:41:32 UTC
http://www.jinzora.org
Comment 2 Sven Wegener gentoo-dev 2004-05-31 10:56:26 UTC
http://gentoo.mirror.at.stealer.net/portage_overlay/media-sound/jinzora/

I suggest that a web-apps herder takes a look over this too, adding web-apps@g.o to CC
Comment 3 Tom Hosiawa 2004-10-26 21:40:32 UTC
Created attachment 42661 [details]
/jinzora-1.1.ebuild

used sven's ebuild to make a new one for version 1.1

I've tested it, and everything appears to work except it can't find the gd
library. It's a minor bug though, as it just disables some image functions
Comment 4 Tom Hosiawa 2004-10-26 21:41:28 UTC
Created attachment 42662 [details]
postinstall-en.txt
Comment 5 Tom Hosiawa 2004-10-27 08:13:05 UTC
The gd bug is no more, apparently I forgot to enable the gd use flag on mod_php. Everything works now perfectly.
Comment 6 Tom Hosiawa 2005-04-29 14:44:03 UTC
Created attachment 57619 [details]
jinzora-2.0.1_rc2.ebuild

new ebuild for jinzora 2.0
Comment 7 Tom Hosiawa 2005-04-29 14:45:08 UTC
Created attachment 57620 [details]
postinstall-en.txt

updated postinstall-en for jinzora 2.0
Comment 8 Shiner_Man 2005-05-07 15:57:29 UTC
The above ebuild ('jinzora-2.0.1_rc2.ebuild') works flawlessly for jinzora-2.0.1.  Can we get this into portage?  
Comment 9 Tom Hosiawa 2005-05-07 19:01:00 UTC
Created attachment 58308 [details]
jinzora-2.0.1_rc2.ebuild

* added use flag for encode (to use lame for resampling)
* fixed binary location of lame to /usr/bin/lame
* added jinzora's php.in recommendations
Comment 10 Tom Hosiawa 2005-05-07 19:03:27 UTC
Created attachment 58309 [details]
jinzora-2.0.1_rc2.ebuild

* forgot to add encode to IUSE last time
Comment 11 Shiner_Man 2005-05-07 20:32:57 UTC
Isn't jinzora 2.0.1 marked stable and not a release candidate anymore?
Comment 12 Tom Hosiawa 2005-05-07 22:11:41 UTC
your right, just rename the file to jinzora-2.0.1.ebuild
Comment 13 Shiner_Man 2005-05-11 05:51:17 UTC
Roger that...what is the status on this?  Its working great for me.
Comment 14 Justin Lambert 2005-06-12 13:26:29 UTC
works great for me as well.
Comment 15 Ben Dodson 2005-08-26 19:05:02 UTC
Can we get a few more USE flags added, like postgres (support added in 2.1)? Is
there any USE flag for mpd? I am one of the main developers of Jinzora and a
Gentoo user to boot, so I would love to see this move into Portage and can
probably maintain it although I haven't done much with ebuilds..
Comment 16 Tom Hosiawa 2005-08-28 19:55:31 UTC
Created attachment 67127 [details]
jinzora-2.2.1.ebuild

I've updated the ebuild to 2.2 with the postgres useflag. I don't see anything
in the docs about postgres, so I'm assuming it works with any version?

What is mpd?
Comment 17 Tom Hosiawa 2005-08-28 19:56:00 UTC
Created attachment 67128 [details]
postinstall-en.txt
Comment 18 Art Wallace 2005-09-03 14:28:36 UTC
Request lighttpd and sqlite support be added to ebuild. User should choose 
either apache or lighttpd for install requirement.
Comment 19 Joel 2005-10-09 10:40:36 UTC
I ran into this bug:

http://www.jinzora.com/forums/viewtopic.php?t=2021&highlight=gentoo

It seems to be Gentoo-specific as those are all the users that seem to run into
this. It showed up on the forums several times. The fix in this post works.
Everything else, worksforme.

Maybe the ebuild should also run a sed for each of the supported executables and
not just lame?
Comment 20 Joel 2005-10-11 21:17:44 UTC
Also, the ebuild needs to make the apache user owner of the
jinzora/frontend/frontends/*/settings.php files otherwise you can't change the
front end settings from the web.
Comment 21 Tom Hosiawa 2005-10-12 17:47:55 UTC
Created attachment 70519 [details]
jinzora-2.2.1.ebuild

I've added use flag for lighttpd and sqlite. I hope I'm doing the choice
between apache and lighttpd correctly.

Changing frontends seems to work for me without having to set the owner/group
of frontends. Are you sure it's not working for you?

I'm still looking into the bug about lame.
Comment 22 Tom Hosiawa 2005-10-12 18:31:29 UTC
Actually, after playing around a little more with the frontends, it doesn't
appear to be working for me. The thing though, setting the owner/group to apache
for all frontends does hell.
Comment 23 Tom Hosiawa 2005-10-12 19:00:35 UTC
oops. not "hell". i meant "doesn't help"
Comment 24 Tom Hosiawa 2005-10-12 19:06:50 UTC
Looking through the code, it appears something is causing the escape of the
first quote in " -S --silent --quiet -m j -b ". I'm wondering if it maybe a
specific php version problem?
Comment 25 Joel 2005-10-12 20:59:56 UTC
The problem isn't changing front ends, it's changing the settings in the front
ends. For example:

System Tools | Settings Manager | Front End Settings | Pick your front end

Those settings are stored in:

jinzora/frontend/frontends/*/settings.php

If the httpd user doesn't own the settings.php files, it won't be able to write
the settings. In fact, the code won't even display an Update button. The httpd
user doesn't need to own the whole directory, just that settings.php like the
settings.php that is in the jinzora root. (Unless we're looking at two different
problems.)
Comment 26 Tom Hosiawa 2005-10-13 06:27:00 UTC
Created attachment 70560 [details]
postinstall-en.txt

You're right. I've updated the postinstall to instruct the user update the
owner/group of those frontend settings.php

This issue should probably be made aware of upstream since the installation
doesn't ask the frontend settings.php to be writable
Comment 27 Art Wallace 2005-10-18 16:20:00 UTC
Tom, thanks for adding lighttpd to the ebuild. Should it have "virtual/httpd-
php" as part of the ebuild?

http://article.gmane.org/gmane.linux.gentoo.devel/30050
Comment 28 Art Wallace 2005-10-22 15:11:33 UTC
Add ~ppc to ebuild
Comment 29 Art Wallace 2005-10-22 15:24:46 UTC
Created attachment 71224 [details]
jinzora-2.2.1-r1.ebuild
Comment 30 Joe McCann (RETIRED) gentoo-dev 2005-11-06 10:27:02 UTC
I had problems setting up the sqlite db when trying to install this package. 
It looks like sqlite is broken with this release but has been fixed(almost) in 
later nightly releases. http://www.jinzora.org/forums/viewtopic.php?
t=2479&highlight=sqlite for anybody having troubles
Comment 31 Ben Dodson 2005-11-11 11:01:46 UTC
Created attachment 72683 [details]
Jinzora 2.3 ebuild

Update for 2.3. I commented out a part of src_install that I don't think is
necessary. Are there any USE keywords for things like: MPD (for the jukebox)
FLAC/Musepack/etc. (for resampling from those formats)?
Comment 32 Ben Dodson 2005-11-11 11:06:02 UTC
Comment on attachment 72683 [details]
Jinzora 2.3 ebuild

># Copy:right 1999-2004 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>inherit versionator webapp
>
>DESCRIPTION="Web-based media streamer, desgined to stream mp3s (or any streaming capbable media/video)"
>HOMEPAGE="http://www.jinzora.org/"
>MY_PV="$(get_version_component_range 1-3)"
>SRC_URI="mirror://sourceforge/${PN}/j${MY_PV}.tar.gz"
>
>LICENSE="GPL-2"
>KEYWORDS="~x86 ~ppc"
>IUSE="encode gd lighttpd mysql postgres sqlite"
>
>DEPEND="|| (
>		lighttpd? ( www-servers/lighttpd )
>		>=net-www/apache-1.3
>	)
>	virtual/httpd-php
>	encode? ( media-sound/lame )
>	gd? ( media-libs/gd )
>	mysql? ( dev-db/mysql )
>	postgres? ( dev-db/postgresql )
>	sqlite? ( dev-db/sqlite )"
>	
>MY_PV="$(get_major_version)"
>S=${WORKDIR}/${PN}${MY_PV}
>
>src_unpack() {
>	unpack ${A}
>	cd ${S}
>
>	# fix location of lame
>	for file in docs/english/lofi.html install/defaults.php; do
>		sed -i -e "s:/usr/local/bin/lame:/usr/bin/lame:g" ${file}
>	done
>}
>
>src_install() {
>	webapp_src_preinst
>	
>	# install htdocs
>	touch ${S}/users.php ${S}/settings.php
>	cp -a . ${D}/${MY_HTDOCSDIR}
>
>	webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
>	webapp_src_install
>}
>
>pkg_postinst() {
>	einfo "Jinzora recommends the following settings for php (php.ini):"
>	einfo "    max_execution_time = 1200"
>	einfo "    memory_limit = 32M (or higher)"
>	einfo "    post_max_size = 32M (or higher)"
>	einfo "    file_uploads = 1 (on)"
>	einfo "    upload_max_filesize = 32M (or higher)"
>
>	webapp_pkg_postinst
>}
Comment 33 Ben Dodson 2005-11-11 11:06:31 UTC
Comment on attachment 72683 [details]
Jinzora 2.3 ebuild

># Copy:right 1999-2004 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>inherit versionator webapp
>
>DESCRIPTION="Web-based media streamer, desgined to stream mp3s (or any streaming capbable media/video)"
>HOMEPAGE="http://www.jinzora.org/"
>MY_PV="$(get_version_component_range 1-3)"
>SRC_URI="mirror://sourceforge/${PN}/j${MY_PV}.tar.gz"
>
>LICENSE="GPL-2"
>KEYWORDS="~x86 ~ppc"
>IUSE="encode gd lighttpd mysql postgres sqlite"
>
>DEPEND="|| (
>		lighttpd? ( www-servers/lighttpd )
>		>=net-www/apache-1.3
>	)
>	virtual/httpd-php
>	encode? ( media-sound/lame )
>	gd? ( media-libs/gd )
>	mysql? ( dev-db/mysql )
>	postgres? ( dev-db/postgresql )
>	sqlite? ( dev-db/sqlite )"
>	
>MY_PV="$(get_major_version)"
>S=${WORKDIR}/${PN}${MY_PV}
>
>src_unpack() {
>	unpack ${A}
>	cd ${S}
>
>	# fix location of lame
>	for file in docs/english/lofi.html install/defaults.php; do
>		sed -i -e "s:/usr/local/bin/lame:/usr/bin/lame:g" ${file}
>	done
>}
>
>src_install() {
>	webapp_src_preinst
>	
>	# install htdocs
>	touch ${S}/settings.php
>	cp -a . ${D}/${MY_HTDOCSDIR}
>
>	webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
>	webapp_src_install
>}
>
>pkg_postinst() {
>	einfo "Jinzora recommends the following settings for php (php.ini):"
>	einfo "    max_execution_time = 1200"
>	einfo "    memory_limit = 32M (or higher)"
>	einfo "    post_max_size = 32M (or higher)"
>	einfo "    file_uploads = 1 (on)"
>	einfo "    upload_max_filesize = 32M (or higher)"
>
>	webapp_pkg_postinst
>}
Comment 34 Art Wallace 2005-11-12 15:20:00 UTC
What does jinzora 2.3.1 need to recognize sqlite during the web install 
requirement check? I have sqlite installed and set up in my PHP use flags. I 
thought enabling the php "dbx" flag would help but it then complains:
 * USE flag 'dbx' needs one of these additional flag(s) set:
 *    frontbase mssql odbc postgres sybase-ct oci8 oci8-instant-client

So what should I do? I'd rather not add another database engine to my box 
unless I absolutely have to.

Here's my current php setup:
[ebuild   R   ] dev-lang/php-4.4.0-r4  (-adabas) -apache +apache2 -bcmath 
+berkdb (-birdstep) +bzip2 -calendar -cdb +cgi +cjk -cli +crypt -ctype -curl -
curlwrappers -db2 +dba -dbase -dbmaker -dbx -debug -discard-path -doc -
empress -empress-bcs -esoob -exif -fastbuild (-fdftk) -filepro (-firebird) -
flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp -
hardenedphp -hyperwave-api +iconv -imap -informix -inifile (-interbase) -iodbc 
(-ipv6) -java-external -java-internal -kerberos -ldap -libedit -mcal -mcve -
memlimit -mhash -ming -mnogosearch -msql -mssql +mysql +ncurses +nls -oci8 (-
oci8-instant-client) -odbc -oracle7 -overload -ovrimos -pcntl +pcre -pear -
pfpro -pic -posix -postgres +readline -recode -sapdb -sasl +session -
sharedext -sharedmem -snmp -sockets -solid +spell +sqlite +ssl -sybase -sybase-
ct -sysvipc -threads +tiff +tokenizer +truetype -wddx +xml -xml2 -xmlrpc -xpm 
+xsl -yaz -zip +zlib 0 kB

I looked through the forum thread linked in this bug report but it seemed to 
deal with a known issue that was corrected before 2.3.0 was released. If 
that's not the case, what is needed to get this ebuild to work?
Comment 35 Ben Dodson 2005-11-14 07:21:33 UTC
Jinzora can use SQLite in two ways: The first and best is natively. Here you
need sqlite-php (I'm pretty sure) to get the native SQLite calls. But it should
also be able to use DBX as a fallback via the sqlite dbx extension. The
installer will report that SQLite is not found, but that DBX was, and you should
be able to proceed. If not, please post to the Jinzora forums so we can work it out.
Comment 36 Art Wallace 2005-11-14 21:54:03 UTC
If sqlite-php is required to use the sqlite functionality, then the jinzora 
ebuild needs to be updated to reflect that as a dependency.

But the sqlite-php ebuild looks to be in bad shape as it hasn't been seriously 
updated since Oct 2004. It depennds on dev-php/php-4.2.

So unless the ebuild for sqlite-php is updated, it would seem that Gentoo 
can't really support sqlite for Jinzora at this time. As far as I can tell, 
the DBX method can't be used without at least pulling in another database 
engine.
Comment 37 Art Wallace 2005-11-14 22:06:00 UTC
Of course if dev-lang/php +sqlite is the equivilent to dev-php/sqlite-php, 
then Jinzora isn't recognizing sqlite on my machine. I posted this information 
to the Jinzora forums as well.
Comment 38 Ben Dodson 2005-11-15 11:48:11 UTC
(In reply to comment #37)
> Of course if dev-lang/php +sqlite is the equivilent to dev-php/sqlite-php, 
> then Jinzora isn't recognizing sqlite on my machine. I posted this information 
> to the Jinzora forums as well.

Here's how I understand it:
*dev-lang/php +sqlite is not the same as dev-php/sqlite-php, but IMO it should be.
*DBX is an abstraction layer; there is an sqlite extension for it, but maybe dbx
doesn't recognize sqlite currently in its ebuild.
*PHP5 includes sqlite (the native calls) by default.
*Somehow, pear fits into the mix via: pear install sqlite

Check out your phpinfo() file to see what it says (<?php phpinfo(); ?>)
Comment 39 Art Wallace 2005-11-15 18:58:13 UTC
(In reply to comment #38)
> *DBX is an abstraction layer; there is an sqlite extension for it, but maybe 
dbx
> doesn't recognize sqlite currently in its ebuild.
That sounds reasonable but I don't know how to proceed. As I wrote, I can't 
enable DBX and only sqlite. It requires something else and I don't know how to 
fix it.

> *PHP5 includes sqlite (the native calls) by default.
Hmm, interesting. Maybe the sqlite flag should depend on PHP5 then?

I'm a bit leary on installing PHP5 on my PPC box. But if I installed PHP5 then 
that would be the only dependency required for sqlite?

> *Somehow, pear fits into the mix via: pear install sqlite
> Check out your phpinfo() file to see what it says (<?php phpinfo(); ?>)
What should I be looking for in that info?

I don't have pear installed on my machine. If it's required for sqlite, can we 
get it added to the ebuild?

I really have no idea what needs to be done here so I'll have to wait for the 
ebuild to be updated before progressing further.
Comment 40 Ben Dodson 2005-11-17 13:36:31 UTC
Unfortunately I think I did "pear install sqlite" and "emerge sqlite-php" at the
same time. Can you try emerging sqlite-php and restarting your webserver and see
if it works? In the phpinfo() page, there should be an sqlite section. There may
also be a dbx section, listing which modules are installed (hopefully sqlite is one)
Comment 41 Art Wallace 2005-11-17 19:00:19 UTC
Ben, the sqlite-php ebuild is too old for me to consider installing. My box 
just got through with the dev-php/php -> dev-lang/php plus the new apache 
ebuilds. I'd be much more willing to jump to PHP5 than downgrade back to the 
old PHP.

Perhaps a bug should be opened to get an updated sqlite-php ebuild. I'd submit 
it except that I really have no idea if what I'm asking is correct. Perhaps 
they intended for it to be replaced by dev-lang/php +sqlite. I've tried 
searching the Gentoo forums about this but haven't found any info.

On that page, there is no sqlite section nor a DBX section. In fact, "sqlite" 
is not found anywhere on that web page.
Comment 42 Sebastian Bergmann (RETIRED) gentoo-dev 2005-11-18 09:12:34 UTC
Use "USE=sqlite emerge dev-lang/php" instead of the dev-php/sqlite package.

This will work for both PHP 4 (using dev-php4/pecl-sqlite) and PHP 5 (using the
bundled SQLite extension).
Comment 43 Art Wallace 2005-11-18 10:48:00 UTC
That's what I did so there must be another issue with Jinzora recognizing 
sqlite on my box. As you can see in post #34, +sqlite is used for my dev-
lang/php-4.4.0-r4 compile.
Comment 44 Ben Dodson 2005-11-19 13:38:24 UTC
(In reply to comment #43)
> That's what I did so there must be another issue with Jinzora recognizing 
> sqlite on my box. As you can see in post #34, +sqlite is used for my dev-
> lang/php-4.4.0-r4 compile.

Jinzora just checks the following to see if sqlite is available natively:
if (function_exists("sqlite_query"))...

Did you check your phpinfo()?
Comment 45 Ben Dodson 2005-11-19 13:39:38 UTC
Ah, you say there's no mention of sqlite in your phpinfo() so I'm guessing there
is something wrong with the php ebuild..
Comment 46 Art Wallace 2005-11-19 14:08:06 UTC
Well, the good news is that after many tries (takes two hours to recompile PHP 
on 266 mhz PPC), I have successfully upgraded to PHP5 and gotten 
lighttpd+Jinzora 2.3.1 to recognize sqlite. I'm going to upgrade to Jinzora 
2.3.2 before I actually attempt to progress beyond step 2 of the Jinzora web 
installer.
Comment 47 Art Wallace 2005-11-19 14:10:14 UTC
(In reply to comment #45)
> Ah, you say there's no mention of sqlite in your phpinfo() so 
> I'm guessing there is something wrong with the php ebuild..
All I can offer is that I never had dev-lang/php with +pear nor any pear 
ebuilds installed. I did have dev-php4/pecl-sqlite 1.0.3 installed since the 
beginning.
Comment 48 Renat Lumpau (RETIRED) gentoo-dev 2005-12-20 09:28:20 UTC
jinzora is now in our unofficial overlay:
http://svn.gnqs.org/projects/gentoo-webapps-overlay/browser

Please note that the overlay is unofficial, not a Gentoo project, and not
supported. It is intended to provide easier access to new web applications.

Please file version bump requests and any other issues in the overlay trac.
Comment 49 Tom Hosiawa 2006-01-06 06:52:03 UTC
Is there a reason this bug was closed?

What connection does this unofficial overlay have to Gentoo. How is this ebuild going to be added to portage if there's no open bugs against it?
Comment 50 Jakub Moc (RETIRED) gentoo-dev 2006-01-06 06:57:12 UTC
(In reply to comment #49)

> What connection does this unofficial overlay have to Gentoo. How is this ebuild
> going to be added to portage if there's no open bugs against it?

It will be added if/when ready.

Comment 51 Renat Lumpau (RETIRED) gentoo-dev 2006-01-06 07:03:07 UTC
Just to clarify: all new web-app ebuilds should go through the overlay first. The biggest bottleneck in getting ebuilds into the official tree is finding a developer who is willing to maintain it. As you will notice, this bug has been open for ~1.5 years, and noone has volunteered so far. Our hope is that the overlay will make it easier for existing and new devs to see if there is a package they are interested in.

The overlay is maintained by the web-apps herd. It's called "unofficial" only because we don't want users to file bugs about it here.
Comment 52 Tom Hosiawa 2006-01-06 14:12:14 UTC
Thanks Renat, that's what I was wondering about. I didn't see anything documented before about the wep-app herd using a seperate testing repository
Comment 53 Alan Phillips 2006-01-09 09:22:17 UTC
Is working fine for me on amd64 (had to manually add ~amd64 to keywords).
Cheers.
Comment 54 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 00:48:22 UTC
*** Bug 121127 has been marked as a duplicate of this bug. ***
Comment 55 Jakub Moc (RETIRED) gentoo-dev 2007-12-04 15:21:17 UTC
*** Bug 201236 has been marked as a duplicate of this bug. ***