[devel] hasher config

nenderus altlinux.org
28 14:39:23 MSK 2021


28.03.2021 13:47,   :
> 28.03.2021 12:40, Leonid Krivoshein :
>>  !
>>
>>
>> 28.03.2021 10:54,   :
>>>  !
>>>
>>>
>>>      hasher'    
>>> (  ~/.hasher/config)?
>>>
>>>
>>>         sisyphus-config, 
>>> p9-config     ~/.hasher/     config  
>>> .  -   ,  ?
>>
>> ,     gear-hsh  "--"   
>>  hasher,  --apt-config=$HOME/.hasher/p9-config ,  
>>      ssh build -b p9 ...
>
>        ,   
>  ݣ  qemu .
>
>      :
>
>
> cat ~/.hasher/sisyphus-config
> USER=nenderus
> TARGET=x86_64
>
> for arg in "$@"; do
>  PARAM=`echo $arg | awk -F= '{print $1}'`
>  VALUE=`echo $arg | awk -F= '{print $2}'`
>  if [ $PARAM = '--target' ]; then
>  TARGET=$VALUE
>  fi
> done
>
> if [ `uname -m` = i686 ]; then
>  TARGET=i586
> fi
>
> case $TARGET in
>  x86_64 | i586)
>  ;;
>  aarch64 | ppc64le)
>  qemu_arch=$TARGET
>  ;;
>  armh)
>  qemu_arch=arm
>  ;;
>  *)
>  TARGET=x86_64
>  ;;
> esac
>
> mkdir -p /tmp/.private/$USER/hasher-sisyphus-$TARGET
> workdir="/tmp/.private/$USER/hasher-sisyphus-$TARGET"
> def_target=$TARGET
> apt_config="$HOME/.hasher/sisyphus-$TARGET-apt.conf"
> def_repo=$HOME/hasher-sisyphus/repo
> packager="`rpm --eval %packager`"
> mount=/dev/pts,/proc
>
>
> cat ~/.hasher/p9-config
> USER=nenderus
> TARGET=x86_64
>
> for arg in "$@"; do
>  PARAM=`echo $arg | awk -F= '{print $1}'`
>  VALUE=`echo $arg | awk -F= '{print $2}'`
>  if [ $PARAM = '--target' ]; then
>  TARGET=$VALUE
>  fi
> done
>
> if [ `uname -m` = i686 ]; then
>  TARGET=i586
> fi
>
> case $TARGET in
>  x86_64 | i586)
>  ;;
>  aarch64 | ppc64le)
>  qemu_arch=$TARGET
>  ;;
>  armh)
>  qemu_arch=arm
>  ;;
>  *)
>  TARGET=x86_64
>  ;;
> esac
>
> mkdir -p /tmp/.private/$USER/hasher-p9-$TARGET
> workdir="/tmp/.private/$USER/hasher-p9-$TARGET"
> def_target=$TARGET
> apt_config="$HOME/.hasher/p9-$TARGET-apt.conf"
> def_repo=$HOME/hasher-p9/repo
> packager="`rpm --eval %packager`"
> mount=/dev/pts,/proc
>
>
>     gear-hsh -v ( x86_64)  gear-hsh --target=%ARCH 
> -v (  ),     
> ~/.hasher/config     .

  :


cat ~/.hasher/config
TARGET=x86_64

for arg in "$@"; do
  PARAM=`echo $arg | awk -F= '{print $1}'`
  VALUE=`echo $arg | awk -F= '{print $2}'`
  if [ $PARAM = '--target' ]; then
  TARGET=$VALUE
  fi
done

if [ `uname -m` = i686 ]; then
  TARGET=i586
fi

case $TARGET in
  x86_64 | i586)
  ;;
  aarch64 | ppc64le)
  qemu_arch=$TARGET
  ;;
  armh)
  qemu_arch=arm
  ;;
  *)
  TARGET=x86_64
  ;;
esac

if [ -z $BRANCH ]; then
  BRANCH=sisyphus
fi

case $BRANCH in
  sisyphus | p9)
  ;;
  *)
  BRANCH=sisyphus
  ;;
esac

mkdir -p /tmp/.private/$USER/hasher-$BRANCH-$TARGET
workdir="/tmp/.private/$USER/hasher-$BRANCH-$TARGET"
def_target=$TARGET
apt_config="$HOME/.hasher/$BRANCH-$TARGET-apt.conf"
def_repo=$HOME/hasher-$BRANCH/repo
packager="`rpm --eval %packager`"
mount=/dev/pts,/proc


   - ,    p9, :


BRANCH=p9 gear-hsh --target=%ARCH -v


  ,   

>
>
>>
>>
>
>
> _______________________________________________
> Devel mailing list
> Devel  lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel


-----------   -----------
      ...
     : OpenPGP_signature
     : application/pgp-signature
  : 203 
: OpenPGP digital signature
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20210328/d71f73a1/attachment.bin>


Devel