Handle config.guess and config.sub with DOS EOLs 82/300382/1 accepted/tizen_base_asan accepted/tizen_base_riscv accepted/tizen/base/20231103.024613 accepted/tizen/base/asan/20231128.220140 accepted/tizen/base/riscv/20231101.080043
authorbiao716.wang <biao716.wang@samsung.com>
Mon, 23 Oct 2023 08:20:46 +0000 (17:20 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Mon, 23 Oct 2023 08:20:46 +0000 (17:20 +0900)
Change-Id: Iebcaa7de2dd57dc740cb1f99ab4c0c505d39de56
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
build/parseBuildInstallClean.c

index 1995717..5ecf77c 100644 (file)
@@ -59,7 +59,7 @@ int parseBuildInstallClean(rpmSpec spec, int parsePart)
                           "for s in guess sub; do\n"
                           "    for c in $(find -maxdepth 8 -name \"config.$s\"); do\n"
                           "         grep -q config-patches@ $c || continue\n"
-                          "         timestamp=$(sed -n \"/^timestamp=/{s///;s/[-'\\\"]//g;p;q;}\" $c)\n"
+                          "         timestamp=$(sed -n \"/^timestamp=/{s///;s/[-'\\\"]//g;p;q;}\" $c | tr -d '\r')\n"
                           "         test -n \"$timestamp\" || timestamp=0\n"
                           "         test $timestamp -ge $mints || install -m 755 $ref/config.$s $c\n"
                           "     done\n"