<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div> </div>

<div> </div>

<div>Hallo,</div>

<div> </div>

<div>könnt ihr mich bitte aus dem Mailverteiler streichen, ich habe keine Ahnung wie das geht..</div>

<div> </div>

<div>Danke!</div>

<div> </div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 26. März 2018 um 14:07 Uhr<br/>
<b>Von:</b> "H. Nikolaus Schaller" <hns@goldelico.com><br/>
<b>An:</b> "Jonas Smedegaard" <jonas@jones.dk><br/>
<b>Cc:</b> "List for communicating with real GTA04 owners" <gta04-owner@goldelico.com>, "Tinkerphones Community" <community@tinkerphones.org>, "Josua Mayer" <josua.mayer@jm0.eu><br/>
<b>Betreff:</b> Re: [Tinkerphones] +++ next breakthrough for qtmoko2 +++</div>

<div name="quoted-content">Hi Jonas, > Am 26.03.2018 um 13:17 schrieb Jonas Smedegaard : > > Quoting H. Nikolaus Schaller (2018-03-26 12:43:56) >> Hi, >> nobody with an idea or knowledge? >> >> BR, >> Nikolaus >> >>> Am 18.03.2018 um 15:37 schrieb H. Nikolaus Schaller : >>> >>> Another topic: >>> >>> I am trying to build it on/for wheezy, but ./mkqtspec.sh fails with: >>> >>> dpkg-architecture: error: DEB_TARGET_ARCH is not a supported variable name >>> >>> Jessie reports: >>> >>> root@letux:# dpkg-architecture >>> DEB_BUILD_ARCH=armhf >>> DEB_BUILD_ARCH_BITS=32 >>> DEB_BUILD_ARCH_CPU=arm >>> DEB_BUILD_ARCH_ENDIAN=little >>> DEB_BUILD_ARCH_OS=linux >>> DEB_BUILD_GNU_CPU=arm >>> DEB_BUILD_GNU_SYSTEM=linux-gnueabihf >>> DEB_BUILD_GNU_TYPE=arm-linux-gnueabihf >>> DEB_BUILD_MULTIARCH=arm-linux-gnueabihf >>> DEB_HOST_ARCH=armhf >>> DEB_HOST_ARCH_BITS=32 >>> DEB_HOST_ARCH_CPU=arm >>> DEB_HOST_ARCH_ENDIAN=little >>> DEB_HOST_ARCH_OS=linux >>> DEB_HOST_GNU_CPU=arm >>> DEB_HOST_GNU_SYSTEM=linux-gnueabihf >>> DEB_HOST_GNU_TYPE=arm-linux-gnueabihf >>> DEB_HOST_MULTIARCH=arm-linux-gnueabihf >>> DEB_TARGET_ARCH=armhf >>> DEB_TARGET_ARCH_BITS=32 >>> DEB_TARGET_ARCH_CPU=arm >>> DEB_TARGET_ARCH_ENDIAN=little >>> DEB_TARGET_ARCH_OS=linux >>> DEB_TARGET_GNU_CPU=arm >>> DEB_TARGET_GNU_SYSTEM=linux-gnueabihf >>> DEB_TARGET_GNU_TYPE=arm-linux-gnueabihf >>> DEB_TARGET_MULTIARCH=arm-linux-gnueabihf >>> root@letux:# >>> >>> Wheezy reports: >>> >>> root@letux:/# dpkg-architecture >>> DEB_BUILD_ARCH=armhf >>> DEB_BUILD_ARCH_BITS=32 >>> DEB_BUILD_ARCH_CPU=arm >>> DEB_BUILD_ARCH_ENDIAN=little >>> DEB_BUILD_ARCH_OS=linux >>> DEB_BUILD_GNU_CPU=arm >>> DEB_BUILD_GNU_SYSTEM=linux-gnueabihf >>> DEB_BUILD_GNU_TYPE=arm-linux-gnueabihf >>> DEB_BUILD_MULTIARCH=arm-linux-gnueabihf >>> DEB_HOST_ARCH=armhf >>> DEB_HOST_ARCH_BITS=32 >>> DEB_HOST_ARCH_CPU=arm >>> DEB_HOST_ARCH_ENDIAN=little >>> DEB_HOST_ARCH_OS=linux >>> DEB_HOST_GNU_CPU=arm >>> DEB_HOST_GNU_SYSTEM=linux-gnueabihf >>> DEB_HOST_GNU_TYPE=arm-linux-gnueabihf >>> DEB_HOST_MULTIARCH=arm-linux-gnueabihf >>> root@letux:/# >>> >>> So can we safely replace DEB_TARGET_ARCH by DEB_BUILD_ARCH >>> in DEB_TARGET_ARCH=$(dpkg-architecture -qDEB_TARGET_ARCH) ? > > "man dpkg-architecture" says: > >> DEB_BUILD_ARCH >> The Debian architecture of the build machine. ok. > > and > >> DEB_TARGET_ARCH >> The Debian architecture of the target machine (since dpkg 1.17.14). ok. So we can use the same since the build is not a cross-build or anything. > > dpkg version in wheezy is too old: > https://packages.debian.org/source/oldoldstable/dpkg Well, for building a package for wheezy it should never be too old... Only some source code could be too new :) > > If build machine is same architecture as target machine, then you can > reuse, else not. So does this mean the following? * use DEB_TARGET_ARCH if defined * fall back to DEB_BUILD_ARCH otherwise I.e. replace it by: DEB_TARGET_ARCH=$(dpkg-architecture -qDEB_TARGET_ARCH 2>/dev/null) [ "$DEB_TARGET_ARCH" ] || DEB_TARGET_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH BR and thanks, Nikolaus _______________________________________________ Community mailing list Community@tinkerphones.org http://lists.goldelico.com/mailman/listinfo.cgi/community http://www.tinkerphones.org</div>
</div>
</div>
</div></div></body></html>