Results 1 to 4 of 4

Thread: Can't convert deb to rpm due to illegal character

  1. #1
    Join Date
    Apr 2007
    Location
    Texas, USA
    Beans
    809
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Can't convert deb to rpm due to illegal character

    I'm trying to convert a deb (docky in particular) into an rpm. I'm attempting to do this with alien, but it keeps spitting back an error about an illegal character (~). Here's the output:

    Code:
    alien -r -v docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb                               
    Warning: alien is not running as root!                  
    Warning: Ownerships of files in the generated packages will probably be wrong.                                        
            dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb control 2>/dev/null                           
            dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb control 2>/dev/null                           
            dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb conffiles 2>/dev/null                         
            dpkg-deb --fsys-tarfile docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb | tar tf -                            
            dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb postinst 2>/dev/null                          
            dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb postrm 2>/dev/null                            
            dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb preinst 2>/dev/null                           
            dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb prerm 2>/dev/null                             
            mkdir docky-2.0~bzr1002
            chmod 755 docky-2.0~bzr1002
            dpkg-deb -x docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb docky-2.0~bzr1002
            rpm --showrc
            cd docky-2.0~bzr1002; rpmbuild --buildroot=/home/isaac/Source/docky-2.0~bzr1002 -bb --target x86_64 docky-2.0~bzr1002-1.spec 2>&1
    Package build failed. Here's the log of the command (cd docky-2.0~bzr1002; rpmbuild --buildroot=/home/isaac/Source/docky-2.0~bzr1002 -bb --target x86_64 docky-2.0~bzr1002-1.spec):
    error: line 3: Illegal char '~' in: Version: 2.0~bzr1002
    Building target platforms: x86_64
    Building for target x86_64
            find docky-2.0~bzr1002 -type d -exec chmod 755 {} ;
            rm -rf docky-2.0~bzr1002
    What should I do about this?
    Laptop: [AMD Vision A4-3300M | 8GB RAM | ATI Radeon 6480G | Ubuntu 12.04 64-bit]

    Studio Box: [AMD Athlon 64 X2 5000+ | 4GB RAM | Nvidia 210 | M-Audio FastTrackPro | KXStudio 11.04 64-bit | 2.6.31-rt14-custom | KDE 4.6.5]

  2. #2
    Join Date
    Sep 2007
    Location
    Derby, UK
    Beans
    510
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Can't convert deb to rpm due to illegal character

    remove the ~ in the filename. So docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb becomes docky_2.0_bzr1002-0karmic1dockycore1_amd64.deb

  3. #3
    Join Date
    Apr 2007
    Location
    Texas, USA
    Beans
    809
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Can't convert deb to rpm due to illegal character

    Quote Originally Posted by Woody1987 View Post
    remove the ~ in the filename. So docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb becomes docky_2.0_bzr1002-0karmic1dockycore1_amd64.deb
    I've already tried that. It doesn't have anything to do with the actual filename of the deb, but the control file in the deb.

    Any other suggestions?
    Laptop: [AMD Vision A4-3300M | 8GB RAM | ATI Radeon 6480G | Ubuntu 12.04 64-bit]

    Studio Box: [AMD Athlon 64 X2 5000+ | 4GB RAM | Nvidia 210 | M-Audio FastTrackPro | KXStudio 11.04 64-bit | 2.6.31-rt14-custom | KDE 4.6.5]

  4. #4
    Join Date
    Apr 2007
    Location
    Texas, USA
    Beans
    809
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Can't convert deb to rpm due to illegal character

    Well, I solved my own problem. I downloaded the source file off of the Docky launchpad site and created a deb. Then took that deb and created an RPM. It bit of work, but it works.

    If anybody would like a copy of the rpm, I'll happily share it. I'm running KDE 4.4 b2 on OpenSUSE 11.2 so it's hard for me to find a package Docky.
    Laptop: [AMD Vision A4-3300M | 8GB RAM | ATI Radeon 6480G | Ubuntu 12.04 64-bit]

    Studio Box: [AMD Athlon 64 X2 5000+ | 4GB RAM | Nvidia 210 | M-Audio FastTrackPro | KXStudio 11.04 64-bit | 2.6.31-rt14-custom | KDE 4.6.5]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •