From rsl Mon Aug 2 18:04:21 2010 Date: Mon, 2 Aug 2010 18:04:21 +0200 From: RSL To: integration@maemo.org Subject: Patching Scratchbox 4.1.2 installer for AMD64 Message-ID: <20100802160421.GA7635@site-sans-nom.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Status: RO Content-Length: 3490 Lines: 112 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Dear Maemo Integration Team I recently had to install Maemo 4.1.2 SDK on an AMD64 computer running Debian Lenny. As Nokia does not provide official binaries for this architecture, I made a few tweaks on the installation script (maemo-scratchbox-install_4.1.2.sh) to force i386 binaries installation on x86_64 machine. Although Nokia's installer script is proprietary software, I think you and other Maemo application developpers should be interested in this installation method, so I made a patch for the installation script, and ask you permission to publish it. This patch is attached to this e-mail. I also wrote an article describing the whole Maemo 4.1.2 SDK installation process on an AMD64 computer running Debian Lenny using this method. This article (in french) is available at http://www.site-sans-nom.org/rc2/info/rsl_20100727_maemo412sdk.html Section 3 of this article talks about applying my patch, but I have *NOT* released this patch yet as I do not want to violate Nokia's IP right on the proprietary installer. My intention is only to help other Maemo application developpers to quickly install Maemo SDK on the popular x86_64 architecture. Please tell me whether you allow me to release this patch or not, as is or in a modified version. Best regards, R.S. LEMAIRE --G4iJoqBmSsgzjUCe Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="maemo-scratchbox-install_4.1.2_amd64.diff" *** maemo-scratchbox-install_4.1.2.sh 2010-07-28 21:49:22.000000000 +0200 --- maemo-scratchbox-install_4.1.2_amd64.sh 2010-07-31 15:42:28.000000000 +0200 *************** *** 6,11 **** --- 6,14 ---- # Contact: Maemo Integration # Version: $Revision: 778 $ + # Installer patched by R.S.L. (rsl@site-sans-nom.org) for x86_64 support. + # This patch is not Nokia Official. Use at your own risk. + __self=`basename $0` # Release configuration *************** *** 326,331 **** --- 329,338 ---- __type=tgz fi fi + if [ $__type = "apt" -a "$__uname_m" = "x86_64" ] ; then + echo "Forcing dpkg install method for x86_64 arch" + __type=deb + fi # Check sanity of __type if [ $__type = "apt" ] ; then *************** *** 443,450 **** __uname_m=`uname -m` if [ `expr match "$__uname_m" "i[3-6]86"` != 4 ] ; then echo "no" ! echo "E: Currently Scratcbox can only run in 32 bit i386 architecture." ! exit 1 else echo "yes" fi --- 450,461 ---- __uname_m=`uname -m` if [ `expr match "$__uname_m" "i[3-6]86"` != 4 ] ; then echo "no" ! if [ "$__uname_m" = "x86_64" ] ; then ! echo "Forcing i386 installation on x86_64 architecture." ! else ! echo "E: Currently Scratcbox can only run in 32 bit i386 architecture." ! exit 1 ! fi else echo "yes" fi *************** *** 627,633 **** for __file in ${__scratchbox_files} ; do __install_files="$__install_files ${__download_dest}/${__file}" done ! dpkg -i $__install_files fi if [ $__type = "tgz" ] ; then # Extract .tar.gz packages --- 638,648 ---- for __file in ${__scratchbox_files} ; do __install_files="$__install_files ${__download_dest}/${__file}" done ! if [ "$__uname_m" = "x86_64" ] ; then ! dpkg -i --force-architecture $__install_files ! else ! dpkg -i $__install_files ! fi fi if [ $__type = "tgz" ] ; then # Extract .tar.gz packages --G4iJoqBmSsgzjUCe--