Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126648 - Improved ebuild for Gallery 2.1 (due out soon!)
Summary: Improved ebuild for Gallery 2.1 (due out soon!)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL: http://gallery.menalto.com/
Whiteboard:
Keywords:
Depends on: 127432
Blocks:
  Show dependency tree
 
Reported: 2006-03-18 04:25 UTC by donald webster
Modified: 2006-04-26 05:50 UTC (History)
6 users (show)

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


Attachments
gallery-2.1.ebuild (gallery-2.1.ebuild,1.60 KB, application/octet-stream)
2006-03-18 04:27 UTC, donald webster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description donald webster 2006-03-18 04:25:48 UTC
Please!  Do not add this to portage UNTIL Gallery 2.1 is released!  Should be out 3/18 - 3/20-ish if all is according to plan.

This is a major update to G2, adding lots of features.  See the site if you care what :)

The changes to the ebuild:

1) added dcraw use flag (used by RAW module)
2) moved jhead into netpbm's use flag, because jhead is only used by netpbm
3) created zip and unzip use flags because they are optional
4) added warning and information on backing up G2's db and g2data dir because this upgrade makes a downgrade w/o a backup very very difficult.
Comment 1 donald webster 2006-03-18 04:27:00 UTC
Created attachment 82450 [details]
gallery-2.1.ebuild

G2.1 has not actually been released yet.  Currently at RC2, expected to release sometime this weekend (3/18-3/20'ish).
Comment 2 donald webster 2006-03-18 04:28:03 UTC
For testification, I downloaded the gallery-2.1-rc2a-full.tar.gz file and renamed it to gallery-2.1-full.tar.gz
Comment 3 donald webster 2006-03-18 23:16:59 UTC
Update:  Release of G2.1 is due 3/19 @ ~7:30PM PST
Comment 4 Omer Hasan 2006-03-23 16:06:02 UTC
Gallery 2.1 has been released as of Thursday, March 23, 2006. Hopefully this ebuild will get pushed up to the tree soon.
Comment 5 Renat Lumpau (RETIRED) gentoo-dev 2006-03-24 08:03:24 UTC
2.1 is in CVS. 

the dcraw flag will have to wait until media-gfx/dcraw is marked ~alpha, ~amd64, and ~hppa.
Comment 6 Renat Lumpau (RETIRED) gentoo-dev 2006-03-24 08:04:00 UTC
Make that ~alpha and ~hppa
Comment 7 Omer Hasan 2006-03-24 19:10:28 UTC
This ebuild seems to have a problem performing the actual upgrade. I had to manually do the cp -R * command in order to upgrade. I'm not sure why though since it all looks fine to me.
Comment 8 donald webster 2006-03-24 20:07:58 UTC
I personally don't see how there could be any issue, as it is literally a copy of the 2.0 ebuild with some USE flag changes and a warning added at the end.  The only change to anything pertaining to copy/build portion was the removal of an epatch line.

But I honestly only emerge it, I don't use it for my G2 and once emerged I don't use it with webapp-config.  Since i have "vhost" flag, it means all I end up with is a copy in /usr/share/webapps/.
Comment 9 donald webster 2006-03-24 20:09:36 UTC
"2.1 is in CVS. 

the dcraw flag will have to wait until media-gfx/dcraw is marked ~alpha,
~amd64, and ~hppa."

"Make that ~alpha and ~hppa"

I don't know the policy on use flags, but for something to be in a stable (ie, x86, etc) ebuild it can't have any ~unstable use flags?  Where might one find out about the problems moving dcraw to stable?
Comment 10 Renat Lumpau (RETIRED) gentoo-dev 2006-03-25 07:12:55 UTC
(In reply to comment #7)
> This ebuild seems to have a problem performing the actual upgrade. I had to
> manually do the cp -R * command in order to upgrade. I'm not sure why though
> since it all looks fine to me.

Could you post the actual command you had to do?
Comment 11 Renat Lumpau (RETIRED) gentoo-dev 2006-03-25 07:14:51 UTC
(In reply to comment #9)
> I don't know the policy on use flags, but for something to be in a stable (ie,
> x86, etc) ebuild it can't have any ~unstable use flags? 

All dependencies of an ebuild stable on a particular arch must also be stable. In this case, gallery is ~alpha, but dcraw is not keyworded ~alpha.

> Where might one find
> out about the problems moving dcraw to stable?

Bug #127432, which I filed yesterday.
Comment 12 Evildad 2006-03-27 22:31:09 UTC
I'm also having the Problem that an existing 2.04 Installation isn't actually upgraded.
I'm running it on AMD64.
Comment 13 Tobias Sager 2006-03-27 22:36:17 UTC
My upgrade with `webapp-config -U` worked without any problems (x86).
Comment 14 Evildad 2006-03-27 22:48:49 UTC
Shouldn't that be done automatically with the emerge of the new Version?
Comment 15 Tobias Sager 2006-03-27 23:01:08 UTC
(In reply to comment #14)
> Shouldn't that be done automatically with the emerge of the new Version?

Afaik that depends if you have USE flag vhosts set: if yes, then it's not
automatically upgraded (and you're told at the end of the merge), but requires
you to use webapp-config manually instead.
Comment 16 Evildad 2006-03-27 23:06:37 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > Shouldn't that be done automatically with the emerge of the new Version?
> 
> Afaik that depends if you have USE flag vhosts set: if yes, then it's not
> automatically upgraded (and you're told at the end of the merge), but requires
> you to use webapp-config manually instead.
> 
I haven't set the vhost USE flag and the only output at the end of the emerge i get is:

" * You are strongly encouraged to back up your database
 * and the g2data directory, as upgrading to 2.1.x will make
 * irreversible changes to both.
 *
 * g2data dir: cp -Rf /path/to/g2data/ /path/to/backup
 * mysql: mysqldump --opt -u username -h hostname -p database >      /path/to/backup.sql
 * postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql"

Comment 17 Tobias Sager 2006-03-27 23:16:21 UTC
Hm. Do you get a "vhosts USE flag not set - auto-installing using webapp-config" anywhere at the end of the merge?
The corresponding code for the installation is in the webapp eclass: http://www.gentoo.org/cgi-bin/viewcvs.cgi/eclass/webapp.eclass?rev=1.40&view=auto

And the installed app is not in /var/www/localhost/htdocs/gallery?
Comment 18 Evildad 2006-03-28 01:25:20 UTC
(In reply to comment #17)
> Hm. Do you get a "vhosts USE flag not set - auto-installing using
> webapp-config" anywhere at the end of the merge?
> The corresponding code for the installation is in the webapp eclass:
> http://www.gentoo.org/cgi-bin/viewcvs.cgi/eclass/webapp.eclass?rev=1.40&view=auto
> 
> And the installed app is not in /var/www/localhost/htdocs/gallery?
> 

The output above is all i get after the emerge.
And in /var/www/localhost/htdocs/gallery is only the 2.0.4 Version.

Should the ebuild make the upgrade itself or is this behaviour wanted by the Devs?

Comment 19 Renat Lumpau (RETIRED) gentoo-dev 2006-03-28 04:30:46 UTC
This was indeed a small bug in the ebuild. Either run w-c -U manually or upgrade to gallery-2.1-r1.
Comment 20 donald webster 2006-03-28 08:14:41 UTC
I'm curious what the bug is, if I introduced it or what not. :)
Comment 21 Renat Lumpau (RETIRED) gentoo-dev 2006-03-28 09:22:59 UTC
(In reply to comment #20)
> I'm curious what the bug is, if I introduced it or what not. :)

I'll ask a leading question - what function is responsible for calling w-c when vhosts is unset? 

Answer to today's question of the day is hidden in the commit message on http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/

Comment 22 Evildad 2006-03-28 12:25:22 UTC
(In reply to comment #19)
> This was indeed a small bug in the ebuild. Either run w-c -U manually or
> upgrade to gallery-2.1-r1.
> 

The new Version works fine for me.
Comment 23 gent_bz 2006-03-29 04:43:00 UTC
Did it really need a revbump to -r1?

Fix and tell early adopters to re-emerge if they can't work out how to upgrade.
Comment 24 Nicolai Marck Ødum 2006-04-03 07:55:39 UTC
Gallery 2.1 has been relaesed :-D

http://gallery.menalto.com/gallery_2.1_released
Comment 25 donald webster 2006-04-03 07:58:36 UTC
Yes, it sure has been!  You'll notice the bug was file on the 18th of March, before it was released.  And if you check portage, you'll notice that it is there, arriving I think on the 28th of March! :)
Comment 26 Renat Lumpau (RETIRED) gentoo-dev 2006-04-26 05:50:47 UTC
stale