Deprecated: Assigning the return value of new by reference is deprecated in /home/afmacedo/blog.afmacedo.com/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /home/afmacedo/blog.afmacedo.com/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/afmacedo/blog.afmacedo.com/wp-includes/theme.php on line 508
AM’s Arena » 2009» August

Archive for August, 2009

AT&T Netclient Debianizer (64-bit support)


Deprecated: Function split() is deprecated in /home/afmacedo/blog.afmacedo.com/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 394

Dmitriy Ushakov gently sent a patch for 64bit support for the Debianizer.

--- ubuntu_rpm2deb.sh.afmacedo  2007-11-21 10:55:33.000000000 -0200
+++ ubuntu_rpm2deb.sh   2009-08-11 13:59:44.000000000 -0300
@@ -4,6 +4,8 @@
 # By Andr� Mac�do
 # 11/06/2007
 #
+# Support to convert i386 agnclient to amd64 added by Dmitriy Ushakov
+#
 # Converts RPM packages to DEB using pre-created "debian" directories.
 ###

@@ -157,6 +159,12 @@
 sed -i "s/CHGLOG_COMMENTS/$CHGLOG_COMMENTS/" $DEB_DIR/debian/changelog
 sed -i "s/DEB_VERSION/$DEB_VERS-1.1/" $DEB_DIR/debian/changelog

+DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
+if [ $DEB_HOST_ARCH == "amd64" ]; then
+  sed -i "s/i386/amd64/" $DEB_DIR/debian/control
+  sed -i "s//lib///lib32//g" $DEB_DIR/debian/agnclient.links
+fi
+
 echo -e "n33[1m Building 33[7m.DEB package33[0m ...n"

 echo -e "33[2m * Checking build dependencies...33[0m"
@@ -171,7 +179,7 @@
 done

 echo -e "33[2m * Building package...33[0m"
-cd $DEB_DIR && fakeroot dpkg-buildpackage -b -us -uc >> ../$TGT_LOG 2>&1 && cd ..
+cd $DEB_DIR && fakeroot dpkg-buildpackage -b -us -uc -a$DEB_HOST_ARCH >> ../$TGT_LOG 2>&1 && cd ..

 echo -e "33[2m * Cleaning...33[0m"
 #rm -rf $DEB_DIR *.changes > /dev/null 2>&1

Please feel free to give it a try and comment back.

You can also download the new script directly from here.

Thanks a lot Dmitriy!

Comments (151)