Re: menu item for bterm-unifont

2004-03-04 Thread Matt Kraai
On Wed, Mar 03, 2004 at 11:21:57AM -0500, Joey Hess wrote:
 Kenshi Muto wrote:
  anna in CVS reports error during install partconf-mkfstab.
  /var/lib/dpkg/info/partconf-mkfstab.postinst: error while loading
  shared libraries: libparted-1.6.so.0: cannot open shared object file:
  No such file or directory.
 
 Hmm, I'd not realized that partconf-mkfstab worked like this. Before 
 this anna change, its postinst was ran after partconf, by main-menu
 since base-installer depends on created-fstab (which it provides).

How about making the various partitioners invoke mkfstab
explicitly instead?

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-04 Thread Matt Kraai
On Wed, Mar 03, 2004 at 09:26:19PM +0900, Kenshi Muto wrote:
 Hi Matt,
 
 At 3 Mar 04 03:56:04 GMT,
 Matt Kraai wrote:
  Would you try building one from CVS without any changes?  I built
  the version in the archive on PowerPC, so perhaps that is causing
  the problem.
 
 Bingo! It looks working.
 
 OK, both unifont.bgf (i386 and PPC) is different.
 Is this endian problem, isn't this?

I don't know; it may have been bug 232720, which has been fixed.

 Should bterm-unifont be not 'all', but 'any'?

I've rebuilt bterm-unifont with the latest libbogl-dev on PowerPC
and uploaded it to people.debian.org/~kraai/.  Would you please
test it?  If it works, I'll upload it.  Otherwise, someone with an
i386 box will need to build it.

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-04 Thread Kenshi Muto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

At 4 Mar 04 12:17:36 GMT,
Matt Kraai wrote:
  OK, both unifont.bgf (i386 and PPC) is different.
  Is this endian problem, isn't this?
 
 I don't know; it may have been bug 232720, which has been fixed.
 
  Should bterm-unifont be not 'all', but 'any'?
 
 I've rebuilt bterm-unifont with the latest libbogl-dev on PowerPC
 and uploaded it to people.debian.org/~kraai/.  Would you please
 test it?  If it works, I'll upload it.  Otherwise, someone with an
 i386 box will need to build it.

I downloaded this.
...
Unfortunately it doesn't work (segfault).
Matt, could you try my bterm-unifont built with i386, libbogl-dev 0.1.16-1?
http://www.debian.or.jp/~kmuto/d-i/

If this causes segfault on PPC, it is time to change bterm-unifont
from 'all' to 'any'.

Thanks,
- -- 
Kenshi Muto
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/

iEYEARECAAYFAkBHLRcACgkQQKW+7XLQPLG6bQCfWVIVnmZ6C0iSHqSAgzMqXFZq
tz0AoLAguIdvQsyKJiL+u+TQ8Fmot+7F
=4SmL
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-04 Thread Matt Kraai
On Thu, Mar 04, 2004 at 10:20:25PM +0900, Kenshi Muto wrote:
 At 4 Mar 04 12:17:36 GMT,
 Matt Kraai wrote:
   OK, both unifont.bgf (i386 and PPC) is different.
   Is this endian problem, isn't this?
  
  I don't know; it may have been bug 232720, which has been fixed.
  
   Should bterm-unifont be not 'all', but 'any'?
  
  I've rebuilt bterm-unifont with the latest libbogl-dev on PowerPC
  and uploaded it to people.debian.org/~kraai/.  Would you please
  test it?  If it works, I'll upload it.  Otherwise, someone with an
  i386 box will need to build it.
 
 I downloaded this.
 ...
 Unfortunately it doesn't work (segfault).
 Matt, could you try my bterm-unifont built with i386, libbogl-dev 0.1.16-1?
 http://www.debian.or.jp/~kmuto/d-i/

I'll see if I can figure out why it differs from the version I
built.  In the meantime, would you please upload it?

 If this causes segfault on PPC, it is time to change bterm-unifont
 from 'all' to 'any'.

I don't have a convenient way to test it at the moment.  Instead,
I'll see if I can track down the difference between the files you
and I generated.

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-04 Thread Kenshi Muto
At 4 Mar 04 14:36:22 GMT,
Matt Kraai wrote:
  Matt, could you try my bterm-unifont built with i386, libbogl-dev 0.1.16-1?
  http://www.debian.or.jp/~kmuto/d-i/
 
 I'll see if I can figure out why it differs from the version I
 built.  In the meantime, would you please upload it?

OK, I just uploaded 0.005.
But I'm afraid this crashes big-endian arch.

  If this causes segfault on PPC, it is time to change bterm-unifont
  from 'all' to 'any'.
 
 I don't have a convenient way to test it at the moment.  Instead,
 I'll see if I can track down the difference between the files you
 and I generated.

FYI I put each of hexdump at http://www.debian.or.jp/~kmuto/d-i/
I think this looks big/little endian problem.

Thanks,
-- 
Kenshi Muto
[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


Re: menu item for bterm-unifont

2004-03-03 Thread Kenshi Muto
Hi Matt,

At 3 Mar 04 03:56:04 GMT,
Matt Kraai wrote:
 Would you try building one from CVS without any changes?  I built
 the version in the archive on PowerPC, so perhaps that is causing
 the problem.

Bingo! It looks working.

OK, both unifont.bgf (i386 and PPC) is different.
Is this endian problem, isn't this?

Should bterm-unifont be not 'all', but 'any'?

P.S.
anna in CVS reports error during install partconf-mkfstab.
/var/lib/dpkg/info/partconf-mkfstab.postinst: error while loading
shared libraries: libparted-1.6.so.0: cannot open shared object file:
No such file or directory.

Thanks,
-- 
Kenshi Muto
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-03 Thread Joey Hess
Kenshi Muto wrote:
 anna in CVS reports error during install partconf-mkfstab.
 /var/lib/dpkg/info/partconf-mkfstab.postinst: error while loading
 shared libraries: libparted-1.6.so.0: cannot open shared object file:
 No such file or directory.

Hmm, I'd not realized that partconf-mkfstab worked like this. Before 
this anna change, its postinst was ran after partconf, by main-menu
since base-installer depends on created-fstab (which it provides).

-- 
see shy jo


signature.asc
Description: Digital signature


Re: menu item for bterm-unifont

2004-03-02 Thread Kenshi Muto
At 27 Feb 04 14:13:10 GMT,
Matt Kraai wrote:
 On Fri, Feb 27, 2004 at 08:47:44PM +0900, Kenshi Muto wrote:
  At 27 Feb 04 01:21:48 GMT,
  Matt Kraai wrote:
And unfortunately, I encountered another bug after this patch
applied. When bterm-unifont.postinst is executed, bogl-bterm
goes crash (Segmentation fault). Argh.
   
   I see this as well.
  
  Well, this is big problem... Reloading by manually(from VT2) doesn't
  cause nothing problem. Strange.
 
 Really?  I caused it by running
 
  udpkg --configure bterm-unifont

Ah, you're right.

bterm goes into segmentation fault loop... Here is my result.
I wonder why bterm doesn't crash when bterm-unifont is in menu.

--
anna 0.051 CVS with normal bterm-unifont:

1. udpkg --unpack bterm-unifont.udeb ; udpkg --configure bterm-unifont
  - segmentation fault loop
2. udpkg -i bterm-unifont.udeb
  - segmentation fault loop
3. udpkg --unpack bterm-unifont.udeb ; /var/lib/dpkg/info/bterm-unifont.postinst
  - segmentation fault loop
4. udpkg --unpack bterm-unifont.udeb ; kill -HUP (bterm process)
  - segmentation fault loop

anna 0.051 CVS with customized bterm-unifont (added installer-menu-item:14):

1. autoload bterm-unifont with installer-menu-item:14
  - success
2. udpkg --unpack bterm-unifont.udeb ; udpkg --configure bterm-unifont
  - success
2. udpkg -i bterm-unifont.udeb
  - success
3. udpkg --unpack bterm-unifont.udeb ; /var/lib/dpkg/info/bterm-unifont.postinst
  - success
4. udpkg --unpack bterm-unifont.udeb ; kill -HUP (bterm process)
  - success

anna 0.050 with normal bterm-unifont:

1. udpkg --unpack bterm-unifont.udeb ; udpkg --configure bterm-unifont
  - segmentation fault loop
2. udpkg -i bterm-unifont.udeb
  - segmentation fault loop
3. udpkg --unpack bterm-unifont.udeb ; /var/lib/dpkg/info/bterm-unifont.postinst
  - segmentation fault loop
4. udpkg --unpack bterm-unifont.udeb ; kill -HUP (bterm process)
  - segmentation fault loop


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-02 Thread Matt Kraai
On Tue, Mar 02, 2004 at 07:11:27PM +0900, Kenshi Muto wrote:
 Ah, you're right.
 
 bterm goes into segmentation fault loop... Here is my result.
 I wonder why bterm doesn't crash when bterm-unifont is in menu.
 
 --
 anna 0.051 CVS with normal bterm-unifont:

Is the normal bterm-unifont the version in the archive or one that
you built based on CVS?

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-02 Thread Kenshi Muto
At 2 Mar 04 13:56:19 GMT,
Matt Kraai wrote:
 On Tue, Mar 02, 2004 at 07:11:27PM +0900, Kenshi Muto wrote:
  --
  anna 0.051 CVS with normal bterm-unifont:
 
 Is the normal bterm-unifont the version in the archive or one that
 you built based on CVS?

It is in the archive (revision 0.004).
-- 
Kenshi Muto
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-03-02 Thread Matt Kraai
On Wed, Mar 03, 2004 at 12:07:49AM +0900, Kenshi Muto wrote:
 At 2 Mar 04 13:56:19 GMT,
 Matt Kraai wrote:
  On Tue, Mar 02, 2004 at 07:11:27PM +0900, Kenshi Muto wrote:
   --
   anna 0.051 CVS with normal bterm-unifont:
  
  Is the normal bterm-unifont the version in the archive or one that
  you built based on CVS?
 
 It is in the archive (revision 0.004).

Would you try building one from CVS without any changes?  I built
the version in the archive on PowerPC, so perhaps that is causing
the problem.

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-27 Thread Kenshi Muto
Hi Matt,

At 27 Feb 04 01:21:48 GMT,
Matt Kraai wrote:
  I'm almost novice about C language, so here is very nasty patch...
  More smart patch is welcome :-)
 
 Rather than extracting the package name from the filename, I
 committed a patch that passes the package name to the function
 instead.

Good point :-)

I saw this works correctly.

  And unfortunately, I encountered another bug after this patch
  applied. When bterm-unifont.postinst is executed, bogl-bterm
  goes crash (Segmentation fault). Argh.
 
 I see this as well.

Well, this is big problem... Reloading by manually(from VT2) doesn't
cause nothing problem. Strange.

Thanks,
-- 
Kenshi Muto
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-27 Thread Matt Kraai
On Fri, Feb 27, 2004 at 08:47:44PM +0900, Kenshi Muto wrote:
 At 27 Feb 04 01:21:48 GMT,
 Matt Kraai wrote:
   And unfortunately, I encountered another bug after this patch
   applied. When bterm-unifont.postinst is executed, bogl-bterm
   goes crash (Segmentation fault). Argh.
  
  I see this as well.
 
 Well, this is big problem... Reloading by manually(from VT2) doesn't
 cause nothing problem. Strange.

Really?  I caused it by running

 udpkg --configure bterm-unifont

on VC 2.

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-26 Thread Kenshi Muto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Matt,

At 25 Feb 04 07:41:18 GMT,
Matt Kraai wrote:
  bterm-unifont is called after configure network. And 'configure
  network' step needs some additional glyph.
 
 The CVS version of anna should run the postinst.  Would you please
 test it?  This avoids the useless menu item.

As I've sent to Bug#232397 follow-up, I tried current CVS, but it goes
fail.

I found this is because configure_package function in anna/util.c uses
package *filename* instead of package *name*.

I'm almost novice about C language, so here is very nasty patch...
More smart patch is welcome :-)

- --- util.c  25 Feb 2004 07:28:35 -  1.30
+++ util.c  26 Feb 2004 14:56:09 -
@@ -234,7 +234,13 @@
 char *command;
 int ret;

- -if (asprintf(command, %s %s, DPKG_CONFIGURE_COMMAND, pkgfile) == -1)
+char *truncated = strrchr(pkgfile, '/');
+char *postfix = strchr(truncated, '_');
+char pkgname[postfix - truncated + 1];
+strncpy(pkgname, ++truncated, postfix - truncated);
+pkgname[postfix - truncated] = '\0';
+
+if (asprintf(command, %s %s, DPKG_CONFIGURE_COMMAND, pkgname) == -1)
return 0;
 ret = !di_exec_shell_log(command);
 free(command);

And unfortunately, I encountered another bug after this patch
applied. When bterm-unifont.postinst is executed, bogl-bterm
goes crash (Segmentation fault). Argh.

Thanks,
- -- 
Kenshi Muto
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/

iEYEARECAAYFAkA+Cl4ACgkQQKW+7XLQPLEwagCfU42rMXNtyNC69SUp4pC3KUeF
BzsAn1aFPvTMr4Euw0ZvGpo3zpBesoiG
=/VdU
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-26 Thread Thiemo Seufer
Kenshi Muto wrote:
[snip]
  The CVS version of anna should run the postinst.  Would you please
  test it?  This avoids the useless menu item.
 
 As I've sent to Bug#232397 follow-up, I tried current CVS, but it goes
 fail.
 
 I found this is because configure_package function in anna/util.c uses
 package *filename* instead of package *name*.

AFAICS it calls udpkg, which should take a filename.


Thiemo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-26 Thread Kenshi Muto
Hi Thiemo,

At 26 Feb 04 15:59:54 GMT,
Thiemo Seufer wrote:
 Kenshi Muto wrote:
 [snip]
   The CVS version of anna should run the postinst.  Would you please
   test it?  This avoids the useless menu item.
  
  As I've sent to Bug#232397 follow-up, I tried current CVS, but it goes
  fail.
  
  I found this is because configure_package function in anna/util.c uses
  package *filename* instead of package *name*.
 
 AFAICS it calls udpkg, which should take a filename.

Really?
'udpkg --configure' looks take package name.
(at least 'udpkg --configure filename' causes 'unknown error' debconf message)
-- 
Kenshi Muto
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-26 Thread Thiemo Seufer
Kenshi Muto wrote:
 Hi Thiemo,
 
 At 26 Feb 04 15:59:54 GMT,
 Thiemo Seufer wrote:
  Kenshi Muto wrote:
  [snip]
The CVS version of anna should run the postinst.  Would you please
test it?  This avoids the useless menu item.
   
   As I've sent to Bug#232397 follow-up, I tried current CVS, but it goes
   fail.
   
   I found this is because configure_package function in anna/util.c uses
   package *filename* instead of package *name*.
  
  AFAICS it calls udpkg, which should take a filename.
 
 Really?
 'udpkg --configure' looks take package name.
 (at least 'udpkg --configure filename' causes 'unknown error' debconf message)

Internally, udpkg derives both filename and packagename from the argument
given, so both should work. But it does so in a grossly inconsistent way,
and fails.


Thiemo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-26 Thread Matt Kraai
On Fri, Feb 27, 2004 at 12:01:52AM +0900, Kenshi Muto wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi Matt,
 
 At 25 Feb 04 07:41:18 GMT,
 Matt Kraai wrote:
   bterm-unifont is called after configure network. And 'configure
   network' step needs some additional glyph.
  
  The CVS version of anna should run the postinst.  Would you please
  test it?  This avoids the useless menu item.
 
 As I've sent to Bug#232397 follow-up, I tried current CVS, but it goes
 fail.

Thanks for testing.

 I found this is because configure_package function in anna/util.c uses
 package *filename* instead of package *name*.
 
 I'm almost novice about C language, so here is very nasty patch...
 More smart patch is welcome :-)

Rather than extracting the package name from the filename, I
committed a patch that passes the package name to the function
instead.

 And unfortunately, I encountered another bug after this patch
 applied. When bterm-unifont.postinst is executed, bogl-bterm
 goes crash (Segmentation fault). Argh.

I see this as well.

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-24 Thread Matt Kraai
On Sat, Feb 14, 2004 at 07:01:31PM +0900, Kenshi Muto wrote:
 At 13 Feb 04 11:13:43 GMT,
 Matt Kraai wrote:
  In order to have main-menu run the postinst for bterm-unifont, I
  think the latter needs to have a menu item.  Is it OK to use 22?
 
 I tried to use 22 on CD install.
 
 Installer step is:
 language - country - keyboard - cd detect - installer component from CD - 
 detect network hardware - configure network - bterm-unifont
 
 Hmm, that's bad.
 bterm-unifont is called after configure network. And 'configure
 network' step needs some additional glyph.

The CVS version of anna should run the postinst.  Would you please
test it?  This avoids the useless menu item.

-- 
Matt Kraai[EMAIL PROTECTED]http://ftbfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: menu item for bterm-unifont

2004-02-14 Thread Kenshi Muto
Hi,

At 13 Feb 04 11:13:43 GMT,
Matt Kraai wrote:
 In order to have main-menu run the postinst for bterm-unifont, I
 think the latter needs to have a menu item.  Is it OK to use 22?

I tried to use 22 on CD install.

Installer step is:
language - country - keyboard - cd detect - installer component from CD - 
detect network hardware - configure network - bterm-unifont

Hmm, that's bad.
bterm-unifont is called after configure network. And 'configure
network' step needs some additional glyph.

When I set 14 for bterm-unifont, it looks good result.

And at least we need to translate menu strings.

Thanks,
-- 
Kenshi Muto
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]