Hi! In the latest version of the hdup program, the location of the hdup.conf file has been changed. The author changed the ETCFILE define in src/hdup.h.in to something like @prefix@/etc/hdup/hdup.conf, which causes that in gentoo installation the program looks for the hdup.conf in /usr/etc/hdup dir and of course doesn't find it there. I reported this problem to the author and I hope it will solve it in the nearest feature... Here is the report I have sent: #v+ Hello Miek, I have been using your great program for perfoming backups for some time. Recently, it has been added to the portage three of the Gentoo Linux distribution (I had helped a bit in that process). However, there is a problem with config file location in the latest bugfix release, which is described in the ChangLog as: "bugfix: location of hdup.conf in hdup.h.in now has @prefix@ as prefix (Thanks to Uli Bubenheimer for reporting). Also make hdup.1 reflect the correct location" This change causes that when one choose the default prefix to /usr for example (as it is defined in Gentoo's hdup-1.6.29.ebuild) the location of hdup.conf is somehow strange: /usr/etc/hdup/hdup.conf, instead of assumed /etc/hdup/hdup.conf. The Gentoo's hdup-1.6.29.ebuild uses such a form of invoking 'make install' command: "make prefix=${D}/usr mandir=${D}/usr/share/man sysconfdir=${D}/etc \ install || die" where, ${D} is a temporary directory, which is finally changed into root directory "/". But the 'sysconfdir' can not be used in that way, since there is a hard statement in your src/hdup.h.in source file. To solve this problem I suggest using the sysconfdir parameter in your configure script, which could be set to ${prefix}/etc as default. But it requires some changes in src/hdup.h.in (here is the patch): --- src/hdup.h.in.orig 2004-04-27 19:31:05.779891904 +0200 +++ src/hdup.h.in 2004-04-27 19:31:36.414234776 +0200 @@ -23,7 +23,7 @@ #define LZOP_PROG "@lzop@" #define SPLIT_PROG "@split@" #define UNSPLIT_PROG "@cat@" -#define ETCFILE "@prefix@/etc/hdup/hdup.conf" +#define ETCFILE "@sysconfdir@/hdup/hdup.conf" #define REMOTE_HDUP "/usr/local/bin/hdup" #define REMOTE_HDUP_OPT "" /* default is empty */ #define FILELIST "/filelist" and also in the configure script, which I haven't changes, because it is generated by autoconf. So I left this correction as your homework. I hope you correct this inconvenience in the forseeable future ;) Best wishes and keep coding, ediap #v-
great guy, thx
The pach I prepared is not the only needed. The author contacted me and send a patchset, which is a bit vague, however it solves the problem. This patch set is attached below...
Created attachment 30382 [details, diff] A patch for hdup-1.6.29, which soves the problem of hdup.conf file location
Please find below the hdup-1.6.30.ebuild (new version). The TODO file has been removed from sources, so I removed it from ebuild install part. The previous patch is now redundant, so forget about it ;)
Created attachment 30546 [details] hdup-1.6.30.ebuild (version update)
in cvs
Thanks for updating, however... bad news again. There is a problem with using hdup-1.6.30 with bzip2 compression in Gentoo. The configure script, which is generated with autoconf from configure.ac can not find the correct location of the bzip2 program in Gentoo. This bug could be easily solved by changing the following line in configure.ac: AC_PATH_PROG(bzip, bzip, "/usr/bin/bzip2") with: AC_PATH_PROG(bzip, bzip2, "/usr/bin/bzip2") I reported this problem to the author, so it might be a chance that in the nearest future there will be another update :-)
*** This bug has been marked as a duplicate of 51986 ***