create_*_deb.sh lazarus / 1-Linux ---------------------------------------------------------------------- Abelisto · 2017-05-25 19:37 I am sorry, I confused a bit with Lazarus bug tracker, so I posted it here... In files create_fpc_deb.sh and create_lazarus_deb.sh Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #---------- --------------------------------------------------------------------# fixing permissionsecho "fixing permissions ..."find $FPCBuildDir -type d -print0 | xargs -0 chmod 755  # this is needed, don't ask me whyfind $FPCBuildDir -type f -print0 | xargs -0 chmod a+r  # this is needed, don't ask me whyfind $FPCBuildDir -perm 775 | xargs -d '\n' chmod 755find $FPCBuildDir -perm 664 | xargs -d '\n' chmod 644and Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i # fixing permissionsecho "fixing permissions ..."find $LazBuildDir -type d | xargs -d '\n' chmod 755find $LazBuildDir -perm 775 | xargs -d '\n'  chmod 755find $LazBuildDir -perm 664 | xargs -d '\n'  chmod 644 should be Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #---------- --------------------------------------------------------------------# fixing permissionsecho "fixing permissions ..."find $FPCBuildDir -type d -print0 | xargs -0 -r chmod 755  # this is needed, don't ask me whyfind $FPCBuildDir -type f -print0 | xargs -0 -r chmod a+r  # this is needed, don't ask me whyfind $FPCBuildDir -perm 775 | xargs -d '\n' -r chmod 755find $FPCBuildDir -perm 664 | xargs -d '\n' -r chmod 644and Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i # fixing permissionsecho "fixing permissions ..."find $LazBuildDir -type d | xargs -d '\n' -r chmod 755find $LazBuildDir -perm 775 | xargs -d '\n' -r  chmod 755find $LazBuildDir -perm 664 | xargs -d '\n' -r  chmod 644 (   -r, --no-run-if-empty        if there are no arguments, then do not run COMMAND;                                  if this option is not given, COMMAND will be                                  run at least once ) because it failed if no files found. For example: ... fixing permissions ... + find /home/nd/tmp/fpc_patchdir/fpc_build -type d -print0 + xargs -0 chmod 755 + xargs -0 chmod a+r + find /home/nd/tmp/fpc_patchdir/fpc_build -type f -print0 + find /home/nd/tmp/fpc_patchdir/fpc_build -perm 775 + xargs -d '\n' chmod 755 chmod: missing operand after ‘755’ Try 'chmod --help' for more information. nd@home ~/dev/lazarus/tools/install $ And also why it is necessary to change files mode in the current dir when everything happenings in the  ~/tmp dir? ---------------------------------------------------------------------- Abelisto · 2017-06-10 10:53 There are yet another several problems in create_lazarus_deb.sh (seems related to FPC, I trying  Rev: 36473): "ppcx64 -v | grep version" returns "Binary file (standard input) matches" which affects to Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i FPCVersion=$($ppcbin -v | grep version | sed 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/')I suppose that it is related to several #00 characters in the output. After changing it to Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i FPCVersion=$($ppcbin -iV)the one problem is solved but I got another one: fixing permissions ... creating deb ... dpkg-deb: warning: conffile '' is not a plain file dpkg-deb: warning: ignoring 1 warning about the control file(s) dpkg-deb: building package 'lazarus-project' in '/home/nd/tmp/lazarus- project1.9.0/lazarus-project_build.deb'. Unfortunately I am not familiar with dpkg-deb so have no any ideas...