Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6201 - info directory index lacks 'mh-e' entry
Summary: info directory index lacks 'mh-e' entry
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Highest minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2002-08-08 09:06 UTC by YAMAKURA Makoto
Modified: 2011-10-30 22:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
update a patche for emerge revision 1.224 (emerge-1.224.diff,634 bytes, patch)
2003-09-17 03:27 UTC, Akinori Hattori
Details | Diff
patch against emerge (bugs.6201.patch,415 bytes, patch)
2003-11-10 17:33 UTC, Masatomo Nakano (RETIRED)
Details | Diff
patch against emerge (bugs.6201.patch,415 bytes, patch)
2003-11-10 18:08 UTC, Masatomo Nakano (RETIRED)
Details | Diff
patch against emerge (bugs.6201.patch,636 bytes, patch)
2003-11-10 18:55 UTC, Masatomo Nakano (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description YAMAKURA Makoto 2002-08-08 09:06:12 UTC
'mh-e.info' has a dash in its name.
emerge cannot process it correctly.

portage-2.0.27
/usr/bin/emerge:1089 (post_emerge) has:
   auxpat=re.compile('^([^-]*)(-\d+)?\.info(-\d+)?(\.gz)?')

It should be:
   auxpat=re.compile('^(.*)(-\d+)?\.info(-\d+)?(\.gz)?')
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-08 10:44:19 UTC
what package is this for, exactly?
Comment 2 YAMAKURA Makoto 2002-08-08 11:33:13 UTC
for example, emacs-21.2-r1 ebuild installs such info files:
ada-mode.info.gz
dired-x.info.gz
emacs-mime.info.gz
mh-e.info.gz
pcl-cvs.info.gz

I apologize for incorrect suggestion; the regular expression is wrong.
This is worked for me:

        auxpat=re.compile('^[^-]*(-[^\d][^-]*)*(-\d+)?\.info(-\d+)?(\.gz)?')
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2002-08-12 14:38:43 UTC
daniel, what do you think?
Comment 4 YAMAKURA Makoto 2002-11-01 04:12:56 UTC
I have an another solution. This also works fine for me.
Thanks.

--- /usr/bin/emerge	2002-09-26 11:17:53.000000000 +0900
+++ /tmp/myemerge	2002-11-01 18:52:34.000000000 +0900
@@ -1107,7 +1107,7 @@
 		return 1
 
 def post_emerge(retval=0):
-	auxpat=re.compile('^([^-]*)(-\d+)?\.info(-\d+)?(\.gz)?')	
+	auxpat=re.compile('(-\d+)?\.info(-\d+)?(\.gz)?')	
 	global myopts
 	print
 	if "--pretend" in myopts:
@@ -1138,7 +1138,7 @@
 				if not aux:
 					continue
 				auxgroups=aux.groups()	
-				if not (auxgroups[1] or auxgroups[2]):
+				if not (auxgroups[0] or auxgroups[1]):
 					myso=commands.getstatusoutput("/usr/bin/install-info --dir-file="+root+"usr/share/info/dir "+root+"usr/share/info/"+x)[1]
 					if myso!="":
 						badcount=badcount+1
Comment 5 Akinori Hattori gentoo-dev 2003-07-15 09:09:34 UTC
I also encountered the same situation.
Then, I made the patch.
Please check.

--- emerge.orig 2003-07-15 03:12:01.000000000 +0900
+++ emerge      2003-07-15 03:10:17.000000000 +0900
@@ -1456,7 +1456,7 @@
 
 
 def post_emerge(retval=0):
-       auxpat=re.compile('^([^-]*)(-\d+)?\.info(-\d+)?(\.gz)?')        
+       auxpat=re.compile('^([^-]*)(-[^\d]+)?\.info(-\d+)?(\.gz)?')     
        global myopts
        print
        if "--pretend" in myopts:
@@ -1518,7 +1518,7 @@
                                        if not aux:
                                                continue
                                        auxgroups=aux.groups()  
-                                       if not (auxgroups[1] or auxgroups[2]):
+                                       if not (auxgroups[2]):
                                                myso=commands.getstatusoutput("/usr/bin/in
stall-info --dir-file="+inforoot+"/dir "+inforoot+"/"+x)[1]
                                                if myso!="":
                                                        badcount=badcount+1
Comment 6 Akinori Hattori gentoo-dev 2003-09-17 03:27:48 UTC
Created attachment 17873 [details, diff]
update a patche for emerge revision 1.224
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-09-21 18:39:46 UTC
I'm also waiting for this bug to be solved because many Japanese info
files have -ja.info suffixes (thus not added to info dir).
Comment 8 Masatomo Nakano (RETIRED) gentoo-dev 2003-10-19 11:01:37 UTC
We should include this patch.
Comment 9 Nicholas Jones (RETIRED) gentoo-dev 2003-11-09 22:26:59 UTC
The suggestions were all kinda off. They all broke
something except the first one.

Fix included for 49-r17
Comment 10 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-10 17:32:28 UTC
carpaski:
Thanks for including this patch.

But there's problem that portage fails to merge info.
I just made a patch.
Can you include this too?
Comment 11 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-10 17:33:08 UTC
Created attachment 20556 [details, diff]
patch against emerge
Comment 12 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-10 18:08:33 UTC
Created attachment 20559 [details, diff]
patch against emerge

Sorry!
I mistook about the patch.
this patch works.
Comment 13 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-10 18:55:02 UTC
Created attachment 20560 [details, diff]
patch against emerge

This is final version!
Actually, I didn't understand this process well.
I understand right now :)
Comment 14 Nicholas Jones (RETIRED) gentoo-dev 2003-11-11 17:40:42 UTC
Ok. Should finally be taken care of.
for -r17