diff options
author | Ismael Luceno | 2019-06-02 21:59:13 +0200 |
---|---|---|
committer | Ismael Luceno | 2019-06-02 21:59:13 +0200 |
commit | 96279e5550eb56137ddac084d9dd14647647e9ce (patch) | |
tree | 8cbf125feb8048bdc08ba5e277e1e2386fbaf0c9 /archive | |
parent | ee907dd231c1a9b320e225548a7c7a82259d7ef1 (diff) |
cdebootstrap: Fix build on non-glibc systems
Replace the non-standard canonicalize_file_name function by realpath.
Diffstat (limited to 'archive')
-rw-r--r-- | archive/cdebootstrap/HISTORY | 4 | ||||
-rwxr-xr-x | archive/cdebootstrap/PRE_BUILD | 1 | ||||
-rw-r--r-- | archive/cdebootstrap/patches/0001-Remove-canonicalize_file_name.patch | 14 |
3 files changed, 19 insertions, 0 deletions
diff --git a/archive/cdebootstrap/HISTORY b/archive/cdebootstrap/HISTORY index 06dc0a44eb..355ee46e21 100644 --- a/archive/cdebootstrap/HISTORY +++ b/archive/cdebootstrap/HISTORY @@ -1,3 +1,7 @@ +2019-06-03 Ismael Luceno <ismael@sourcemage.org> + * PRE_BUILD, patches/0001-Remove-canonicalize_file_name.patch: Fixed + build on non-glibc systems + 2019-05-26 Ismael Luceno <ismael@sourcemage.org> * PRE_BUILD, DETAILS: Fixed SOURCE_URL[0] updated spell to 0.7.7 diff --git a/archive/cdebootstrap/PRE_BUILD b/archive/cdebootstrap/PRE_BUILD index 6138fad388..b104b4e31f 100755 --- a/archive/cdebootstrap/PRE_BUILD +++ b/archive/cdebootstrap/PRE_BUILD @@ -1,3 +1,4 @@ default_pre_build && cd "$SOURCE_DIRECTORY" && +apply_patch_dir patches && autoreconf -i diff --git a/archive/cdebootstrap/patches/0001-Remove-canonicalize_file_name.patch b/archive/cdebootstrap/patches/0001-Remove-canonicalize_file_name.patch new file mode 100644 index 0000000000..c09d699a51 --- /dev/null +++ b/archive/cdebootstrap/patches/0001-Remove-canonicalize_file_name.patch @@ -0,0 +1,14 @@ +From: Ismael Luceno <ismael@sourcemage.org> +Subject: Replace non-standard canonicalize_file_name by realpath + +--- a/src/frontend/standalone/main.c ++++ b/src/frontend/standalone/main.c +@@ -227,7 +227,7 @@ static void check_target (const char *target, bool noexec) + else + log_text (DI_LOG_LEVEL_ERROR, "Target check failed: %s", strerror (errno)); + +- target_root = canonicalize_file_name(target); ++ target_root = realpath(target, NULL); + if (!target_root) + log_text (DI_LOG_LEVEL_ERROR, "Target check failed: %s", strerror (errno)); + } |