You are not logged in.

#1 2013-01-06 19:15:07

butler360
Member
Registered: 2012-09-08
Posts: 29

Unable to upgrade ZFS due to dependency problem

When I do a full system upgrade it does see that there are new packages that should be installed (zfs, zfs-utils, spl, spl-utils) as usual but it seems to think that an old version of spl-utils is required and so it fails to meet the dependencies. I tried with packer, too, and the same thing happens.

The output from pacaur is below.

pacaur -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Starting AUR upgrade...
:: zfs-utils 0.6.0_rc12-8 -> 0.6.0_rc13_3.6.11-1
:: spl 0.6.0_rc12-8 -> 0.6.0_rc13_3.6.11-1
:: zfs 0.6.0_rc12-8 -> 0.6.0_rc13_3.6.11-1
:: spl-utils 0.6.0_rc12-8 -> 0.6.0_rc13_3.6.11-1

AUR Targets (4): zfs-utils spl zfs spl-utils

...

==> Finished making: spl-utils 0.6.0_rc13_3.6.11-1 (Sun Jan  6 11:03:36 PST 2013)
==> Installing package spl-utils with pacman -U...
loading packages...
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: spl: requires spl-utils=0.6.0_rc12
==> WARNING: Failed to install built package(s).
:: spl-utils cleaned
:: Building zfs package...
==> Making package: zfs 0.6.0_rc13_3.6.11-1 (Sun Jan  6 11:03:36 PST 2013)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: spl=0.6.0_rc13_3.6.11
==> ERROR: 'pacman' failed to install missing dependencies.
:: zfs cleaned
:: Building spl package...
==> Making package: spl 0.6.0_rc13_3.6.11-1 (Sun Jan  6 11:03:37 PST 2013)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: spl-utils=0.6.0_rc13_3.6.11
==> ERROR: 'pacman' failed to install missing dependencies.
:: spl cleaned
:: Building zfs-utils package...
==> Making package: zfs-utils 0.6.0_rc13_3.6.11-1 (Sun Jan  6 11:03:38 PST 2013)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: spl=0.6.0_rc13_3.6.11
==> ERROR: 'pacman' failed to install missing dependencies.
:: zfs-utils cleaned

Offline

#2 2013-01-06 20:02:11

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to upgrade ZFS due to dependency problem

If you still have the spl-utils package on your computer from before, why not simply install that and then do the update while ignoring the new spl-utils.

Offline

#3 2013-01-06 20:04:03

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: Unable to upgrade ZFS due to dependency problem

You mean install the updated spl-utils manually?

Offline

#4 2013-01-06 20:17:50

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to upgrade ZFS due to dependency problem

Well, you said that it requires an old version of spl-utils.  Assuming that you are upgrading and not building for the first time, I would imagine that this would mean that it is the version that is already on your computer, or the other that was replaced.  If it succeeded in upgrading spl-utils, and you haven't deleted the package it built before, you could go and install that old package manually.

That is unless you are indicating that it doesn't actually require the old spl-utils, but the pkgbuild was not updated to reflect the spl-utils update.  In that case you could simply update the versions on the zfs depends= line of the pkgbuild to reflect what it actually needs.

So I guess I am not sure exactly what you are asking here... what does the new zfs package actually need?  Is it the old version or the new version?

Offline

#5 2013-01-06 20:23:13

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: Unable to upgrade ZFS due to dependency problem

Everything is currently at "0.6.0_rc12-8" and I am trying to upgrade to "0.6.0_rc13_3.6.11-1."

The SPL PKGBUILD says this:

depends=('spl-utils=0.6.0_rc13_3.6.11' 'linux=3.6.11')

So I don't understand why it's failing on "spl: requires spl-utils=0.6.0_rc12." Shouldn't it just upgrade everything to rc13? It's like it's in a loop. Hopefully that makes sense...

Offline

#6 2013-01-06 20:30:40

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to upgrade ZFS due to dependency problem

Have you tried just building the packages one by one manually instead of using an aur helper?  I think that it is trying to upgrade the dependency, which will break the dependency chain of spl-utils before it too gets upgraded.  So I think that in order for it to upgrade it would need to not have the old spl-utils on place... does that make sense?

Offline

#7 2013-01-06 20:32:23

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: Unable to upgrade ZFS due to dependency problem

So basically install spl-utils manually (no helper), right?

Offline

#8 2013-01-07 00:03:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Unable to upgrade ZFS due to dependency problem

i doubt that will be enough, as the dependency chain is more complex then that.

zfs
depends=('spl=0.6.0_rc13_3.6.11' 'zfs-utils=0.6.0_rc13_3.6.11' 'linux=3.6.11')

zfs-utils
depends=('spl=0.6.0_rc13_3.6.11' 'linux=3.6.11')

spl
depends=('spl-utils=0.6.0_rc13_3.6.11' 'linux=3.6.11')

spl-utils
depends=('linux=3.6.11')

This would be the correct build /install order on a system without ZFS :

A1 build spl-utils
A2 install spl-utils
B1 build spl
B2 install spl
C1 build zfs-utils
C2 install zfs-utils
D1 build zfs
D2 install zfs

On a system with zfs installed however, A1 will fail because the installed spl requires spl-utils old version.
If you use the -Sdd option to skip dependency version checks, it will install but you'll break ZFS.

Incase you can remove zfs/zfs-utils/spl/spl-utils and still have a working system, then you could do it.

Assuming you need zfs to have a working system you have  a few options :

- build the packages using clean chroots
- build on a system that doesn't have zfs installed. this can be a VM or a separate computer
- check if someone else has done the work already and did put the packages in an unofficial user repository .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2013-01-07 00:06:13

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: Unable to upgrade ZFS due to dependency problem

My root FS is not ZFS, so I could uninstall and reinstall.

My question at this point, then, is shouldn't I be able to upgrade zfs (and the rest) from the AUR using an AUR helper, just like with any other package?

Offline

#10 2013-01-07 00:29:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Unable to upgrade ZFS due to dependency problem

If you remove zfs and it's companions, then aur helpers should be able to build these packages.

--------------------------------------------------------------------------------------------------------
Keep in mind that arch devs build all repo packages using clean chroots .

Maybe there's an aur helper that builds packages using chroots, then it will be able to upgrade zfs .
If there isn't one, you can try to convince the maintainers/creators of an aur helper to implement building in a chroot .

Sidenote :
Aur is intended to work with makepkg / build as user , aur helpers use all kind of tricks to automate that process but are far from perfect.
You may have noticed that almost everytime someone posts about a problem building with an aur helper this question is asked :
does it work if you build with makepkg ?
There's a reason people ask that question.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#11 2013-01-07 00:31:52

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: Unable to upgrade ZFS due to dependency problem

Right, but what I mean is, shouldn't I not have to do anything but update from AUR using one of the helpers? I'm having to uninstall these packages entirely in order to reinstall them. Everything else I've done has merely required "pacaur -Syu" to be called.

Offline

#12 2013-01-07 00:40:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to upgrade ZFS due to dependency problem

You are missing the comment that the AUR is not officially supported.  It would be ideal if you could do that, but the AUR and particularly the AUR helpers are created and maintained by users, so they are not always perfect.

I think the idea is that you should love and appreciate the fact that the AUR helpers are there, but do not use them with expectations of perfect function.  They are not perfect, just convenient (most of the time).

Offline

#13 2013-01-07 00:43:09

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: Unable to upgrade ZFS due to dependency problem

I am perfectly fine accepting that answer as I do understand that the "U" in AUR is for "user" and as such it's done on a volunteer basis and I can't expect it to always work perfectly, but I also wanted to make sure it wasn't just something I was doing wrong. From what both of you are saying, it sounds like this is just a problem that will happen from time-to-time.

Offline

#14 2013-01-07 00:45:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to upgrade ZFS due to dependency problem

Yes, that is what is being expressed here.  I don't honestly think you are doing anything wrong.  Just a hitch in the system that happens from time to time.

If you are going to continue using zfs, I would recommend learning how to use a cleanchroot to build that though.  It will likely come in handy in the future as well, and it doesn't really use all that much space either.

Offline

#15 2013-01-12 15:53:28

demizer
Member
From: Gilroy, CA
Registered: 2010-03-03
Posts: 116
Website

Re: Unable to upgrade ZFS due to dependency problem

Hello! If you are using ZFS on Linux (ZOL) as a root filesystem, I would recommend using the archzfs repository at http://demizerone.com/archzfs. This will generally make your life easier as you don't have to deal with the ZOL update process. ZOL must be compiled to a targeted kernel version, ie 3.6.11 in this case. The update process for ZOL is to remove the zfs packages, perform the kernel update, and then finally rebuild and install the zfs packages.

The way I build packages is using my build tool (https://github.com/demizer/archzfs/blob … package.py), which builds them in a clean chroot. You would still have to first remove the zfs packages to update, but at least in this case you will have some packages ready for re-install before doing this.

Last edited by demizer (2013-01-12 15:54:13)

Offline

#16 2013-01-14 04:48:54

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: Unable to upgrade ZFS due to dependency problem

I am not using it for the root filesystem, actually.

Is that upgrade process documented anywhere? I thought I did my research when I set this all up but this is the first time I am hearing about it. It sure explains my troubles, though, haha.

And are you also saying that if I use the archzfs repository versus using the AUR, I don't have to uninstall and reinstall each time?

Lastly, thanks for maintaining all the ZFS stuff for Arch! Aside from this minor issue everything has worked well.

Offline

Board footer

Powered by FluxBB