bugGNU Source Installer - Bugs: bug #17235, install-info workaround on debian...

 
 

bug #17235: install-info workaround on debian based systems

Submitter:  Gökdeniz Karadağ <hayalci>
Submitted:  Sun 30 Jul 2006 12:22:37 PM UTC
   
 
Category:  sourceinstall installation/deployment Severity:  3 - Normal
Status:  Fixed Assigned to:  sick_soul
Open/Closed:  Closed
Additional Notes: 

While installing GNU Source Installer on Ubuntu 6.06, I ran into the problem that install-info binary provided with the "dpkg" package is incompatible with the GNU install-info. The "texinfo" package has the gnu version, and it installs to /usr/bin/ginstall-info (This is probably the same behaviour with debian, but I didn't check it). Configure script of libsrcinst can't find and use it in this location, the following patch enables it to use GNU install-info. I don't know if I broke something with this patch, but the original script didn't use the variable apparently. If there is a command line option included for this variable, it will be very useful.



--- configure.bak       2006-07-29 13:11:24.000000000 +0300
+++ configure   2006-07-29 12:54:58.000000000 +0300
@@ -489,6 +489,7 @@
 verbose=
 x_includes=NONE
 x_libraries=NONE
+PRG_install_info=/usr/bin/ginstall-info

 # Installation directory options.
 # These are left unexpanded so users can "make install exec_prefix=/foo"
@@ -31688,8 +31689,7 @@
   { { echo "$as_me:$LINENO: error: GNU install-info was not detected. Ensure that you have a working version of GNU install-info reachable through your path before attempting configuration again." >&5
 echo "$as_me: error: GNU install-info was not detected. Ensure that you have a working version of GNU install-info reachable through your path before attempting configuration again." >&2;}
    { (exit 1); exit 1; }; }
-elif ($PRG_install_info --version &&
-  install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then
+elif ($PRG_install_info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then
   { echo "$as_me:$LINENO: GNU install-info seems to be working correctly." >&5
 echo "$as_me: GNU install-info seems to be working correctly." >&6;}

* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 06 Aug 2006 09:34:38 PM UTC, comment #9: 


> I installed version 2.2, and it had no problem with
> install-info. I assume the patch is included in 2.2.


It is.

> I run the following test with a2ps;
> - I installed a2ps-4.10.4, info file installed correctly.
> Took md5 hash of the a2ps.info.


`install-info' inserts menu entries from an Info file into the
top-level `dir' file in the Info system.
See info install-info.
So you are interested in the /usr/local/info/dir file (with your prefix) even more than the .info file itself when testing install-info.

> - I upgraded a2ps version to a2ps-4.12, info file upgraded
> correctly, md5 has changed.


good.

> - I removed a2ps, info file was removed. ( Although man page
> remained and "info a2ps" showed the man page )


I tried the same operation on my system and the man page was correctly removed.

>- I installed a2ps-4.12, md5 the same as the md5 after
> 4.10->4.12 upgrade.
>
> - I downgraded from 4.12 to 4.10, md5 same as the fresh
> installed 4.10
>
> - I removed a2ps-4.10, again, info file is removed but
> man page is not.
>
> I guess the patch works :) But the issue with man pages seem
> strange and may require further investigation. Sourceinstall
> issues "/bin/rm -f /usr/local/man/man1/a2ps.1" but the man page
> that stayed is in "/usr/local/share/man/man1/a2ps.1", I used
> "--prefix=/usr/local" during the test.


The vanilla a2ps package indeed creates ${prefix}/man/man1/a2ps.1, so I think you might have another installation of a2ps in your system, with a mandir=/usr/local/share/man . Or did you specify a custom mandir
during installation?

If the problem with manpages persists, please open a separate bug report, possibly with all the verbose output of sourceinstall (--verbose), or the Save Log output of sourceinstall-gtk.

Thanks for the test!

Claudio

Claudio Fontana <sick_soul>
Group administrator
Sun 06 Aug 2006 07:08:11 PM UTC, comment #8: 

I installed version 2.2, and it had no problem with install-info. I assume the patch is included in 2.2.

Gökdeniz Karadağ <hayalci>
Sun 06 Aug 2006 01:21:58 PM UTC, comment #7: 

Hello,

I run the following test with a2ps;

- I installed a2ps-4.10.4, info file installed correctly. Took md5 hash of the a2ps.info.

- I upgraded a2ps version to a2ps-4.12, info file upgraded correctly, md5 has changed.

- I removed a2ps, info file was removed. ( Although man page remained and "info a2ps" showed the man page )

- I installed a2ps-4.12, md5 the same as the md5 after 4.10->4.12 upgrade.

- I downgraded from 4.12 to 4.10, md5 same as the fresh installed 4.10

- I removed a2ps-4.10, again, info file is removed but man page is not.

I guess the patch works :) But the issue with man pages seem strange and may require further investigation. Sourceinstall issues "/bin/rm -f /usr/local/man/man1/a2ps.1" but the man page that stayed is in "/usr/local/share/man/man1/a2ps.1", I used "--prefix=/usr/local" during the test.

- Gokdeniz

Gökdeniz Karadağ <hayalci>
Tue 01 Aug 2006 03:44:21 PM UTC, comment #6: 


> If you can point me to a GNU compatible tarball which includes
> an info file, I can verify the correct installation of info
> files.


You can check with most of the GNU software you find at

ftp://ftp.gnu.org/gnu

Some small ones (but with info pages): grep, gawk, idutils, a2ps, ...

There are many non-gnu packages which work with sourceinstall,
but often they do not provide info pages.

However, during installation install-info is only called as fallback if the package does not install info pages properly.

install-info is much more relevant during upgrades/downgrades/uninstallation, and it is the only way to keep info files and index up to date (since make uninstall from the package is not trusted and almost never used).

So if you want to run a relevant test, you should include upgrade and uninstall actions.

Thanks,

Claudio

Claudio Fontana <sick_soul>
Group administrator
Tue 01 Aug 2006 09:56:31 AM UTC, comment #5: 

Hi,

Now it configures and installs perfectly. I wanted to test the installation of info pages, but unfortunately all the source code programs I downloaded either uses scons, or a custom installation script. If you can point me to a GNU compatible tarball which includes an info file, I can verify the correct installation of info files.

Thanks for your effort

--
Gokdeniz

Gökdeniz Karadağ <hayalci>
Mon 31 Jul 2006 04:03:35 PM UTC, comment #4: 

new cvs build is ready.
Changes:

--- configure.ac.~1.19.~        2006-07-30 19:07:07.000000000 +0200
+++ configure.ac        2006-07-31 17:57:23.000000000 +0200
@@ -50,7 +50,7 @@
     PRG_install_info=${PRG_ginstall_info}
 fi
 
-if (${PRG_install_info} --version && install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then
+if (${PRG_install_info} --version && ${PRG_install_info} --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then
     AC_MSG_NOTICE([GNU install-info seems to be working correctly.])
     AC_DEFINE_UNQUOTED(PRG_install_info, "${PRG_install_info}",
        [required Unix program])

Claudio Fontana <sick_soul>
Group administrator
Mon 31 Jul 2006 10:33:46 AM UTC, comment #3: 


> There still seems to be a problem.
> And I suspect the cause is here, it still checks for the
> install-info from dpkg;


> line 53 in configure.ac
> if (${PRG_install_info} --version && install-info --version 2>&1
> | sed 1q | grep -i -v debian) >/dev/null 2>&1; then
>
> it works if the check is changed into:
> if (${PRG_install_info} --version 2>&1 | sed 1q | grep -i -v
> debian) >/dev/null 2>&1; then


I fixed this too quickly it seems;
the correct change is to replace the direct invocation of install-info in line 53 of configure.ac with ${PRG_install_info}.

This apparently strange sequence of invocations is required to check for known problems.

I'll rebuild CVS asap.
Thanks for the catch!

Claudio

Anonymous
Mon 31 Jul 2006 09:31:46 AM UTC, comment #2: 

Hello,

There still seems to be a problem. And I suspect the cause is here, it still checks for the install-info from dpkg;

line 53 in configure.ac
if (${PRG_install_info} --version && install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then

line 32822 in configure script
if (${PRG_install_info} --version && install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then

it works if the check is changed into:
if (${PRG_install_info} --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then

Gökdeniz Karadağ <hayalci>
Sun 30 Jul 2006 05:16:29 PM UTC, comment #1: 

I worked on a fix for configure.ac that is now in current CVS.

Since these changes involve the build system, it is safer that I do not give you a patch, and instead direct you to the latest CVS builds.

Reach the file section and look for the libsrcinst-cvs, sourceinstall-cvs, sourceinstall-gtk-cvs tarballs.

Thanks for your report,

Claudio

Claudio Fontana <sick_soul>
Group administrator
Sun 30 Jul 2006 12:22:37 PM UTC, original submission:  

Installation of GNU Source Installer's libsrcinst component failed on my Ubuntu 6.06 Dapper Drake system, because of incompatibilities of Debian and GNU install-info programs.

GNU install-info is present in Ubuntu's (and probably Debian's) texinfo package. I installed it, but the configure script couldn't find and use it. The GNU version is at /usr/bin/ginstall-info. I played a while with the configure script,the following patch enabled me to

--- configure.bak       2006-07-29 13:11:24.000000000 +0300
+++ configure   2006-07-29 12:54:58.000000000 +0300
@@ -489,6 +489,7 @@
 verbose=
 x_includes=NONE
 x_libraries=NONE
+PRG_install_info=/usr/bin/ginstall-info

 # Installation directory options.
 # These are left unexpanded so users can "make install exec_prefix=/foo"
@@ -31688,8 +31689,7 @@
   { { echo "$as_me:$LINENO: error: GNU install-info was not detected. Ensure that you have a working version of GNU install-info reachable through your path before attempting configuration again." >&5
 echo "$as_me: error: GNU install-info was not detected. Ensure that you have a working version of GNU install-info reachable through your path before attempting configuration again." >&2;}
    { (exit 1); exit 1; }; }
-elif ($PRG_install_info --version &&
-  install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then
+elif ($PRG_install_info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then
   { echo "$as_me:$LINENO: GNU install-info seems to be working correctly." >&5
 echo "$as_me: GNU install-info seems to be working correctly." >&6;}

Gökdeniz Karadağ <hayalci>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-08-06 sick_soul StatusReady For Test Fixed
    Open/ClosedOpen Closed
2006-07-30 sick_soul StatusNone Ready For Test
    Assigned toNone sick_soul
2006-07-30 hayalci Carbon-Copy- Added hayalci

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code