You are not logged in.

#1 2008-07-01 19:54:18

libervisco
Member
From: Croatia
Registered: 2005-06-17
Posts: 34
Website

error: failed to prepare transaction (could not satisfy dependencies)

Hi,

I was going to install a winff package (a GUI front end to ffmpeg for converting between video formats), but when I ran yaourt -S winff and tried to install it refused because it isn't for the x86_64 architecture. So I decided to edit the PKGBUILD and perhaps try to force it anyway, but then I saw that the PKGBUILD is actually getting the precompiled RPM package and as I checked, while there was no precompiled 64bit version of the RPM there was one for a deb version that is offered on winff site.

Since deb's are just archives I ended up, after a few tries, with this PKGBUILD which uses ar and tar commands to get to the binaries inside of the amd64 deb:

# Contributor: yugrotavele <yugrotavele@gmail.com>
# Modified by libervisco for x86_64
pkgname=winff-amd64
pkgver=0.42
pkgrel=1
pkgdesc="GUI for ffmpeg"
url="http://www.winff.org"
license=('GPL')
depends=('ffmpeg gtk gdk-pixbuf')
makedepends=('')
source=('http://winff.googlecode.com/files/winff-0.42-amd64.deb')
arch=('x86_64')
md5sums=('1febf5fd19fa76bdc1da06d3e6c4d3b8')

build() {
  ar vx winff-0.42-amd64.deb
  tar xvzf data.tar.gz
  install -Dm755 $startdir/src/usr/bin/winff $startdir/pkg/usr/bin/winff
  install -Dm755 $startdir/src/usr/share/winff/presets.xml $startdir/pkg/usr/share/winff/presets.xml
  install -Dm755 $startdir/src/usr/share/winff/winff.png $startdir/pkg/usr/share/winff/winff.png
}

So what I basically do is run yaourt -S winff and when it asks whether I want to edit it, I edit it and replace the original PKGBUILD content with above.

It successfully runs the build() commands, finds and installs the dependencies, but when it's time to install the actual new winff package is throws up this:

loading package data...
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: winff: requires ffmpeg gtk gdk-pixbuf

I don't get it. It installed all the dependencies (and I even checked whether winff works in one of the earlier tries when I manually installed gdk-pixbuf when the binary asked for it). What does it want now?

Here is the whole process:

[daniel@memeport ~]$ yaourt -S winff

==> Downloading winff PKGBUILD from AUR...


Comment by: yugrotavele on 20080518 [04:36:56]
A nice GUI frontend for ffmpeg.

      First Submitted: Sun, 18 May 2008 04:28:31 +0000
      Last Updated: Mon, 30 Jun 2008 04:23:08 +0000
winff 0.42-1 (Unsupported): GUI for ffmpeg

==> winff dependencies:
 - ffmpeg (already installed)
 - rpmextract (already installed)
==>  Edit the PKGBUILD (recommended) ? [Y/n] ("A" to abort)
==>   ----------------------------------------------
==>y

Please add $EDITOR to your environment variables
for example:
==> Edit PKGBUILD with: (replace gvim with your favorite editor)

==> Edit ./PKGBUILD with: gedit

==> winff dependencies:
 - ffmpeg (already installed)
 - gtk (already installed)
 - gdk-pixbuf (package found)
==>  Continue the building of 'winff'? [Y/n]
==>   ----------------------------------------------
==>y



==> Building and installing package
==> Making package: winff 0.42-1  (Tue Jul  1 21:34:12 CEST 2008)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...

Targets: gdk-pixbuf-0.22.0-4  

Total Download Size:    0.00 MB
Total Installed Size:   0.70 MB

Proceed with installation? [Y/n] 
checking package integrity...
(1/1) checking for file conflicts                   [############################################################] 100%
(1/1) installing gdk-pixbuf                         [############################################################] 100%
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading winff-0.42-amd64.deb...
--2008-07-01 21:34:13--  http://winff.googlecode.com/files/winff-0.42-amd64.deb
Resolving winff.googlecode.com... 64.233.187.82
Connecting to winff.googlecode.com|64.233.187.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1383594 (1.3M) [application/x-archive application/x-debian-package]
Saving to: `winff-0.42-amd64.deb'

100%[=============================================================================>] 1,383,594    191K/s   in 7.4s    

2008-07-01 21:34:21 (183 KB/s) - `winff-0.42-amd64.deb' saved [1383594/1383594]

==> Validating source files with md5sums...
    winff-0.42-amd64.deb ... Passed
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting build()...
x - debian-binary
x - control.tar.gz
x - data.tar.gz
./
./usr/
./usr/bin/
./usr/bin/winff
./usr/share/
./usr/share/doc/
./usr/share/doc/winff/
./usr/share/doc/winff/copyright
./usr/share/doc/winff/winff.pdf
./usr/share/doc/winff/README.txt
./usr/share/doc/winff/README-Icons.txt
./usr/share/doc/winff/README-Presets.txt
./usr/share/doc/winff/changelog
./usr/share/applications/
./usr/share/applications/winff.desktop
./usr/share/winff/
./usr/share/winff/winff.png
./usr/share/winff/presets.xml
./usr/share/winff/languages/
./usr/share/winff/languages/winff.es.po
./usr/share/winff/languages/winff.nl.po
./usr/share/winff/languages/winff.fr.po
./usr/share/winff/languages/winff.pb.po
./usr/share/winff/languages/winff.tr.po
./usr/share/winff/languages/winff.de.po
./usr/share/winff/languages/winff.zh.po
./usr/share/winff/languages/winff.it.po
./usr/share/winff/languages/winff.pt.po
./usr/share/winff/languages/winff.pl.po
./usr/share/winff/languages/winff.bg.po
./usr/share/winff/languages/winff.po
==> Tidying install...
  -> Removing info/doc files...
  -> Compressing man pages...
  -> Stripping debugging symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: winff (Tue Jul  1 21:34:22 CEST 2008)

==>  Continue installing 'winff'? [Y/n]
==>  [v]iew package contents   [c]heck package with namcap
==>   ----------------------------------------------
==>y

loading package data...
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: winff: requires ffmpeg gtk gdk-pixbuf
==> WARNING: Your package is saved in /tmp/winff-0.42-1-x86_64.pkg.tar.gz

I tried doing it without changing the package name to winff-amd64, but same thing happens. What's going on?

Offline

#2 2008-07-01 20:13:50

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: error: failed to prepare transaction (could not satisfy dependencies)

there are missing quotes in the depends array:
depends=('ffmpeg' 'gtk' 'gdk-pixbuf')

Offline

#3 2008-07-01 22:23:54

libervisco
Member
From: Croatia
Registered: 2005-06-17
Posts: 34
Website

Re: error: failed to prepare transaction (could not satisfy dependencies)

Ahh man, and that's it! It works. big_smile

I'm just wondering now how can I contribute this PKGBUILD to AUR, but I can read that in the wiki too. smile

Thanks!

Offline

Board footer

Powered by FluxBB