Added partimage package.
PATCH 1/1 Added partimage package.
Also supplied two patches. The first removes checking for setpgrp()function which cannot be performed when cross-compiling and links partimage against libintl explicitly, the second makes some slight fixes to the source code because newt API has changed a bit.
Signed-off-by firegurafiku <[email protected]>
--- package/Config.in | 1 + package/partimage/Config.in | 43 ++++++++++++++++++++ package/partimage/partimage-0.6.9-configure.patch | 23 +++++++++++ package/partimage/partimage-0.6.9-src.patch | 37 +++++++++++++++++ package/partimage/partimage.mk | 45 +++++++++++++++++++++ 5 files changed, 149 insertions(+), 0 deletions(-) create mode 100644 package/partimage/Config.in create mode 100644 package/partimage/partimage-0.6.9-configure.patch create mode 100644 package/partimage/partimage-0.6.9-src.patch create mode 100644 package/partimage/partimage.mk
package/Config.in +1 -0
@@ -191,6 +191,7 @@ source "package/memtester/Config.in" source "package/mtd/Config.in" source "package/ntfs-3g/Config.in" source "package/ntfsprogs/Config.in" +source "package/partimage/Config.in" source "package/pciutils/Config.in" source "package/rng-tools/Config.in" source "package/sdparm/Config.in"
package/partimage/Config.in new file +43 -0
43 lines not on this page · raw message
package/partimage/partimage-0.6.9-configure.patch new file +23 -0
@@ -0,0 +1,23 @@ +Removes checking for presence of setpgrp() function which is not possible +when cross-compiling and explicitly links partimage against libintl as +required in case of using uClibc. + +--- a/configure.ac 2010-07-25 19:30:52.000000000 +0400 ++++ b/configure.ac 2011-07-13 20:16:31.365546004 +0400 +@@ -96,6 +96,8 @@ + AC_CHECK_LIB([z], [gzwrite], [], + AC_MSG_ERROR([*** gzip library (libz) not found])) + ++LIBS="$LIBS -lintl" ++ + dnl Search for headers, add path to CPPFLAGS if found + AC_DEFUN([AC_SEARCH_HEADERS], + [ +@@ -195,7 +197,6 @@ + AC_STRUCT_TM + + dnl Check for library functions. +-AC_FUNC_SETPGRP + AC_CHECK_FUNCS(getwd strerror strdup atoll strtoll setpgid) + AC_CHECK_FUNCS(fstat64 fstatfs64 open64) + dnl getcwd, putenv, strdup have already been checked.
package/partimage/partimage-0.6.9-src.patch new file +37 -0
@@ -0,0 +1,37 @@ +Slightly fixes source code of partimage client to get rid of compilation +errors like "not enough actual parameters for newtScale() function" and +"could not convert const char** to char**". + +diff -u -r a/src/client/gui_text.cpp b/src/client/gui_text.cpp +--- a/src/client/gui_text.cpp 2010-07-25 19:30:31.000000000 +0400 ++++ b/src/client/gui_text.cpp 2011-07-13 18:36:08.000000000 +0400 +@@ -497,7 +497,7 @@ + m_labelStatsSpeed = newtLabel(1, 11, ""); + m_labelStatsSpace = newtLabel(1, 12, ""); + +- m_progressSaving = newtScale(1, 18, 70, 100); ++ m_progressSaving = newtScale(1, 18, 70, 100, 0); + m_labelPercent = newtLabel(72, 18, ""); + + m_formMain = newtForm(NULL, NULL, 0); +@@ -760,7 +760,7 @@ + m_labelStatsSpeed = newtLabel(1, 11, ""); + m_labelStatsSpace = newtLabel(1, 12, ""); + +- m_progressRestoring = newtScale(1, 18, 70, 100); ++ m_progressRestoring = newtScale(1, 18, 70, 100, 0); + m_labelPercent = newtLabel(72, 18, ""); + + m_formMain = newtForm(NULL, NULL, 0); +diff -u -r a/src/client/interface_newt.cpp b/src/client/interface_newt.cpp +--- a/src/client/interface_newt.cpp 2010-07-25 19:30:31.000000000 +0400 ++++ b/src/client/interface_newt.cpp 2011-07-13 18:40:41.000000000 +0400 +@@ -611,7 +611,7 @@ + char *filesel(char *dr) + { + newtComponent lb, b1, b2, b3, l1, l2, f, f1; +- const char *enr2, *enr3; ++ char *enr2, *enr3; + char *curv; + char curvv[PATH_MAX]; // stupid, but who cares... + int i, cnt;
package/partimage/partimage.mk new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
1.7.3.4