hns - 日記自動生成システム - Version 2.19.9

先月 2014年02月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2014年02月12日(水) 旧暦 [n年日記] [更新:"2014/02/14 22:27:48"]

#1 [pkgsrc] Compiler version of pbulk (gcc or clang)

I sometimes run pbulk with limited_list. And on 6.99.23, Switching gcc, clang 3.2 and clang 3.3.
For me, it will be nice to have those compiler info on reporting mail. I have my local patch:
--- usr/pkg_bulk/libexec/pbulk/pre-build.orig	2013-11-01 16:48:49.000000000 +0900
+++ usr/pkg_bulk/libexec/pbulk/pre-build	2014-02-04 12:17:22.000000000 +0900
@@ -84,9 +84,16 @@
 opver=`cd ${pkgsrc}/pkgtools/pkg_install && ${make} show-var VARNAME=OS_VERSION`
 platform=`cd ${pkgsrc}/pkgtools/pkg_install && ${make} show-var VARNAME=MACHINE_ARCH`
 compiler=`cd ${pkgsrc}/pkgtools/pkg_install && ${make} show-var VARNAME=PKGSRC_COMPILER`
+clang_version=`cd ${pkgsrc}/pkgtools/pkg_install && clang --version || echo no clang`
+cc_version=`cd ${pkgsrc}/pkgtools/pkg_install && cc --version || echo no clang`
 
 echo "PLATFORM=${opsys} ${opver}/${platform}" > ${loc}/status
 echo "COMPILER=${compiler}" >> ${loc}/status
+if [ ${compiler} = "clang" ] ;then
+echo "COMPILER_VERSION=${clang_version}" >> ${loc}/status
+else
+echo "COMPILER_VERSION=${cc_version}" >> ${loc}/status
+fi
 
 date '+%Y-%m-%d %H:%M|%Y%m%d.%H%M' | sed 's/^\(.*\)|\(.*\)$/BUILD_START_ISO=\1\
 BUILD_START_DIR=\2/' >> ${loc}/status


--- usr/pkg_bulk/libexec/pbulk/create-report-txt.orig	2013-11-01 16:48:49.000000000 +0900
+++ usr/pkg_bulk/libexec/pbulk/create-report-txt	2014-02-04 13:34:08.000000000 +0900
@@ -64,6 +64,8 @@
 			pkgsrc_platform = substr($0, 10)
 		else if ($0 ~ "^COMPILER=")
 			pkgsrc_compiler = substr($0, 10)
+		else if ($0 ~ "^COMPILER_VERSION=")
+			compiler_version = substr($0, 18)
 		else if ($0 ~ "^BUILD_START_ISO=")
 			pkgsrc_build_start_iso = substr($0, 17)
 		else if ($0 ~ "^BUILD_START_DIR=")
@@ -123,6 +125,7 @@
 	print "" > txt_report
 	print pkgsrc_platform > txt_report
 	print "Compiler: " pkgsrc_compiler > txt_report
+	print "Compiler version: " compiler_version > txt_report
 	print "" > txt_report
 	print "Build start: " pkgsrc_build_start_iso > txt_report
 	print "Build end:   " pkgsrc_build_end_iso > txt_report




最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)