First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 22239
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Default Assignee for New Packages <maintainer-wanted@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: David Grant <davidgrant@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
geneweb-4.09.ebuild geneweb-4.09.ebuild application/octet-stream David Grant 2003-06-05 20:47 0000 5.08 KB Details
geneweb-4.09.ebuild geneweb-4.09.ebuild text/plain David Grant 2003-06-05 20:47 0000 5.08 KB Details
geneweb.tar.gz geneweb-4.09.ebuild application/gzip David Grant 2003-06-05 20:52 0000 2.95 KB Details
geneweb.tar.gz updated geneweb-4.09.ebuild application/gzip David Grant 2003-06-06 04:12 0000 3.01 KB Details
geneweb.tar.gz Updated geneweb ebuild application/x-tgz David Grant 2003-06-24 10:46 0000 3.05 KB Details
geneweb_ebuild.diff Logfile patch for geneweb ebuild. patch Stuart Grimshaw 2004-03-08 04:42 0000 151 bytes Details | Diff
geneweb_ebuild.diff Patch for ebuild patch Stuart Grimshaw 2004-03-08 14:56 0000 1006 bytes Details | Diff
geneweb-4.09-r1.ebuild geneweb-4.09-r1.ebuild text/plain David Grant 2005-08-19 07:44 0000 5.33 KB Details
geneweb.conf.d geneweb.conf.d text/plain David Grant 2005-08-19 07:44 0000 409 bytes Details
geneweb.init.d geneweb.init.d text/plain David Grant 2005-08-19 07:45 0000 565 bytes Details
geneweb-4.10.ebuild geneweb-4.10.ebuild text/plain David Grant 2006-01-17 00:27 0000 5.37 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 22239 depends on: Show dependency tree
Show dependency graph
Bug 22239 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-06-04 19:22 0000
I'm going to be submitting this in the next few days, as soon as I get the
ebuild finalized.  I just wanted to post here to let people know, just in case
someone else decides to make one.

------- Comment #1 From David Grant 2003-06-05 20:47:32 0000 -------
Created an attachment (id=12858) [edit]
geneweb-4.09.ebuild

geneweb-4.09.ebuild

Geneweb is a family tree server.  It has its own http server and can be used to
create/edit or just view a web page.  A password can be set to allow the
database to be editable over the web.  It has export and import support for
GEDCOM family tree databases.

I'll be making a few changes to this in the next week.	So don't make any
changes or submit any patches without first checking with me.  I may have
already fixed it. 

------- Comment #2 From David Grant 2003-06-05 20:47:56 0000 -------
Created an attachment (id=12859) [edit]
geneweb-4.09.ebuild

geneweb-4.09.ebuild

Geneweb is a family tree server.  It has its own http server and can be used to
create/edit or just view a web page.  A password can be set to allow the
database to be editable over the web.  It has export and import support for
GEDCOM family tree databases.

I'll be making a few changes to this in the next week.	So don't make any
changes or submit any patches without first checking with me.  I may have
already fixed it. 

------- Comment #3 From David Grant 2003-06-05 20:52:00 0000 -------
Created an attachment (id=12860) [edit]
geneweb-4.09.ebuild

created tar file to include the files/ directory

------- Comment #4 From David Grant 2003-06-06 04:12:33 0000 -------
Created an attachment (id=12874) [edit]
updated geneweb-4.09

same as previous version (I think).  I just added the ChangeLog which I forgot
before

------- Comment #5 From David Grant 2003-06-10 13:08:44 0000 -------
Can someone stick this ebuild into portage?  It has the ~x86 flag, and in my
opinion works better than some of the other ~x86 ebuilds I've tried.  Once it
gets into portage I think some people might notice it, and then hopefully I/we
can get some bugs reported about this ebuild.

------- Comment #6 From David Grant 2003-06-15 12:07:44 0000 -------
I don't understand why this hasn't been added to portage yet?  I wish I had CVS
access to do it myself, but I don't.  If this package doesn't move to the tree
then it will never be tested and will never be stable.  Thank you.

------- Comment #7 From Frank Straetz 2003-06-19 10:47:32 0000 -------
I'll take a look at this ebuild as soon as I have some spare time, but it's
somewhat complicated so it'll take some time.

------- Comment #8 From Frank Straetz 2003-06-21 12:32:02 0000 -------
OK, I've taken a look at the ebuild and here are some suggestions to make it
even better. :)

1. Is the src_unpack() function really necessary? It seems to work like the
base.eclass function without all the patching functionality.

2. Users and groups should be added by using the enewuser() and enewgroup()
functions provided by the eutils eclass. Removing them is as far as I know not
necessary (so you can remove the pkg_postrm() function).

3. It's better to use "sh ${FILESDIR}/geneweb.conf.d" rather than ".
${FILESDIR}/geneweb.conf.d" because it makes sure the right shell is used.

4. It'd be more flexible/less error prone to use "mkdir -p" to create
${GENEWEBDB}.

------- Comment #9 From David Grant 2003-06-21 21:45:39 0000 -------
Thanks a lot for the help.  Just one question, about removing the user/group in
postrm.  Personally I like when packages remove as much as possible when they
are removed (except data and anything that the user might have changed). 
Groups and users are one thing that I don't like lingering around.  Is there
anything standard about doing this or not?  Either gentoo policy, or "standard
linux" policy?

------- Comment #10 From Frank Straetz 2003-06-24 04:03:41 0000 -------
There'll soon be a new method for adding and removing users/groups, but since
it's not completely implemented yet I'd recommend to print a message via einfo
so the user gets informed that he may remove the entries (that's because most
other ebuilds like OpenSSH, Privoxy and all games using the games eclass don't
remove the users/groups they create).

Please submit your fixed ebuild :)

------- Comment #11 From David Grant 2003-06-24 10:46:19 0000 -------
Created an attachment (id=13782) [edit]
Updated geneweb ebuild

Only a couple changes really, the mkdir -p thing, and I no longer remove the
groups in post_rm().

1) I tried using "sh" instead of "." to source the environment variables and it
doesn't seem to work?
2) I didn't have much success with the enewgroup and enewuser commands.  They
are commented out in this ebuild.  If you know of a syntactical error let me
know.  Otherwise I'll just wait until a new system is in place and replace it
with that.

------- Comment #12 From David Grant 2003-06-24 10:48:18 0000 -------
I just thought of something...  Should I stop and running geneweb processes in
the 
pre_rm() function? 

------- Comment #13 From George Shapovalov 2003-08-07 14:46:42 0000 -------
*** Bug 12420 has been marked as a duplicate of this bug. ***

------- Comment #14 From Stuart Herbert (RETIRED) 2003-10-04 06:23:04 0000 -------
Hi,

The web-apps herd is currently working on delivering some important changes
to the way that web-based applications are installed and managed on Gentoo
Linux.  Until this work is complete, we're not commiting ebuilds for new
packages.

I've marked this bug as 'LATER'.  As soon as we are able to, we will come
back to this bug and help you convert your ebuild to our new approach.

Many thanks for your patience,
Stu

------- Comment #15 From David Grant 2003-10-04 13:35:20 0000 -------
One comment...this is not really a web-app...  The program runs it's own
httpd server AFAIK, and on it's own port (default is 8319).  It has not depend
on, nor does it have any association with apache, or any other free or commerical
"web" server.  Thus it isn't really a "web"-app, IMHO, like php-nuke, phpgroupware,
etc...  So it wouldn't rely on any new Gentoo eclass or system for these
apps.

Unless I am misunderstanding what the purpose of thes new "important changes
to the way that web-based applications are installed and managed on Gentoo",
then this ebuild is stable IMHO and can be committed to CVS now.

------- Comment #16 From David Grant 2004-01-06 15:59:39 0000 -------
This ebuild is ready to be submitted.  See my last comment.

------- Comment #17 From David Grant 2004-01-09 07:23:09 0000 -------
seemant, are you sure this is a science related package?  I mean I guess if
there is no other category to put it in, then I guess it is.  I would prefer
app-misc or net-misc or something like that.

------- Comment #18 From David Grant 2004-02-21 18:03:24 0000 -------
I hope this ebuild isn't being held up because of comment #14.  This is not an
apache-dependant application.  I have been running it happily using my ebuild
for a long time now.

Just add it to portage, it has a ~x86 flag anyways.

http://sidicpc22.uwaterloo.ca:8081/a?lang=en

------- Comment #19 From Stuart Grimshaw 2004-03-08 04:34:03 0000 -------
I have a bug in your ebuild.

If you try to build it it will fall over when it tries to change the permisions on the logfile. I suspect it was already created when you wrote that part of your ebuild.

My solution was to add this at around line 146 (just before it tries to do the chmod)

if [ ! -x $LOGFILE ]; then
    einfo "Creating $LOGFILE ..."
    touch $LOGFILE
fi

Also, in the info two of the variables are blank and produce this output

 * You may safely remove the user  and
 * the group .  See userdel and groupdel.

This is in the pkg_postrm function, perhaps these variables are not available there?

Can I ask why you are removing them when they are used for file permissions?

I would also change the last bit of einfo to include some info on starting geneweb, or start it as part of the ebuild.

Hope that helps you ...

------- Comment #20 From Stuart Grimshaw 2004-03-08 04:42:51 0000 -------
Created an attachment (id=27021) [edit]
Logfile patch for geneweb ebuild.

This is a patch to create the geneweb logfile if it doesn't already exist.

------- Comment #21 From Stuart Grimshaw 2004-03-08 14:56:32 0000 -------
Created an attachment (id=27056) [edit]
Patch for ebuild

This patch replaces my last one, it creates the logfile, but it also creates
the files in the geneweb DB directory needed to run gwsetup, it also copies
gwsetup into the bin directory.

------- Comment #22 From David Grant 2004-07-20 14:45:39 0000 -------
This should go in the new www-server category

------- Comment #23 From David Grant 2004-08-28 13:04:21 0000 -------
Please add to portage

------- Comment #24 From David Grant 2005-07-21 13:36:07 0000 -------
If someone makes me developer, I could help maintain this package.

------- Comment #25 From Jakub Moc 2005-08-19 06:18:47 0000 -------
Please, attach a plaintext ebuild for the current version and reopen then. We
don't want tarballs.

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3#doc_chap2


------- Comment #26 From David Grant 2005-08-19 07:44:25 0000 -------
Created an attachment (id=66319) [edit]
geneweb-4.09-r1.ebuild

------- Comment #27 From David Grant 2005-08-19 07:44:55 0000 -------
Created an attachment (id=66320) [edit]
geneweb.conf.d

------- Comment #28 From David Grant 2005-08-19 07:45:14 0000 -------
Created an attachment (id=66321) [edit]
geneweb.init.d

------- Comment #29 From David Grant 2005-08-19 07:46:06 0000 -------
Please obsolete the patch, it is included in the geneweb-4.09-r1.ebuild I just
uploaded.

------- Comment #30 From Helge Haugland 2005-08-21 14:07:04 0000 -------
I renamed the geneweb-4.09-r1.ebuild to geneweb-4.10.ebuild for the "new"
version of geneweb. Everything works fine!

------- Comment #31 From David Grant 2005-08-21 14:12:52 0000 -------
I haven't tested this in a while. I just set up my new server, I will probably
install geneweb from scratch on that machine, create a new geneweb database
(just as a test). Then delete it, and import my old geneweb database. Then the
next task it to test 4.10.

------- Comment #32 From David Grant 2006-01-17 00:27:48 0000 -------
Created an attachment (id=77321) [edit]
geneweb-4.10.ebuild

Tested and works.

To export your old database and try this one from scratch:
mv /home/geneweb /home/geneweb-backup
cd /home/geneweb-backup
gwu <dbname> -o <dbname>.gw
emerge -u geneweb
cp /home/geneweb-backup/<dbname>.gw /home/geneweb/
cd /home/geneweb
gwc <dbname>.gw -o <dbname>
cp /home/geneweb-backup/<dbname>.gwf .

------- Comment #33 From David Grant 2006-01-17 00:29:34 0000 -------
BTW, it's just like dumping a mysql database and upgrading to a new version of
mysql

------- Comment #34 From Jakub Moc 2006-08-10 12:20:11 0000 -------
(From update of attachment 77321 [edit])
The pkg_postinst() is rather broken. 

- That DB setup should be moved to pkg_config(), most of it should be however
done in src_install() anyway.

- Don't use adduser etc. in ebuilds. That's what enewuser/enewgroup from
eutils.eclass is for!

- There's doconfd/doinitd for installing init scripts/conf.d files.

------- Comment #35 From Jakub Moc 2006-08-10 12:22:01 0000 -------
(From update of attachment 77321 [edit])
The pkg_postinst() is rather broken. 

- That DB setup should be moved to pkg_config(), most of it should be however
done in src_install() anyway.

- Don't use adduser etc. in ebuilds. That's what enewuser/enewgroup from
eutils.eclass is for!

- There's doconfd/doinitd for installing init scripts/conf.d files.

------- Comment #36 From David Grant 2006-08-10 13:28:59 0000 -------
I've been meaning to submit this to sunrise. Thanks for the tips, I'll
incorporate those and then submit to the sunrise guys for review. I can't
believe that enewuser isn't being used yet...that was suggested to me a long
time ago. Actually I have enewuser in there, but it is commented out. Maybe it
didn't work properly at the time.

------- Comment #37 From David Grant 2006-08-10 22:02:15 0000 -------
I've made a ton of changes to the ebuild. One of the remaining issues is this
executable stacks QA error.

QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/geneweb-4.10/temp/scanelf-execstack.log
"RWX --- --- usr/bin/gwc"
"RWX --- --- usr/bin/gwd"
"RWX --- --- usr/bin/gwu"
"RWX --- --- usr/bin/consang"
"RWX --- --- usr/bin/ged2gwb"
"RWX --- --- usr/bin/gwb2ged"
"RWX --- --- usr/bin/gwsetup"

I've tried changing the Makefile and using -ccopt --noexecstack to no avail...
I've also emailed the upstream author as well.

------- Comment #38 From Tupone Alfredo 2007-08-18 14:24:09 0000 -------
I have added it to portage. Thanks for input.

ps

I'm taking maintainership just because I use it. If someone is interested or
there is an herd to which it should belongs, feel free to add it

First Last Prev Next    No search results available      Search page      Enter new bug