You are not logged in.

#1 2014-01-11 22:16:58

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

missing dependency issues

wtf is going on here?  i am sumped

==> Missing dependencies:
  -> linux-headers=3.12.6-1
==> ERROR: Could not resolve all dependencies.
$ sudo pacman -Syu archzfs
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 demz-repo-core is up to date
 chroot_local is up to date
:: There are 4 members in group archzfs:
:: Repository demz-repo-core
   1) spl  2) spl-utils  3) zfs  4) zfs-utils

Enter a selection (default=all):
:: Starting full system upgrade...
resolving dependencies...
warning: cannot resolve "linux=3.12.6-1", a dependency of "spl"
warning: cannot resolve "linux=3.12.6-1", a dependency of "spl"
warning: cannot resolve "spl=0.6.2_3.12.6-1", a dependency of "zfs"
warning: cannot resolve "linux=3.12.6-1", a dependency of "spl"
warning: cannot resolve "spl", a dependency of "zfs-utils"
warning: cannot resolve "zfs-utils", a dependency of "zfs"
warning: cannot resolve "linux=3.12.6-1", a dependency of "zfs"
warning: cannot resolve "linux=3.12.6-1", a dependency of "spl"
warning: cannot resolve "spl", a dependency of "zfs-utils"
:: The following packages cannot be upgraded due to unresolvable dependencies:
      spl  zfs  zfs-utils

:: Do you want to skip the above packages for this upgrade? [y/N]
error: failed to prepare transaction (could not satisfy dependencies)
:: spl: requires linux=3.12.6-1
:: spl: requires linux=3.12.6-1
:: zfs: requires spl=0.6.2_3.12.6-1
:: spl: requires linux=3.12.6-1
:: zfs-utils: requires spl
:: zfs: requires zfs-utils
:: zfs: requires linux=3.12.6-1
:: spl: requires linux=3.12.6-1
:: zfs-utils: requires spl
$ pacman -Qi linux
Name           : linux
Version        : 3.12.7-1
Description    : The Linux kernel and modules
Architecture   : x86_64
URL            : http://www.kernel.org/
Licenses       : GPL2
Groups         : base
Provides       : kernel26=3.12.7
Depends On     : coreutils  linux-firmware  kmod  mkinitcpio>=0.7
Optional Deps  : crda: to set the correct wireless channels of your country
Required By    : None
Optional For   : None
Conflicts With : kernel26
Replaces       : kernel26
Installed Size : 70580.00 KiB
Packager       : Tobias Powalowski <tpowa@archlinux.org>
Build Date     : Thu Jan 9 23:52:34 2014
Install Date   : Sat Jan 11 13:32:12 2014
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature
$ makepkg -f
==> Making package: spl 0.6.2_3.12.6-1 (Sat Jan 11 14:13:41 PST 2014)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> spl-utils
  -> linux=3.12.6-1
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> linux-headers=3.12.6-1
==> ERROR: Could not resolve all dependencies.
$ tail /etc/pacman.conf

[demz-repo-core]
SigLevel = Required
Server = http://demizerone.com/$repo/$arch

[chroot_local]
SigLevel = Optional TrustAll
Server = file:///var/repo
$ cat /bin/build_zfs
#!/bin/bash
#
# ZFS Builder by graysky
#

# define the temp space for building here
WORK='/scratch'

# create this dir and chown it to your user
# this is the local repo which will store your zfs packages
REPO='/var/repo'

# Add the following entry to /etc/pacman.conf for the local repo
#[chroot_local]
#SigLevel = Optional TrustAll
#Server = file:///path/to/localrepo/defined/above

for i in rsync cower clean-chroot-manager; do
  command -v $i >/dev/null 2>&1 || {
  echo "I require $i but it's not installed. Aborting." >&2
  exit 1; }
done

[[ -f ~/.config/clean-chroot-manager.conf ]] &&
  . ~/.config/clean-chroot-manager.conf || exit 1

[[ ! -d "$REPO" ]] &&
  echo "Make the dir for your local repo and chown it: $REPO" && exit 1

[[ ! -d "$WORK" ]] &&
  echo "Make a work directory: $WORK" && exit 1

cd "$WORK"
for i in spl-utils spl zfs-utils zfs; do
  [[ -d $i ]] && rm -rf $i
  cower -d $i
done

for i in spl-utils spl zfs-utils zfs; do
  cd "$WORK/$i"
  sudo ccm s
done

rsync -auvxP "$CHROOTPATH/root/repo/" "$REPO"
# ll | grep build_zfs
-rwxr-xr-x 1 root root     1032 Jan 11 13:51 build_zfs
# ll /var | grep repo
drwxrwxr-x  2 wolfdogg users 4096 Jan 11 14:06 repo
repo]# ll
total 8
drwxrwxr-x  2 wolfdogg users 4096 Jan 11 14:06 .
drwxr-xr-x 13 root     root  4096 Jan 11 13:52 ..
-rw-r--r--  1 root     root     0 Jan 11 14:06 chroot_local.db
# /bin/build_zfs
I require clean-chroot-manager but it's not installed. Aborting.
# pacman -Q clean-chroot-manager
clean-chroot-manager 2.53-1

Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#2 2014-01-11 22:19:21

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: missing dependency issues

Its simple really. its looking for a specific version (3.12.6-1) that you don't have.

The repo has moved on to 3.12.7-1 but archzfs requires 3.12.6 so yuo'd have to downgrade the kernel.

EDIT : or wait for the package to be updated in AUR.

Last edited by Inxsible (2014-01-11 22:31:11)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-01-11 22:21:33

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

Re: missing dependency issues

Circular dependencies.  You should build the zfs and spl modules in a chroot.

Offline

#4 2014-01-11 22:24:07

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: missing dependency issues

right, so does that mean i have to wait for the packages in AUR to be updated?  this was my first suspicion.  i.e. are those packages (spl e.g.) dependent on 3.12.6-1?    i just finally got zfs up and running again and wham, i updated arch and this started.    i sort of expected it, simply because i followed the first procedure first (building from the AUR) https://wiki.archlinux.org/index.php/ZF … g_from_AUR   then when i got to the point where i suspected it wasnt necessary, by reading further about demerizone, which i had great success with last time, i went that route.  bu then i had already installed spl, spl-utils, zfs and zfs-utils.  so today i removed all that stuff, and i still cant back out of the problem.     

what would you suggest i do from here to get zfs back on my system?  i prefer the demerizone route for now until theres a way i dont have to recompile it each time the kernel updates.  e.g. https://wiki.archlinux.org/index.php/ZF … Repository


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#5 2014-01-11 22:25:57

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: missing dependency issues

ahh, i see your comment WonderWoofy, so is this as easy as it sounds, chroot, then makepkg for those dependencies?  then exit chroot, and install them after logging back into archroot?  let me see if i can dig up a wiki for this.


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#6 2014-01-11 22:57:12

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: missing dependency issues

i might be going about this wrong, but im trying.  it appears that i dont have pacman conffigured right yet. 

warning: config file /etc/pacman.d/mirrorlist, line 1: directive 'Server' in section 'options' not recognized.

i dont understand why its not looking in /root/chroot/root/etc/pacman.d/mirrorlist though. 
heres where im at

...
...
...
[root@falcon builds]# tar -xvf zfs-utils.tar.gz
zfs-utils/
zfs-utils/zfs-utils.service
zfs-utils/zfs-utils.initcpio.install
zfs-utils/zfs-utils.bash-completion
zfs-utils/PKGBUILD
zfs-utils/zfs-utils.initcpio.hook
[root@falcon builds]# tar -xvf zfs.tar.gz
zfs/
zfs/zfs.install
zfs/PKGBUILD
[root@falcon builds]# ll
total 52
drwxr-xr-x 6 root     root  4096 Jan 11 14:54 .
drwxr-xr-x 5 wolfdogg users 4096 Jan 11 14:53 ..
drwxr-xr-x 2 root     root  4096 Dec 26 19:35 spl
drwxr-xr-x 2 root     root  4096 Dec 26 19:35 spl-utils
-rw-r--r-- 1 root     root  4221 Jan 11 14:54 spl-utils.tar.gz
-rw-r--r-- 1 root     root  4812 Jan 11 14:54 spl.tar.gz
drwxr-xr-x 2 root     root  4096 Dec 26 19:35 zfs
drwxr-xr-x 2 root     root  4096 Dec 26 19:35 zfs-utils
-rw-r--r-- 1 root     root  4578 Jan 11 14:54 zfs-utils.tar.gz
-rw-r--r-- 1 root     root  1523 Jan 11 14:54 zfs.tar.gz
...
...
...
[root@falcon builds]# cd spl
[root@falcon spl]# ll
total 32
drwxr-xr-x 2 root root  4096 Dec 26 19:35 .
drwxr-xr-x 6 root root  4096 Jan 11 14:54 ..
-rw-r--r-- 1 root root  1560 Dec 26 19:19 PKGBUILD
-rw-r--r-- 1 root root 14657 Nov 22 10:56 shrinker_api_fix.patch
-rw-r--r-- 1 root root  1169 Oct 21 00:10 spl.install
[root@falcon spl]# makechrootpkg -c -r $CHROOT
==> Creating clean working copy [wolfdogg]...done
==> Making package: spl 0.6.2_3.12.6-1 (Sat Jan 11 14:55:06 PST 2014)
==> Retrieving sources...
  -> Downloading spl-0.6.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  552k  100  552k    0     0   437k      0  0:00:01  0:00:01 --:--:--  437k
  -> Found shrinker_api_fix.patch
==> Validating source files with md5sums...
    spl-0.6.2.tar.gz ... Passed
    shrinker_api_fix.patch ... Passed
==> Making package: spl 0.6.2_3.12.6-1 (Sat Jan 11 14:55:08 PST 2014)
==> Checking runtime dependencies...
warning: config file /etc/pacman.d/mirrorlist, line 1: directive 'Server' in section 'options' not recognized.
==> Installing missing dependencies...
warning: config file /etc/pacman.d/mirrorlist, line 1: directive 'Server' in section 'options' not recognized.
error: target not found: spl-utils
error: target not found: linux=3.12.6-1
==> ERROR: 'pacman' failed to install missing dependencies.
==> ERROR: Build failed, check /root/chroot/wolfdogg/build






ahhhh.... disregard,
so i forgot to uncomment #[testing] portion of the pacman.conf, thats what that was all about.  now my packages are building successfully.  still cant tell you why its making a /root/chroot/wolfdogg copy though.   

so once i get these packages built, what do i do, install them right off the bat?

Last edited by wolfdogg (2014-01-11 23:03:39)


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#7 2014-01-11 23:11:25

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: missing dependency issues

do i have to downgrade my kernel?  it am getting dependency issues in this env also.  does anybody see what i am doing wrong?

# makechrootpkg -r $CHROOT -- -i
==> Making package: spl-utils 0.6.2_3.12.6-1 (Sat Jan 11 15:09:29 PST 2014)
==> Retrieving sources...
  -> Found spl-0.6.2.tar.gz
  -> Found shrinker_api_fix.patch
  -> Found spl-utils.hostid
==> Validating source files with md5sums...
    spl-0.6.2.tar.gz ... Passed
    shrinker_api_fix.patch ... Passed
    spl-utils.hostid ... Passed
==> Making package: spl-utils 0.6.2_3.12.6-1 (Sat Jan 11 15:09:30 PST 2014)
...
...
...
..
..

==> Leaving fakeroot environment.
==> Finished making: spl-utils 0.6.2_3.12.6-1 (Sat Jan 11 15:09:56 PST 2014)
==> Installing package spl-utils with pacman -U...
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (1): spl-utils-0.6.2_3.12.6-1

Total Installed Size:   0.05 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                                                                                 [#######################################################################################] 100%
(1/1) checking package integrity                                                                                                               [#######################################################################################] 100%
(1/1) loading package files                                                                                                                    [#######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                              [#######################################################################################] 100%
(1/1) checking available disk space                                                                                                            [#######################################################################################] 100%
(1/1) installing spl-utils                                                                                                                     [#######################################################################################] 100%
[root@falcon spl-utils]# cd ..
[root@falcon builds]# ll
total 52
drwxr-xr-x 6 root     root  4096 Jan 11 14:54 .
drwxr-xr-x 5 wolfdogg users 4096 Jan 11 14:59 ..
drwxr-xr-x 2 root     root  4096 Jan 11 14:55 spl
drwxr-xr-x 2 root     root  4096 Jan 11 15:09 spl-utils
-rw-r--r-- 1 root     root  4221 Jan 11 14:54 spl-utils.tar.gz
-rw-r--r-- 1 root     root  4812 Jan 11 14:54 spl.tar.gz
drwxr-xr-x 2 root     root  4096 Dec 26 19:35 zfs
drwxr-xr-x 2 root     root  4096 Dec 26 19:35 zfs-utils
-rw-r--r-- 1 root     root  4578 Jan 11 14:54 zfs-utils.tar.gz
-rw-r--r-- 1 root     root  1523 Jan 11 14:54 zfs.tar.gz
[root@falcon builds]# cd spl
[root@falcon spl]# ll
total 592
drwxr-xr-x 2 root root   4096 Jan 11 14:55 .
drwxr-xr-x 6 root root   4096 Jan 11 14:54 ..
-rw-r--r-- 1 root root   1560 Dec 26 19:19 PKGBUILD
-rw-r--r-- 1 root root  14657 Nov 22 10:56 shrinker_api_fix.patch
-rw-r--r-- 1 root root 565277 Jan 11 14:55 spl-0.6.2.tar.gz
-rw-r--r-- 1 root root   1169 Oct 21 00:10 spl.install
[root@falcon spl]# makechrootpkg -r $CHROOT -- -i
==> Making package: spl 0.6.2_3.12.6-1 (Sat Jan 11 15:10:08 PST 2014)
==> Retrieving sources...
  -> Found spl-0.6.2.tar.gz
  -> Found shrinker_api_fix.patch
==> Validating source files with md5sums...
    spl-0.6.2.tar.gz ... Passed
    shrinker_api_fix.patch ... Passed
==> Making package: spl 0.6.2_3.12.6-1 (Sat Jan 11 15:10:08 PST 2014)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: linux=3.12.6-1
==> ERROR: 'pacman' failed to install missing dependencies.
==> ERROR: Build failed, check /root/chroot/wolfdogg/build

Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#8 2014-01-11 23:33:13

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: missing dependency issues

progress, instead of copying the original packages i got from the AUR lastweek i did a wget to grab some fresh ones, and i was able to get past that problem.  hmm, might get this working after all.  i still dont know how im going to install these. can you tell me what i need to do once i have these packages?  just straight install them?  reboot first since i have a chroot setup?  i wouldnt think thats necessary since im not actually chrooted per say.


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#9 2014-01-11 23:47:20

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: missing dependency issues

nice! 

[root@falcon zfs]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 demz-repo-core                                                                                                         5.1 KiB  50.9K/s 00:00 [#######################################################################################] 100%
 demz-repo-core.sig                                                                                                   287.0   B  0.00B/s 00:00 [#######################################################################################] 100%
 chroot_local is up to date
:: Starting full system upgrade...
 there is nothing to do
[root@falcon zfs]# pacman -S archzfs
:: There are 4 members in group archzfs:
:: Repository demz-repo-core
   1) spl  2) spl-utils  3) zfs  4) zfs-utils

Enter a selection (default=all):
warning: spl-0.6.2_3.12.7-1 is up to date -- reinstalling
warning: spl-utils-0.6.2_3.12.7-1 is up to date -- reinstalling
warning: zfs-0.6.2_3.12.7-1 is up to date -- reinstalling
warning: zfs-utils-0.6.2_3.12.7-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Packages (4): spl-0.6.2_3.12.7-1  spl-utils-0.6.2_3.12.7-1  zfs-0.6.2_3.12.7-1  zfs-utils-0.6.2_3.12.7-1

Total Download Size:    0.65 MiB
Total Installed Size:   12.62 MiB
Net Upgrade Size:       2.41 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages ...
 zfs-0.6.2_3.12.7-1-x86_64                                                                                            664.4 KiB   336K/s 00:02 [#######################################################################################] 100%
(4/4) checking keys in keyring                                                                                                                 [#######################################################################################] 100%
(4/4) checking package integrity                                                                                                               [#######################################################################################] 100%
(4/4) loading package files                                                                                                                    [#######################################################################################] 100%
(4/4) checking for file conflicts                                                                                                              [#######################################################################################] 100%
(4/4) checking available disk space                                                                                                            [#######################################################################################] 100%
(1/4) reinstalling spl-utils                                                                                                                   [#######################################################################################] 100%
(2/4) reinstalling spl                                                                                                                         [#######################################################################################] 100%
>>> Updating module dependencies. Please wait ...
(3/4) reinstalling zfs-utils                                                                                                                   [#######################################################################################] 100%
(4/4) reinstalling zfs                                                                                                                         [#######################################################################################] 100%
>>> Updating module dependencies. Please wait ...

i thought i was going to get some more quick replies here.  guess everybody is having fun today....  thanks for the input anyhow.  so far so good. 

after an update comes out for the kernel, will i run into this again?


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

Board footer

Powered by FluxBB