Newbie needs help

View: New views
5 Messages — Rating Filter:   Alert me  

Newbie needs help

by Duane Winner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Trying to get gnats going for the first time, and while the
documentation looks wonderful as a reference, it's not helping me much
to get started.

I'm running FreeBSD 6.2, and installed 4.1.0 from ports.

Question 1: I'm not clear on how to get "send-pr" to talk to my gnats
database and how to control the template it brings up. (I'm just
experimenting on localhost for now,  no remote server).

If I issue the send-pr command by itself, it brings up what appears to
be a freebsd.org bug submission template, but cannot for the life of me
figure out where it is getting this from (I grep'd /usr/local/etc/gnats,
/var/db/gnats and /usr/local/libexec/gnats  and can't find anything.)

<snip>
SEND-PR: Choose from the following categories:
SEND-PR:
SEND-PR: advocacy  alpha     amd64     bin       conf      docs
SEND-PR: gnu       i386      ia64      java      kern      misc
SEND-PR: ports     powerpc   sparc64   standards sun4v     threads
SEND-PR: usb       www
SEND-PR:
To: FreeBSD-gnats-submit@...
From: Duane Winner <dwinner>
<snip>

If I try:
 $ GNATSDB=localhost:1529:default:dwinner:xxxx; export GNATSD"
 $ send-pr -H localhost

all I get is the help output.

Please help...I'm lost....

Thanks,
DW


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHL3e5pL22IVns8g4RArDRAKCiiO3LDHN/n8G4l0w5l/jK+4dDowCeIdCx
QcTL0yeA3eGs5Ld48H1P+A0=
=7Y2W
-----END PGP SIGNATURE-----


_______________________________________________
Help-gnats mailing list
Help-gnats@...
http://lists.gnu.org/mailman/listinfo/help-gnats

Re: Newbie needs help

by Chad Walstrom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

send-pr will attempt to talk to the server when generating the template,
but fall back to a default template if it cannot do so.  The text you
sent in your email had a typo regarding the exported variable, which was
GNATSD" rather than GNATSDB.  I'm sure that was a typo.

send-pr is a shell wrapper application that uses pr-edit and query-pr,
thus why the correct exported GNATSDB is so important.  If you can run a
successful query-pr from the command-line, send-pr should work.

Try running 'send-pr -P'.  This should generate a template against the
server specified in GNATSDB.  For example, if you run it against

GNATSDB=gnats.wookimus.net:1529:gnats:guest:guest

you should receive these categories:

SEND-PR: Choose from the following categories:
SEND-PR:
SEND-PR: pending  spam     gnats    tkgnats  gnatsweb misc

Since send-pr is a shell script, you can always run it as "/bin/sh -x
PATHTO/send-pr -P" to see what's happening.  I don't believe there's a
"-H" option to send-pr.  Unfortunately, you must use environment
variables to specify the host.


_______________________________________________
Help-gnats mailing list
Help-gnats@...
http://lists.gnu.org/mailman/listinfo/help-gnats

Re: Newbie needs help

by Duane Winner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chad Walstrom wrote:
 > Try running 'send-pr -P'.  This should generate a template against the
> server specified in GNATSDB.  For example, if you run it against
>
> GNATSDB=gnats.wookimus.net:1529:gnats:guest:guest
>
> you should receive these categories:
>
> SEND-PR: Choose from the following categories:
> SEND-PR:
> SEND-PR: pending  spam     gnats    tkgnats  gnatsweb misc


Hmmm...I was starting to wonder if there is something wrong with my install:

$ GNATSDB=gnats.wookimus.net:1529:gnats:guest:guest; export GNATSDB
$ send-pr -P

<snip>
SEND-PR: advocacy  alpha     amd64     bin       conf      docs
SEND-PR: gnu       i386      ia64      java      kern      misc
SEND-PR: ports     powerpc   sparc64   standards sun4v     threads
SEND-PR: usb       www
SEND-PR:
To: FreeBSD-gnats-submit@...
From: Duane Winner <dwinner>
<snip>

> Since send-pr is a shell script, you can always run it as "/bin/sh -x
> PATHTO/send-pr -P" to see what's happening.  

You gave me the clue I needed with this command.

Problem was that I didn't realize that FreeBSD includes send-pr as part
of it's normal install to /usr/bin to facilitate sending reports the
FreeBSD.org, and the /usr/bin/send-pr has these categories and
everything else coded in.

When you install the gnat port, there is another send-pr that gets
installed to /usr/local/bin -- and that is the one I wanted, but
/usr/bin takes precedence over /usr/local/bin, so I kept getting the
wrong one.

Spun my wheels the better part of a day because of that.

Thanks for the help!

- -DW


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHL4g5pL22IVns8g4RAhzNAJ0Zz0fJcyzGjuJ/dhCOhhhJK3ikRgCgl9F+
t/baFfIyy98NXwNySX1q1nY=
=o98T
-----END PGP SIGNATURE-----


_______________________________________________
Help-gnats mailing list
Help-gnats@...
http://lists.gnu.org/mailman/listinfo/help-gnats

Re: Newbie needs help

by Duane Winner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chad Walstrom wrote:

>
> GNATSDB=gnats.wookimus.net:1529:gnats:guest:guest
>

Hi again,

I noticed on your website that your top menu button URLS are functional.

On mine, when I have the "Create Problem Report" form open, the button
URLS are broken:

If I try to click on "Main Page" button when I have the form open:

https://mygnatsweb.com/gnatsbin/gnatsweb.pl?cmd=create&database=default&return_url=\
https://mygnatsweb.com/gnatsbin/gnatsweb.pl?database=default;\
cmd=query?database=default?database=default&cmd=advanced%20query?database=\
default&cmd=logout?database=default&cmd=logout?database=default&cmd=\
advanced%20query?database=default&cmd=help?database=default&cmd=help?database=default

The work fine if I went into query to begin with, this only happens when
I do a create.

On yours:

http://gnats.wookimus.net/cgi-bin/gnatsweb.pl?database=default

Can you tell me what you did to fix it for yours or point me in the
right direction?

Thanks!
DW

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMMZapL22IVns8g4RAlwzAJ9F0fmusBZ1s1GBEUDVCQxHDL8uowCdFULj
ASG6ulBdOu88JVIXC7XMvbc=
=M9Xz
-----END PGP SIGNATURE-----


_______________________________________________
Help-gnats mailing list
Help-gnats@...
http://lists.gnu.org/mailman/listinfo/help-gnats

Re: Newbie needs help

by Chad Walstrom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wow, that's one crazy URL.  Not sure what's going on there.  You're
welcome to a copy of my local site configuration pl file.  I'll try to
get it to you later tonight.

Chad


_______________________________________________
Help-gnats mailing list
Help-gnats@...
http://lists.gnu.org/mailman/listinfo/help-gnats