Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490582 - sys-apps/gptfdisk USE=static - ?
Summary: sys-apps/gptfdisk USE=static - ?
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-11-06 17:33 UTC by lukek
Modified: 2018-07-09 08:21 UTC (History)
1 user (show)

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


Attachments
Patch to Makefile (Makefile_for_static.patch,1.17 KB, patch)
2013-11-06 17:33 UTC, lukek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.