Re: How to create a i386 deb from rpm on an amd64 system
Thanks Bob. That worked perfectly. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)
Re: How to create a i386 deb from rpm on an amd64 system
Johann Spies wrote: > I want to convert iscan rpm (an Epson scanner driver) to a deb. This > driver only works on i386 systems. > > I have installed multiarch on my system but it seems that there is no alien > that can do the job on my system. > > Alternatively, I have an old deb of this package but dpkg complains there > is a duplicate 'Architecture' line in the control file. Using mc I could > copy the control file from the package to /tmp/ and edit it, but I could > not put it back. How can I correct the control file in the debian package? Since you have good suggestions on rebuilding the deb I would do that. But as for building 32-bit rpms on 64-bit debian I would use a 32-bit chroot. Here is the boiled down instructions. # mkdir -p /srv/chroot # cd /srv/chroot # debootstrap --arch i386 wheezy wheezy-rpm http://ftp.us.debian.org/debian # chroot /srv/chroot/wheezy-rpm su - # cat > ./usr/sbin/policy-rc.d <<-EOF #!/bin/sh exit 101 EOF # chmod a+x ./usr/sbin/policy-rc.d # apt-get update # apt-get install build-essential # apt-get install rpm With that you will be sitting in a 32-bit chroot with rpm installed and a basic build environment. Install what you need for your purposes. You should be able to build your 32-bit rpm there. I would set up my own user uid:gid in the chroot and then be non-root me to build the rpm. $ sudo chroot /srv/chroot/wheezy-rpm su - rwp More details are available here: http://wiki.debian.org/chroot Bob signature.asc Description: Digital signature
Re: How to create a i386 deb from rpm on an amd64 system
Le 26.04.2013 19:39, Johann Spies a écrit : I want to convert iscan rpm (an Epson scanner driver) to a deb. This driver only works on i386 systems. I have installed multiarch on my system but it seems that there is no alien that can do the job on my system. Alternatively, I have an old deb of this package but dpkg complains there is a duplicate 'Architecture' line in the control file. Using mc I could copy the control file from the package to /tmp/ and edit it, but I could not put it back. How can I correct the control file in the debian package? Regards Johann Since Hugo gave explanations that I think should work (I would otherwise have gave you the advice to simply uncompress all stuff in a folder, fix the file, and then to use dpkg-deb to rebuild the package...) I will simply give you some hint about what to search for the conversion of a rmp package into a deb one: #aptitude install alien $man alien Have fun :) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/11ceb80acff74dba5515fa4a57970...@neutralite.org
Re: How to create a i386 deb from rpm on an amd64 system
Johann Spies wrote: I want to convert iscan rpm (an Epson scanner driver) to a deb. This driver only works on i386 systems. I have installed multiarch on my system but it seems that there is no alien that can do the job on my system. Alternatively, I have an old deb of this package but dpkg complains there is a duplicate 'Architecture' line in the control file. Using mc I could copy the control file from the package to /tmp/ and edit it, but I could not put it back. How can I correct the control file in the debian package? These are my notes from 3 years ago when that happened to me: HOWTO eliminate the duplicate Architecture field: Create a package directory (say /mc_4.6.2-2) then: dpkg-deb -x mc_4.6.2~git20080311-4_i386.deb /mc_4.6.2-2 then: dpkg-deb -e mc_4.6.2~git20080311-4_i386.deb /mc_4.6.2-2 Move the files from the latter into a dir named ‘DEBIAN’ Edit the control file in DEBIAN and delete the second Architecture field. then: dpkg-deb -b /mc_4.6.2-2 This will create mc_4.6.2-2.deb dpkg -i mc_4.6.2-2.deb Hugo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/klf2t2$61k$1...@ger.gmane.org