Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 95627

Summary: doxygen-1.4.3 doesn't build with Japanese style dates
Product: Gentoo Linux Reporter: Chris White (RETIRED) <chriswhite>
Component: Current packagesAssignee: Steve Arnold <nerdboy>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: doxygen-1.4.3-nls.patch

Description Chris White (RETIRED) gentoo-dev 2005-06-09 20:27:56 UTC
Doxygen installation performs the following sed:

cat doc/doxygen.1    | sed -e "s/DATE/\$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > $(INSTALL)/$(MAN1DIR)/doxygen.1 ; \

cat doc/doxytag.1    | sed -e "s/DATE/\$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > $(INSTALL)/$(MAN1DIR)/doxytag.1 ; \

cat doc/doxywizard.1 | sed -e "s/DATE/\$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > $(INSTALL)/$(MAN1DIR)/doxywizard.1 ;

notice the \ before $(DATE) and notice that $(VERSION) doesn't have it either.  This unfortunately produces the following side effect:

cat doc/doxygen.1    | sed -e "s/DATE/\6&#26376; 2005/g" -e "s/VERSION/1.4.3/g" > /var/tmp/portage/doxygen-1.4.3/image//usr/man/man1/doxygen.1 ; \
cat doc/doxytag.1    | sed -e "s/DATE/\6&#26376; 2005/g" -e "s/VERSION/1.4.3/g" > /var/tmp/portage/doxygen-1.4.3/image//usr/man/man1/doxytag.1 ; \
cat doc/doxywizard.1 | sed -e "s/DATE/\6&#26376; 2005/g" -e "s/VERSION/1.4.3/g" > /var/tmp/portage/doxygen-1.4.3/image//usr/man/man1/doxywizard.1 ;
sed: -e &#34920;&#29694; #1, &#25991;&#23383;&#25968; 19: invalid reference \7 on `s' command's RHS
sed: -e &#34920;&#29694; #1, &#25991;&#23383;&#25968; 19: invalid reference \7 on `s' command's RHS
sed: -e &#34920;&#29694; #1, &#25991;&#23383;&#25968; 19: invalid reference \7 on `s' command's RHS

note that in Japanese, the form is [month number][month kanji] [year].  The fact that the number is first causes sed to want to do a bizzare replacement scheme because of \6 being there.  now, why the \ is there in the first place is beyond me.. it doesn't look necessary.  Therefore I have attached a Makefile.in patch to take care of the situation.
Comment 1 Chris White (RETIRED) gentoo-dev 2005-06-09 20:28:53 UTC
Created attachment 60961 [details, diff]
doxygen-1.4.3-nls.patch

Patch for Makefile.in
Comment 2 Steve Arnold archtester gentoo-dev 2005-06-10 22:33:03 UTC
See doxygen-1.4.3-r1...   Thanks.