Fix to continue remaining .pc file process on error 01/316801/1 accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.234405 accepted/tizen/unified/20240829.091444 accepted/tizen/unified/dev/20240901.214759 accepted/tizen/unified/toolchain/20241004.102144 accepted/tizen/unified/x/20240829.105236 accepted/tizen/unified/x/asan/20241014.000552 tizen_9.0_m2_release
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 28 Aug 2024 08:19:49 +0000 (17:19 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 28 Aug 2024 08:33:18 +0000 (17:33 +0900)
In build for arch x86_64, the below pkgconfig from libdrm-rs.xml is
processed.
  <pkgconfig>
    <file>libdrm.pc</file>
    <file>libdrm_exynos.pc</file>
    <file>libdrm_vc4.pc</file>
    <file>libdrm_vigs.pc</file>
  </pkgconfig>

Unfortunately, there is no libdrm_vc4.pc and script emits the below log.
 [rootstrap_gen_1.0_64.sh:153] + no pkgconfig file(//usr/lib64/pkgconfig/libdrm_vc4.pc)

This gives up the remaining process, and as a result, the libdrm_vigs.pc
will be missing. Therefore, fix it to continue the remaining process.

Change-Id: I6077707008e0883089cd6ab734bfe95307cd26c7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
script/rootstrap_gen_1.0.sh
script/rootstrap_gen_1.0_64.sh

index 113f0770bed2261d597109c5767f1133081c5c44..79787709969c57d4f2ecd0ed1253e309d079b68e 100755 (executable)
@@ -151,7 +151,7 @@ function copy_package_config()
 
                if [[ ! -f "${src_pc_file_path}" ]]; then
                        log "+ no pkgconfig file(${src_pc_file_path})"
-                       return 1
+                       continue
                fi
 
                mkdir -p ${dest_pc_path}
index 6eee14e6016c14806cb53f69f7abaa8c1daa0516..a5d3d11f21cce125f0034e547ac2e220173f18d3 100755 (executable)
@@ -151,7 +151,7 @@ function copy_package_config()
 
                if [[ ! -f "${src_pc_file_path}" ]]; then
                        log "+ no pkgconfig file(${src_pc_file_path})"
-                       return 1
+                       continue
                fi
 
                mkdir -p ${dest_pc_path}