[Pkg-firebird-general] Issues firebird 1.5.2

Damyan Ivanov divanov@creditreform.bg
Tue, 15 Mar 2005 10:29:23 +0200


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

Remco Seesink wrote on 13.03.2005 18:54:
| I checked it out. Sorry for being so slow, but my new job and travel
| time leaves me only 3 hours of free time a day, and compiling firebird
| takes 5 hours on my computer. I need to buy a new one I guess.

Wow! You're a real hero! 5 hours!
I guess I am really happy that my boss decided to by a new laptop and
give me his old, which is P4@2GHz and builds firebird for only ~40
minutes. Doh! Firebird is a beast indeed.

| I ran into trouble unpacking it:
|
| $ dpkg-source -x
| firebird2_1.5.2-0mentors2.dsc  dpkg-source: error: file
| firebird2_1.5.2.orig.tar.gz has size 7416659 instead of expected 7414728
|
| Which is because you now have a different .ori.tar.gz than on mentors.
| You probably fixed the md5sum problem I spotted last time, but it is not
| possible to upload an new ori.tar.gz so for mentors you may want to keep
| the first one and use the new version for the real upload version.

I've found the reason for the different sizes.
In the initial upload I've used a repackaged tarbal, i.e: downloaded
firebird-1.5.2.4731.tar.bz2, changed the name of the directory expanded
from firebird-1.5.2.4731 to firebird2-1.5.2 and then repackaged this.

In 0mentors2 upload I've used the original firebird-1.5.2.4731.tar.bz2
only renamed to firebird2-1.5.2.orig.tar.bz2.

I'll try to upload the "pure" original to mentors, it might work :-?


| I got it compiling eventually. It seems to work overall though.

Good news!

| If we comment out AskUserForNewDBApassword in
| firebird2-classic-server.postinst and firebird2-super-server.postinst
| and describe what to do in the documentation would that let anything
| explode?
|
| It is descibred here that we shouldn't ask question "by hand" but ony
| trough debconf.
| http://www.debian.org/doc/debian-policy/ch-binary.html#s-maintscriptprompt
|
| If we don't want to remove the password question we could use this in
| stead of AskQuestion to prevent echoing the password to the terminal:
|
| AskPassword() {
|     Test=$1
|     DefaultAns=$2
|     echo -n "${1}"
|     Answer="$DefaultAns"
|     stty ?echo          # turn off terminal echo to prevent peeping!
|     read Answer
|     stty echo           # restore terminal echo
|     echo                # printout a new line to make output nice
| }

(You probabvly meant "-echo" instead of "?echo")

How about:
AskPassword() {
~    Test=$1
~    Answer=""
~    stty -echo          # turn off terminal echo to prevent peeping!
~    while [ -z "$Answer" ] ;
~    do
~        echo -n "${1}"
~        read Answer
~        echo                # printout a new line to make output nice
~        [ -z "$Answer" ] && \
~            echo "Empty password entered. Please try again."
~    done
~    stty echo           # restore terminal echo
}

i.e.: 1) There's no default and 2) do not permit empty passwords

Of cource, the long-term fix is to use debhelper, but this is black
magic for me, yet.
Also, password must be asked for only on first install, but this
probably is more easily detected via pre/post-inst script parameters.
I'll try to do this in my next upload.


| Good work!

Thanks! Feedback really appreciated.

dam

- --
Damyan Ivanov          0x9725F63B         Creditreform Bulgaria
divanov@creditreform.bg             http://www.creditreform.bg/
phone: +359(2)928-2611, 929-3993           fax: +359(2)920-0994
mobile: +359-88-856-6067      ICQ: 3028500      Y!M: dam3028500

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCNpzjHqjlqpcl9jsRAnQ8AJ0UpSgUoVkvmMJTGPCeB7iG9lY4mACeJuX6
vCsGtSOp2NvJtMTN/VamkqY=
=mJ5E
-----END PGP SIGNATURE-----