all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why do some vm-image VM packages display "OUTPUTS: (Package is obsolete)"?
@ 2016-07-06  2:55 myglc2
  2016-07-06  3:05 ` myglc2
  2016-07-06 17:43 ` Alex Kost
  0 siblings, 2 replies; 4+ messages in thread
From: myglc2 @ 2016-07-06  2:55 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]


I am running Guix/Debian from this git checkout ...

g1@e3b:~/dev/guix$ git branch -av | grep '* master'
* master                                   fda746b gnu: menu-cache: Update to 1.0.1.

g1@e3b:~/dev/guix$ stat /home/g1/.config/guix/latest | grep File:
  File: ‘/home/g1/.config/guix/latest’ -> ‘../../dev/guix’

... I produced and ran a vm-image using the attached 'img' script by
doing ...

./img mk
./img run

In the running "guest" VM, 'M-x guix-installed-system-packages'
displayed 'git', 'git-manpages', 'guix', 'iw', 'magit', 'pciutils',
'screen' and 'wget' in red in the "*Guix Package List:..." buffer.

As an example, *Guix package Info:...* displays:

***
guix 0.10.0-0.e901
[...]
Outputs: (This package is obsolete)
  out       
    Store directory: 
      /gnu/store/4r360f7pndsnkfbmwb7bym8qrpsjd38b-guix-0.10.0-0.e901
[...]
***

However, on the host, 'M-x guix-installed-packages' displays the same
packages in green and, for example, *Guix package Info:...* displays:

***
guix 0.10.0-0.e901
[...]
Outputs: 
  out       Delete
    Store directory: 
      /gnu/store/4r360f7pndsnkfbmwb7bym8qrpsjd38b-guix-0.10.0-0.e901
[...]
***

So here is the question: 

Why do some vm-image VM packages display "OUTPUTS: (Package is obsolete)"?


[-- Attachment #2: img --]
[-- Type: application/octet-stream, Size: 2114 bytes --]

#!/bin/bash
set -xe

# guix vm examples

# usage
# $ <scriptname> mk  [vm#] - mak image
# $ <scriptname> run [vm#] - run image

CMD=`basename "$0"`
VMNUM=${2:-""}
TMPDIR=$PWD/tmp/$CMD$VMNUM
mkdir -p $TMPDIR
cp $CMD $TMPDIR/$CMD

case $1 in
    mk)
    # make vm image
	# vm.config
	cat > "$TMPDIR/vm.scm"<<EOF
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules admin
		     disk
		     ssh rsync wget screen
		     version-control
		     emacs
		     xorg certs
		     graphviz
		     package-management
		     )
(operating-system
  (host-name "v1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
			(device "g1sd")
			(title 'label)
			(mount-point "/")
			(type "ext4"))
		      %base-file-systems))
  (users (cons* (user-account
		 (name "u1")
		 (comment "u 1")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/u1"))
		%base-user-accounts))
  (packages
   (cons*
    glibc-utf8-locales
    parted
    openssh nss-certs xauth rsync wget git git-manpages
    emacs magit screen 
    graphviz
    guix
    %base-packages
    )
   )
  (services (cons* (dhcp-client-service)
		   (lsh-service #:root-login? #t)
		   %base-services)))
EOF

	# show guix version
	# guix system --version
	(stat $HOME/.config/guix/latest | grep File:) > $TMPDIR/guix-version
	git -C ~/.config/guix/latest branch -av | grep '* master' >> $TMPDIR/guix-version
	make -C $HOME/.config/guix/latest -s > $TMPDIR/guix-make.log

	# make image & copy from store
	cp -n $(guix system vm-image $TMPDIR/vm.scm --image-size=4GB) $TMPDIR/vm.img

	# make writeable
	chmod u+w $TMPDIR/vm.img
	;;

    run)
	# run image
	# Note: '-k en-us' is a hack to get Mac XQuartz keys to sort of work
	# note: ' -device virtio-rng-pci ' testing other rdm source
	qemu-system-x86_64 \
	    -net user \
	    -net nic,model=virtio \
	    -enable-kvm \
	    -m 256 \
	    -k en-us \
	    $TMPDIR/vm.img
	;;

    *)

	echo ERROR: you typed: \"$CMD $*\" which has missing arguments or invalid arguments

esac

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-12 22:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-06  2:55 Why do some vm-image VM packages display "OUTPUTS: (Package is obsolete)"? myglc2
2016-07-06  3:05 ` myglc2
2016-07-06 17:43 ` Alex Kost
2016-07-12 22:25   ` myglc2

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.