Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21549 - Ebuild for bricolage (new package)
Summary: Ebuild for bricolage (new package)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-23 09:39 UTC by Guy
Modified: 2007-09-14 14:06 UTC (History)
5 users (show)

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


Attachments
Ebuild in progress (bricolage-1.6.11.ebuild,1.64 KB, text/plain)
2004-03-29 04:48 UTC, Michael Cummings (RETIRED)
Details
bricolage ebuild (bricolage-1.8.2.ebuild,2.03 KB, text/plain)
2004-10-18 04:52 UTC, Michael Cummings (RETIRED)
Details
Quiet installation for 1.8.x (quiet_rev_1_8_install-svn.diff,17.16 KB, patch)
2004-11-16 14:55 UTC, Marshall Roch
Details | Diff
ebuild (bricolage-1.10.2.ebuild,3.05 KB, text/plain)
2006-09-03 09:43 UTC, Michael Cummings (RETIRED)
Details
configuration patch (config.patch,9.54 KB, patch)
2006-09-03 09:44 UTC, Michael Cummings (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2003-05-23 09:39:07 UTC
It would be appreciated if someone could build ebuilds for 'mason' and 'bricolage'.

Mason: http://www.masonhq.com/
From the website
Mason is a powerful Perl-based web site development and delivery engine. With
Mason you can embed Perl code in your HTML and construct pages from shared,
reusable components.

Mason solves the common problems of site development: caching, debugging,
templating, maintaining development and production sites, and more.

Mason is 100% free and open source. Although it can be used from CGI or even
stand-alone, it is optimally designed for use with two other open source
technologies: mod_perl and Apache.

Bricolage: http://www.bricolage.cc/index.html
from the website
Bricolage is a full-featured, open-source content-management and publishing
system. Features include intuitive and highly configurable administration,
workflow, permissions, templating, server-neutral output, distribution, and
document management.

Bricolage is written in Perl using HTML::Mason and Apache/mod_perl. Bricolage
uses the PostgreSQL relational database to store content. 

Thank you for your consideration.

Reproducible: Always
Steps to Reproduce:
Comment 1 Guy 2003-05-30 08:36:08 UTC
As added incentive to anyone willing to do these ebuilds. (I sure wish I knew enough to do them myself!) you may want to read this article: http://www.theregister.co.uk/content/31/30959.html

It looks like one of our fav industry news rags "The Register" is converting to bricolage.

:-)
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2003-06-17 16:20:43 UTC
Does Mason = dev-perl/HTML-Mason?
Comment 3 Guy 2003-06-19 10:12:42 UTC
Yes it does.

I did see the ER put in last week for Mason and another PERL module. I don't have the number off hand nor can I seem to find it using the query. I'm assuming that Mason was added as part of that request. :-)
Comment 4 Guy 2003-06-19 14:21:18 UTC
The other ER was on 6/17 and was bug # 22996.
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2003-06-19 17:28:32 UTC
I guess what threw me off is that mason has been in the tree for a while now. I hope to get to this this weekend, sorry for the delay.
Comment 6 Guy 2003-06-19 18:19:56 UTC
Not a problem. I could have sworn that I checked for mason before posting. I see that mason is in the tree so I guess I was fantasizing about checking for mason. Ahh heck. Stuff happens. You do a great job Mike. I'm not one of those that 'has to have it today' types. I was impressed enough with the reviews for bricolage that I'd like to try developing a web site in it. That's all. ;-)
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2003-06-19 18:50:26 UTC
=:)

Moving the home office around this weekend, then I will be knocking out as many of these "enhancements" as I can. Should be a piece of cake, only 50 or so to go through ;0
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2003-06-20 05:19:52 UTC
Holy CREP. There has to be well over 50 some deps here. OK, maybe I was too generous with timelines. While I ponder this volume of deps, a few questions.

* Does it work with any apache or only <2?
* Same for mod_perl, though that would be affected by the above
* Any hints on what a good cat would be for it? Consider this a poll for your take on it :)
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2003-06-20 06:56:04 UTC
I count 57 depends, 16 of which don't exist yet in portage. This may not get taken care of this weekend after all. I have a base ebuild locally, but would welcome any input (say, suggested ebuilds for the missing stuff ;) ).
Comment 10 Guy 2003-06-30 11:55:59 UTC
Wow! 

I don't have any problem with you holding off on this. I realize what I had in mind is a bit beyond my current skill/knowledge set at the moment.

Unless and until you reach a less busy spell, I think the community (of 1 as far as I know at the moment) can wait a bit.

I'll make a good faith effort to look at the dependencies not in portage, though this is a new thing for me.

Thanks for the heads up!
Comment 11 matt shanley 2004-03-17 20:43:25 UTC
i know this sounds like a big project to tackle, and i'm afraid i don't know enough to help out, but this is something that i would like to test out also. it's been written about in recent issues of linux journal, so i would bet that others might have a newfound interest as well.
Comment 12 Michael Cummings (RETIRED) gentoo-dev 2004-03-29 04:43:29 UTC
First, sorry for the delay - this ebuild has close to 60 dependancies (plus their dependancies, plus the deps of the deps of the deps...) so it took a while to get the time free to even think of tackling it.

That said, all of the deps should be in the tree now. However, as noted withthe block to bug 37019, one issue still remains. Bricolage requires that mod_perl be statically compiled with apache-1*, which portage doesn't currently support. I've added the web-apps folks to this bug in the hopes that they have some insights (all I can think of is a kludged-apache that builds all of the mods_* in statically, and that probably wouldn't fly too well).
Comment 13 Michael Cummings (RETIRED) gentoo-dev 2004-03-29 04:48:50 UTC
Created attachment 28276 [details]
Ebuild in progress

This is the ebuild I've been working on - should contain all of the deps as
stated by the bricolage folks. Note that the license still needs to be fixed,
not to menion getting a static mod-perl. It is *still* a work in progress -
currently prompts for the location of your postgres control, for instance.
Comment 14 Marshall Roch 2004-10-18 02:10:21 UTC
Bricolage 1.8.2 no longer requires mod_perl to be statically compiled.  That ought to make things easier!

Thanks for your great work, the Bricolage team and community appreciates it. :-D
Comment 15 Michael Cummings (RETIRED) gentoo-dev 2004-10-18 04:52:10 UTC
Created attachment 42093 [details]
bricolage ebuild

I have ebuilds for the 2 perl deps not in the tree (MasonX-Interp-WithCallbacks
 Params-CallbackRequest) as well as for HTMLArea. The hang up right now is
getting through the interactive setup part.
Comment 16 Marshall Roch 2004-10-18 13:09:32 UTC
The installer in the trunk (for 1.10) can be made quiet.  I'll look into having patches made against 1.8, but they will not be included in an official 1.8.x release.
Comment 17 Marshall Roch 2004-11-16 14:55:04 UTC
Created attachment 44105 [details, diff]
Quiet installation for 1.8.x

This patch, backported from Bricolage's trunk (development for 1.10), will make
the installer nearly silent when the INSTALL_VERBOSITY environment variable is
set to QUIET (e.g. "INSTALL_VERBOSITY=QUIET make; make install").  It still
asks for the postgres root password, and some of the defaults are wrong in
Bricolage (e.g. uses nobody:nobody for Apache), so I assume another patch will
be needed.

HTH, thanks guys!
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2005-09-04 04:12:18 UTC
Mass re-assign.
Comment 19 Marshall Roch 2005-09-05 20:42:50 UTC
1.9.0 (development for 1.10) has been released.  It features a per-platform
silent installation option, with approriate defaults for Gentoo already created.
 Hopefully no patches will be necessary.  If you need anything changed, I can
commit it.
Comment 20 Marshall Roch 2006-02-01 12:09:24 UTC
1.10.0 has been released and can be installed without user input.

To trigger the silent install:
# make INSTALL_VERBOSITY=QUIET USE_DEFAULTS=gentoo
# make install

If any of the defaults (see inst/defaults/gentoo) are wrong, let me know and I'll apply any patches for 1.10.1.
Comment 21 Michael Cummings (RETIRED) gentoo-dev 2006-03-12 15:35:36 UTC
This is a bit embarrassing, but I'd actually forgotten we had this tucked away under perl-requests. Looking now - i guess my first task is tracking down all of the deps again (looks htmlarea is no longer in the tree...swear i'd put it in at one point...). will keep you all posted,

~mcummings
Comment 22 Michael Cummings (RETIRED) gentoo-dev 2006-03-12 17:22:58 UTC
ok, my status so far is that there are about a half dozen perl deps that have been added since this first hit bugzilla, plus i can't find a valid/active copy of htmlarea, and the alternative isn't stable enough yet (doesn't even have a stable release), so that optional functionality won't be present. other than that - working on it still :)
Comment 23 Marshall Roch 2006-03-12 21:37:58 UTC
(In reply to comment #22)
> i can't find a valid/active copy of htmlarea, and the alternative isn't stable 
> enough yet (doesn't even have a stable release), so that optional functionality 
> won't be present. other than that - working on it still :)

HTMLArea is dead.  Xinha is a fork, so it's probably about as stable, if not more,  even though it doesn't have an official "stable" release yet.  But not being able to include it via an ebuild isn't a big deal since installing it is as easy as extracting a tarball in the right Bricolage directory, and we don't really encourage using WYSIWYG with Bricolage anyway.
Comment 24 Michael Cummings (RETIRED) gentoo-dev 2006-03-13 00:23:40 UTC
(In reply to comment #23)
> HTMLArea is dead.  
aye
>Xinha is a fork,

that's the one i couldn't remember the name of when i was typing :) (sounds like "Xena" didn't seem very professional)

> as easy as extracting a tarball in the right Bricolage directory, and we don't
> really encourage using WYSIWYG with Bricolage anyway.

much appreciated since i've worked long and hard to avoid maintaining ebuilds that are only available via snapshots.

back to filling missing deps for me :) 

Comment 25 Michael Cummings (RETIRED) gentoo-dev 2006-03-13 10:00:20 UTC
<update>
Well, the good news (I guess) is that I have a 9k patch that brings DESTDIR support to bricolage, something sorely needed. The bad news is that either in bricolage itself, or somewhere in my patching (although I didn't specifically touch db related parts, still possible), the install process expects to su - to the postgres user and run some install/grants, which of course it can't in a sandbox (at least not natively). Does anyone know if it is possible to skip this step and let the user run this after the fact? (I'd hate to think I spent the whole day getting DESTDIR support in for nothing)
Comment 26 Marshall Roch 2006-03-13 12:03:17 UTC
(In reply to comment #25)
> Well, the good news (I guess) is that I have a 9k patch that brings DESTDIR
> support to bricolage, something sorely needed. 

Cool!  Can you email it to me and I'll see about getting it into the next release?

> The bad news is that either in
> bricolage itself, or somewhere in my patching (although I didn't specifically
> touch db related parts, still possible), the install process expects to su - to
> the postgres user and run some install/grants, which of course it can't in a
> sandbox (at least not natively).

That's not your fault.

> Does anyone know if it is possible to skip
> this step and let the user run this after the fact? (I'd hate to think I spent
> the whole day getting DESTDIR support in for nothing)

http://viewsvn.bricolage.cc/?rev=7154&view=rev

In the next release (1.10.1), you will be able to do "make install_files" instead of "make install" to skip the database stuff.  After the install, the user will need to run "make install_db".

We're shooting for 1.10.1's release sometime later this week.  Hopefully we can get all the necessary patches to make the ebuild work in before that.
Comment 27 Marshall Roch 2006-03-20 20:27:15 UTC
(In reply to comment #26)
> In the next release (1.10.1), you will be able to do "make install_files"
> instead of "make install" to skip the database stuff.  After the install, the
> user will need to run "make install_db".

1.10.1 was released today.  Hope that makes things easier.
Comment 28 Michael Cummings (RETIRED) gentoo-dev 2006-03-24 06:11:45 UTC
sorry, got a bit swamped in real life, beginning to give this a whirl now.
Comment 29 Michael Cummings (RETIRED) gentoo-dev 2006-03-24 07:46:41 UTC
http://dev.gentoo.org/~mcummings/overlay/ is now populated with an ebuild (and supporing perl modules) for a 90% working bricolage install. Still at large is getting the db updated (just haven't done it yet) and seeing it all work together. Believe it or not, I think this means the hard part is over with :)
Comment 30 Marshall Roch 2006-03-24 07:52:28 UTC
(In reply to comment #29)
> http://dev.gentoo.org/~mcummings/overlay/ is now populated with an ebuild (and
> supporing perl modules) for a 90% working bricolage install. Still at large is
> getting the db updated (just haven't done it yet) and seeing it all work
> together. Believe it or not, I think this means the hard part is over with :)
> 

Excellent, you rock.  I noticed this in the ebuild:

# The following required modules are either missing or out of date:
#
#         Apache::Request

I believe Apache::Request is installed by libapreq, which is already a dependency.
Comment 31 Michael Cummings (RETIRED) gentoo-dev 2006-03-24 11:51:33 UTC
(In reply to comment #30)
> 
> I noticed this in the ebuild:
> 
> # The following required modules are either missing or out of date:
> #
> #         Apache::Request
> 
> I believe Apache::Request is installed by libapreq, which is already a
> dependency.
> 

yep on both accounts. at one point in my draft of this ebuild i had a list (commented) of all the perl deps, then took them out of the list one at a time. apache::request was just the last one left :)
Comment 32 Sergiy Borodych 2006-04-11 06:47:22 UTC
My questions and suggestions appear during "my fight" with bricolage


1. IUSE.
In INSTALL many optional depends
so re-add with USE flag "bricolageplus"
also CPAN tell me about too packges Bundle::Bricolage and Bundle::BricolagePlus

example

        bricolageplus? (
            >=dev-perl/Devel-Profiler-0.03
            dev-perl/HTML-Template
            dev-perl/HTML-Template-Expr
            dev-perl/HTTP-DAV
            dev-perl/Net-FTPServer
            >=dev-perl/net-sftp-0.08
            dev-perl/Pod-Simple
            >=dev-perl/Template-Toolkit-2.14
            >=dev-perl/Test-Pod-0.95
            dev-perl/XML-DOM
        )


2. For required perl modules what not found in portage use "hack"
modules recommended install by g-cpan (add ewarn before install)
and depend write like (for future)
( >=dev-perl/Params-CallbackRequest-1.10 || >=perl-gcpan/Params-CallbackRequest-1.10 )

but here I find one problem with DEPEND :(

example

pkg_setup() {
    MODS="List-MoreUtils-0 MasonX-Interp-WithCallbacks-1.10 Params-CallbackRequest-1.10 Test-File-Contents-0.02 Test-MockModule-0.04 Term-ReadPassword-0 Text-Diff-HTML-0.02 Text-WordDiff"
    for MOD in $MODS; do
        if ! ( has_version ">=dev-perl/${MOD}" || has_version ">=perl-gcpan/${MOD}" ) ;
        then
            MODULE=`echo ${MOD} | sed 's/\-[0-9].\?[0-9]*$//g' -`;
            einfo "Please before install You need have g-cpan installed";
            einfo "and run: g-cpan -i ${MODULE}";
            einfo "Need version >= ${MOD}";
            die;
# I dont know how it change - DEPEND read only here :(
#       else
#           DEPEND="${DEPEND} || ( >=dev-perl/${MOD} >=perl-gcpan/${MOD} )";
        fi
    done
    PLUS_MODS="Imager-0 PHP-Interpreter-0"
    if use bricolageplus; then
        for MOD in $PLUS_MODS; do
            if ! ( has_version ">=dev-perl/${MOD}" || has_version ">=perl-gcpan/${MOD}" ) ;
            then
                MODULE=`echo ${MOD} | sed 's/\-[0-9].\?[0-9]*$//g' -`;
                einfo "Please before install You need have g-cpan installed";
                einfo "and run: g-cpan -i ${MODULE}";
                einfo "Need version >= ${MOD}";
                die;
#           else
#               DEPEND="${DEPEND} bricolageplus? ( || ( >=dev-perl/${MOD} >=perl-gcpan/${MOD} ) )";
            fi
        done
    fi
}


3. Need add "The Bricolage License" and use it ?!


So, what you think about it ?
Comment 33 Michael Cummings (RETIRED) gentoo-dev 2006-04-11 07:13:54 UTC
(In reply to comment #32)
> 2. For required perl modules what not found in portage use "hack"
> modules recommended install by g-cpan (add ewarn before install)
> and depend write like (for future)

<snip> g-cpan is not to be called from within a distributed ebuild. eof.

> 
> 3. Need add "The Bricolage License" and use it ?!

Last I checked license was just the Artistic license, no need for a special license.

> So, what you think about it ?
> 

Please see the overlay I posted in comment #29
> http://dev.gentoo.org/~mcummings/overlay/ 

Includes patches for bricolage to allow for DESTDIR and PREFIX calls. The only thing missing, that I just haven't had time to fix, is the setting up of the db. Otherwise it is a functional install.

Comment 34 Sergiy Borodych 2006-04-11 08:43:07 UTC
(In reply to comment #33)
> Please see the overlay I posted in comment #29
> > http://dev.gentoo.org/~mcummings/overlay/ 
> 
> Includes patches for bricolage to allow for DESTDIR and PREFIX calls. The only
> thing missing, that I just haven't had time to fix, is the setting up of the
> db. Otherwise it is a functional install.
> 

Ok
I'm try it

Already need IUSE fix
plz add "spell" flag to it
and I suggest also add mod_gzip depend with "gzip" IUSE flag


And what you think about USE flag "bricolageplus" idea ?
Comment 35 Sergiy Borodych 2006-04-11 08:48:25 UTC
also I think
in DEPEND need change
dev-perl/Text-Aspell -> spell ? ( dev-perl/Text-Aspell )
becouse Text::Aspell as optional
Comment 36 Sergiy Borodych 2006-04-11 09:07:47 UTC
DEPEND need changes (from INSTALL for 1.10)

remove (not need anymore)
dev-perl/HTTP-BrowserDetect

added
>=dev-perl/DateTime-0.21
dev-perl/DateTime-TimeZone
dev-perl/Data-UUID
Comment 37 Sergiy Borodych 2006-04-12 06:59:04 UTC
Testing on "x86"
Install OK

on "~x86" I have apache2 and cant testing

After read "Bricolage (Manual Installation)" part from INSTALL
I suggest

In "src_unpack"
MY_PV=${PV/_/}
svn co http://svn.bricolage.cc/bricolage/tags/rel_${MY_PV}/sql ${S}/usr/local/bricolage/sql
(required subversion with neon support added to DEPEND)

In "pkg_config"
run
export conf/bricolage.conf settings
bin/bric_pgimport -u postgres -p postgres -d ${DB_NAME} -c -m ${DBI_USER}:${DBI_PASS}
<optional>
change value MANUAL_APACHE(in conf/bricolage.conf) to "yes"
run bin/bric_apachectl for generate apache config
copy generated config from tmp/ to /etc/apache
change MANUAL_APACHE value back to "no"
</optional>
Comment 38 Michael Cummings (RETIRED) gentoo-dev 2006-09-03 06:49:12 UTC
I have a working install now, minus the notes on how to add the db to postgres, but I'm not even sure its worth pursuing since the code bombs out under perl 5.8.8 because of constants being treated like array refs (and never being defined as such). bah.
Comment 39 Marshall Roch 2006-09-03 09:36:13 UTC
(In reply to comment #38)
> I have a working install now, minus the notes on how to add the db to postgres,
> but I'm not even sure its worth pursuing since the code bombs out under perl
> 5.8.8 because of constants being treated like array refs (and never being
> defined as such). bah.

On what version?  Can you post or email me more details, so that we can perhaps get this fixed upstream?
Comment 40 Michael Cummings (RETIRED) gentoo-dev 2006-09-03 09:43:26 UTC
Created attachment 95853 [details]
ebuild
Comment 41 Michael Cummings (RETIRED) gentoo-dev 2006-09-03 09:44:24 UTC
Created attachment 95854 [details, diff]
configuration patch
Comment 42 Michael Cummings (RETIRED) gentoo-dev 2006-09-03 09:48:29 UTC
This could also use some intervention from the webapp eclass, i just got too frustrated with it to pursue. I had to manually create the logs directory, repermission everything (in case anyone tries following my footsteps), and there is an unchecked dep on Apache::DB that you need to satisfy (silently fails to start, but debug explains why). I doubt that /usr/local/bricolage is the "gentoo way" to install this, but for now I didn't want to mess with it. 
Comment 43 Michael Cummings (RETIRED) gentoo-dev 2007-04-26 12:08:50 UTC
Re-assigning back to maintainer-wanted. I could never get this working without 
serious, serious patching, and even then not so much (NOTE: Patching was for 
installation, not because there's anything wrong with bricolage per se). But 
rather than have it sit in the perl@g.o queue and go lost, I'm pushing this 
back over to maintainer-wanted in case anyone comes along that can make it 
happen/happy.
Comment 44 Jakub Moc (RETIRED) gentoo-dev 2007-09-14 14:06:36 UTC
WONTFIX for the reasons stated above.