Update gdisk (gptfdisk) to version 0.8.5.
PATCH v2 1/1 Update gdisk (gptfdisk) to version 0.8.5.
Update GPT fdisk utility to upstream version 0.8.5.
--- package/gdisk/gdisk-0.6.14-uuid.h.patch | 22 ------------------ package/gdisk/gdisk-0.8.5-no-utf16.patch | 43 ++++++++++++++++++++++++++++++++++++ package/gdisk/gdisk.mk | 4 ++-- 3 files changed, 45 insertions(+), 24 deletions(-) delete mode 100644 package/gdisk/gdisk-0.6.14-uuid.h.patch create mode 100644 package/gdisk/gdisk-0.8.5-no-utf16.patch
package/gdisk/gdisk-0.6.14-uuid.h.patch deleted +0 -22
@@ -1,22 +0,0 @@ -[PATCH] Don't hardcode uuid.h location - -Breaks cross compilation. - -Signed-off-by: Peter Korsgaard <[email protected]> ---- - guid.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: gdisk-0.6.14/guid.h -=================================================================== ---- gdisk-0.6.14.orig/guid.h -+++ gdisk-0.6.14/guid.h -@@ -22,7 +22,7 @@ - #ifdef _WIN32 - typedef unsigned char my_uuid_t[16]; - #else --#include </usr/include/uuid/uuid.h> -+#include <uuid/uuid.h> - typedef uuid_t my_uuid_t; - #endif -
package/gdisk/gdisk-0.8.5-no-utf16.patch new file +43 -0
43 lines not on this page · raw message
package/gdisk/gdisk.mk +2 -2
@@ -4,9 +4,9 @@ # ############################################################# -GDISK_VERSION = 0.6.14 +GDISK_VERSION = 0.8.5 GDISK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gptfdisk -GDISK_SOURCE = gdisk-$(GDISK_VERSION).tgz +GDISK_SOURCE = gptfdisk-$(GDISK_VERSION).tar.gz GDISK_TARGETS_$(BR2_PACKAGE_GDISK_GDISK) += gdisk GDISK_TARGETS_$(BR2_PACKAGE_GDISK_SGDISK) += sgdisk
Signature · 1 line
1.7.9.5
PATCH v2 1/1 Update gdisk (gptfdisk) to version 0.8.5.
Quoted 1 line · Justin Maggard
Update GPT fdisk utility to upstream version 0.8.5.
This part of the commit message is redundant, it's already in the subject line.
Quoted 1 line
Signed-off-by Justin Maggard<[email protected]>
[snip]
package/gdisk/gdisk-0.8.5-no-utf16.patch
Quoted 2 lines
package/gdisk/gdisk-0.8.5-no-utf16.patch new file +0
-0
The policy nowadays is not to include version numbers in patch names. So
just gdisk-no-utf16.patch is fine.
package/gdisk/gdisk-0.8.5-no-utf16.patch line 1
Quoted 2 lines
package/gdisk/gdisk-0.8.5-no-utf16.patch new file +1
-0@@ -0,0 +1,43 @@ +[PATCH] Disable UTF16 support
It would be better if UTF16 support was included if BR2_PACKAGE_ICU is
selected. Maybe a bit difficult to implement, so take this is optional, but I'll give some hints below.
Quoted 6 lines
package/gdisk/gdisk-0.8.5-no-utf16.patch new file +6
-0+ +libicu is quite large, and unicode partition names are uncommon. + +Signed-off-by: Justin Maggard<[email protected]> +--- +diff -ur gdisk-0.8.5/Makefile gptfdisk-0.8.5/Makefile
package/gdisk/gdisk-0.8.5-no-utf16.patch line 17
Quoted 10 lines
package/gdisk/gdisk-0.8.5-no-utf16.patch new file +10
-0+--- gdisk-0.8.5/Makefile 2012-05-30 08:38:43.000000000 -0700 ++++ gptfdisk-0.8.5/Makefile 2012-06-05 11:38:23.710597974 -0700 +@@ -1,8 +1,8 @@ + CC=gcc + CXX=g++ + CFLAGS+=-D_FILE_OFFSET_BITS=64 +-CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 +-#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 ++#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 ++CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64
You can actually override the CFLAGS and CXXFLAGS on the command line, so
this part of the patch is unneeded. Just change the build commands into
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(GDISK_TARGETS_y)
package/gdisk/gdisk-0.8.5-no-utf16.patch line 28
Quoted 11 lines
package/gdisk/gdisk-0.8.5-no-utf16.patch new file +11
-0+ LDFLAGS+= + LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix + MBR_LIBS=support diskio diskio-unix basicmbr mbrpart +@@ -14,16 +14,16 @@ + all: cgdisk gdisk sgdisk fixparts + + 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) -luuid -o gdisk ++# $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -licuio -licuuc -luuid -o gdisk
You could make this configurable with
$(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) $(if $(USE_UTF16),-licuio -licuuc) -luuid -o gdisk
This only works with GNU make, but buildroot anyway only works with GNU make.
You can define USE_UTF16 by adding the following to the make flags in the BUILD_CMDS:
USE_UTF16=$(BR2_PACKAGE_ICU)
and of course add the conditional dependency:
GDISK_DEPENDENCIES += $(if $(BR2_PACKAGE_ICU),icu)
Quoted 21 lines
package/gdisk/gdisk-0.8.5-no-utf16.patch new file +15
-0+ + 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) -luuid -lncurses -o cgdisk ++# $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -licuio -licuuc -luuid -lncurses -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) -luuid -lpopt -o sgdisk ++# $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -licuio -licuuc -luuid -lpopt -o sgdisk + + fixparts: $(MBR_LIB_OBJS) fixparts.o + $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixpartspackage/gdisk/gdisk.mk +0
-0@@ -4,9 +4,9 @@ #
package/gdisk/gdisk.mk line 12
Quoted 10 lines
package/gdisk/gdisk.mk +2
-2############################################################# -GDISK_VERSION = 0.6.14 +GDISK_VERSION = 0.8.5 GDISK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gptfdisk -GDISK_SOURCE = gdisk-$(GDISK_VERSION).tgz +GDISK_SOURCE = gptfdisk-$(GDISK_VERSION).tar.gz GDISK_TARGETS_$(BR2_PACKAGE_GDISK_GDISK) += gdisk GDISK_TARGETS_$(BR2_PACKAGE_GDISK_SGDISK) += sgdisk
Since the upstream name has changed, I would change the buildroot package name
as well. Again, it's a bit more work though. Also it would make existing config files that select gdisk invalid - I'm not sure if Peter allows that.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v2 1/1 Update gdisk (gptfdisk) to version 0.8.5.
Le Thu, 14 Jun 2012 01:16:51 +0200,
Arnout Vandecappelle <[email protected]> a ?crit :
Quoted 7 lines
Quoted 7 lines
package/gdisk/gdisk.mk +1
-1-GDISK_VERSION = 0.6.14 +GDISK_VERSION = 0.8.5 GDISK_SITE =http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gptfdisk
-GDISK_SOURCE = gdisk-$(GDISK_VERSION).tgz +GDISK_SOURCE = gptfdisk-$(GDISK_VERSION).tar.gz
Quoted 7 lines
Quoted 2 lines
GDISK_TARGETS_$(BR2_PACKAGE_GDISK_GDISK) += gdisk GDISK_TARGETS_$(BR2_PACKAGE_GDISK_SGDISK) += sgdiskSince the upstream name has changed, I would change the buildroot
package name as well. Again, it's a bit more work though. Also it would make existing config files that select gdisk invalid - I'm not sure if Peter allows that.
You can rename the package, and do something like:
config BR2_PACKAGE_NEW_NAME
bool "new-name"
help
Blabla
# This is a transitional option kept for compatibility
# reasons with the old name of this package. It can be removed # in 2013.05 config BR2_PACKAGE_OLD_NAME bool select BR2_PACKAGE_NEW_NAME
So that existing configurations continue to work for one year.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 1/1 Update gdisk (gptfdisk) to version 0.8.5.
Quoted 24 lines · Thomas Petazzoni
Le Thu, 14 Jun 2012 01:16:51 +0200,
Arnout Vandecappelle<[email protected]> a ?crit :Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
-GDISK_VERSION = 0.6.14
+GDISK_VERSION = 0.8.5
GDISK_SITE=
http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gptfdisk
-GDISK_SOURCE = gdisk-$(GDISK_VERSION).tgz +GDISK_SOURCE = gptfdisk-$(GDISK_VERSION).tar.gzQuoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
GDISK_TARGETS_$(BR2_PACKAGE_GDISK_GDISK) += gdisk GDISK_TARGETS_$(BR2_PACKAGE_GDISK_SGDISK) += sgdiskSince the upstream name has changed, I would change the buildroot
package name as well. Again, it's a bit more work though. Also it would make existing config files that select gdisk invalid - I'm not sure if Peter allows that.You can rename the package, and do something like:
config
BR2_PACKAGE_NEW_NAME
bool "new-name"
help
Blabla
Quoted 8 lines
# This is a transitional option kept for compatibility
# reasons with the old name of this package. It can be removed # in 2013.05 config BR2_PACKAGE_OLD_NAME bool select BR2_PACKAGE_NEW_NAMESo that existing configurations continue to work for one year.
I thought so too, but I tried it yesterday and it didn't seem to work...
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F