diff options
Diffstat (limited to 'sci-astronomy/ftools/files/hd_install-destdir.patch')
-rw-r--r-- | sci-astronomy/ftools/files/hd_install-destdir.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sci-astronomy/ftools/files/hd_install-destdir.patch b/sci-astronomy/ftools/files/hd_install-destdir.patch deleted file mode 100644 index 7508875..0000000 --- a/sci-astronomy/ftools/files/hd_install-destdir.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff --git a/BUILD_DIR/hd_install.c b/BUILD_DIR/hd_install.c ---- a/BUILD_DIR/hd_install.c -+++ b/BUILD_DIR/hd_install.c -@@ -1459,6 +1459,7 @@ int HDinstall_file(int argc, char** argv, int status) { - char** nextArg; - char** tmpArg; - char* tmp_cp; -+ char* destdir; - InstallOptions opts = DEFAULT; - - /* Process command line options which apply to this program. */ -@@ -1555,6 +1556,15 @@ int HDinstall_file(int argc, char** argv, int status) { - continue; - } - -+ /* Prepend $DESTDIR if defined. */ -+ if(NULL != (destdir = getenv("DESTDIR"))) { -+ char* newdest = NULL; -+ if(OK != (status = AppendPath(destdir, dest, &newdest, status))) -+ continue; -+ free(dest); -+ dest = newdest; -+ } -+ - /* Give information. */ - /* Perform installation. */ - status = InstallFiles(src, dest, nextArg, &opts, status); |