Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Portage tries to install doc with bad file name case
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Mon Aug 12, 2013 6:03 pm    Post subject: [SOLVED]Portage tries to install doc with bad file name case Reply with quote

Hi all,

I have written a live ebuild here for curvezmq.

It tries to install curvezmq.7 instead of CurveZMQ.7 in the man pages. How to force portage to install CurveZMQ.7 instead of curvezmq.7 ? Shall the file names be mandatory lower case ? Please follow the ebuild link for details. I am not an ebuild expert and I need help here.


Last edited by lalebarde on Tue Aug 13, 2013 2:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Mon Aug 12, 2013 9:30 pm    Post subject: Reply with quote

If you look, your problem is not portage, it is the makefile from the package that is specifying it in lowercase. That output is from running make.

https://github.com/zeromq/curvezmq/blob/master/doc/Makefile.am
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Tue Aug 13, 2013 9:13 am    Post subject: Reply with quote

Thanks dol-sen,

I have added the patch curvezmq-9999-doc_makefile.am-CurveZMQ.7.patch :
Code:
--- doc/Makefile.am.orig   2013-08-13 09:23:17.009297509 +0200
+++ doc/Makefile.am   2013-08-13 09:23:17.009297509 +0200
@@ -1,6 +1,6 @@
 MAN1 =
 MAN3 = curvezmq_codec.3 curvezmq_keypair.3
-MAN7 = curvezmq.7
+MAN7 = CurveZMQ.7
 MAN_DOC = $(MAN1) $(MAN3) $(MAN7)
 
 MAN_TXT = $(MAN1:%.1=%.txt)


It is correctly applied :
Code:
 * Applying curvezmq-9999-doc_makefile.am-CurveZMQ.7.patch ...
 [ ok ]
I checked also in the portage working directory /var/tmp/portage/net-libs/curvezmq-9999/work/curvezmq-9999/doc/Makefile.am :
Code:
MAN1 =
MAN3 = curvezmq_codec.3 curvezmq_keypair.3
MAN7 = CurveZMQ.7
MAN_DOC = $(MAN1) $(MAN3) $(MAN7)

MAN_TXT = $(MAN1:%.1=%.txt)
MAN_TXT += $(MAN3:%.3=%.txt)
MAN_TXT += $(MAN7:%.7=%.txt)


I have now another error :
Code:
Making all in doc
make[1]: Entering directory `/var/tmp/portage/net-libs/curvezmq-9999/work/curvezmq-9999/doc'
 cd .. && /bin/sh /var/tmp/portage/net-libs/curvezmq-9999/work/curvezmq-9999/config/missing --run automake-1.12 --foreign doc/Makefile
 cd .. && /bin/sh ./config.status doc/Makefile
config.status: creating doc/Makefile
make[1]: Leaving directory `/var/tmp/portage/net-libs/curvezmq-9999/work/curvezmq-9999/doc'
make[1]: Entering directory `/var/tmp/portage/net-libs/curvezmq-9999/work/curvezmq-9999/doc'
./mkman curvezmq_codec.txt
./mkman curvezmq_keypair.txt
make[1]: *** No rule to make target `CurveZMQ.txt', needed by `CurveZMQ.xml'.  Stop.


Possibly this is not the good approach ? I will try a mv at the install stage.....
Back to top
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Tue Aug 13, 2013 12:52 pm    Post subject: Reply with quote

I have made two other attemps but failed :

1) patch doc/curvezmq.txt :
Code:
--- doc/curvezmq.txt.orig   2013-08-13 14:40:04.246133001 +0200
+++ doc/curvezmq.txt   2013-08-13 14:41:29.812185378 +0200
@@ -1,4 +1,4 @@
-curvezmq(7)
+CurveZMQ(7)
 ===========


2) copy/past the default src_install() and add before dodoc :
Code:
cp ${DOC}/CurveZMQ.7 ${DOC}/curvezmq.7


This is probably naive attempts, but I cannot aford to learn portage and ebuilds in the deep now. Any help appreciated please.
Back to top
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Tue Aug 13, 2013 2:44 pm    Post subject: Reply with quote

A
Code:
cp ${S}/doc/CurveZMQ.7 ${S}/doc/curvezmq.7
in src_install() did the trick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum