Hi,
I not a "real" programmer, more a sysadmin, so please excuse if I'm not doing all things correct :-)
I was wondering why there is no partimage/partimage-server available for CentOS 7 in the EPEL-repository, whil it is available for all others.
The reason might be found here:
http://mirrors.karan.org/epel7/Packages/partimage/
I tried to compile partimage-0.6.9 by myself and got similar errors, finally I found a solution:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662596 and https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=17;filename=partimage-0.6.8-2.2-nmu.diff;att=1;bug=662596
So I converted it into a small patch for CentOS 7 and now I can compile and run it, maybe one of the "real" programmers in the EPEL-project would like to include it, to provide the partimage RPMs for EPEL 7 too.
The fix is based on the latest partimage-build found here:
http://sourceforge.net/projects/partimage/files/stable/0.6.9/partimage-0.6.9.tar.bz2/download
fix_662596-cannot_convert_gzFile_s_partimage-0.6.9.patch:
----------------------------------------- diff -Nur partimage-0.6.9.orig/src/client/imagefile.cpp partimage-0.6.9/src/client/imagefile.cpp --- partimage-0.6.9.orig/src/client/imagefile.cpp 2010-07-25 17:30:31.000000000 +0200 +++ partimage-0.6.9/src/client/imagefile.cpp 2014-11-15 00:25:30.150000000 +0100 @@ -783,7 +783,7 @@ else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression { showDebug(1, "open gzip\n"); - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h"); + m_gzImageFile = gzdopen(m_nFdImage, "wb"); //"wb1h"); if (m_gzImageFile == NULL) { showDebug(1, "error:%d %s\n", errno, strerror(errno)); @@ -1098,7 +1098,7 @@ } else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression { - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb"); + m_gzImageFile = gzdopen(m_nFdImage, "rb"); if (m_gzImageFile == NULL) THROW(ERR_ERRNO, errno); else diff -Nur partimage-0.6.9.orig/src/client/imagefile.h partimage-0.6.9/src/client/imagefile.h --- partimage-0.6.9.orig/src/client/imagefile.h 2010-07-25 17:30:31.000000000 +0200 +++ partimage-0.6.9/src/client/imagefile.h 2014-11-15 00:25:45.241000000 +0100 @@ -41,7 +41,7 @@ COptions m_options;
FILE *m_fImageFile; - gzFile *m_gzImageFile; + gzFile m_gzImageFile; BZFILE *m_bzImageFile;
int m_nFdImage; -----------------------------------------
thanks a lot,
On 11/14/2014 04:57 PM, Thorolf Godawa wrote:
Hi,
I not a "real" programmer, more a sysadmin, so please excuse if I'm not doing all things correct :-)
I was wondering why there is no partimage/partimage-server available for CentOS 7 in the EPEL-repository, whil it is available for all others.
...
This -
https://admin.fedoraproject.org/pkgdb/package/partimage/
shows that there is no EPEL7 branch for partimage yet. Please file a bug against partimage asking for an EPEL7 branch and attach your information there.
epel-devel@lists.fedoraproject.org