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

Bug 490582

Summary: sys-apps/gptfdisk USE=static - ?
Product: Gentoo Linux Reporter: lukek
Component: [OLD] Core systemAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED OBSOLETE    
Severity: normal CC: polynomial-c
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: x86   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=533636
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to Makefile

Description lukek 2013-11-06 17:33:36 UTC
Created attachment 362696 [details, diff]
Patch to Makefile

I added 'static static-libs' to my USE line in make.conf and then ran 'emerge gptfdisk', but it errors out on the final stage as mentioned in this post:

http://forums.gentoo.org/viewtopic-p-7433982.html#7433982

I am including a suggested patch which may save someone some work.
It seems the Makefile was missing some switches (ie.: "-lpthread") in the build line and With the following changes to the Makefile is seems to work (see attached for patch):


 --- Makefile-orig       2013-11-05 13:32:38.000000000 -0500 
 +++ Makefile    2013-11-05 13:31:30.000000000 -0500 
 @@ -15,15 +15,15 @@ 
   
  gdisk: $(LIB_OBJS) gdisk.o gpttext.o 
  #      $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -luuid -o gdisk 
 -       $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -licuio -licuuc -luuid -o gdisk 
 +       $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -licuio -licuuc -luuid -lpthread -ldl -licudata -static -o gdisk 
   
  cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o 
  #      $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -luuid -lncurses  -o cgdisk 
 -       $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -licuio -licuuc -luuid -lncurses  -o cgdisk 
 +       $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -licuio -licuuc -luuid -lncurses -lpthread -ldl -licudata -static -o cgdisk 
   
  sgdisk: $(LIB_OBJS) sgdisk.o gptcl.o 
  #      $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -luuid -lpopt -o sgdisk 
 -       $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -licuio -licuuc -luuid -lpopt -o sgdisk 
 +       $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -licuio -licuuc -luuid -lpopt -lpthread -ldl -licudata -static -o sgdisk 
   
  fixparts: $(MBR_LIB_OBJS) fixparts.o 
         $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts 



 I do not know why these additions were needed to build and am currently assuming that it is simply a broken ebuild for my specific build/system (I'm running an i686 arch and was compiling gptfdisk statically).
If this is not the case, sorry for your trouble, please delete me.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-07-09 08:21:11 UTC
Closing this bug as it's really old and the version this report was filed against has long been removed from Gentoo. Please file a new bug report in case this problem still hits you.