unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39377: guix search reports bad location for bytestructures
@ 2020-01-31 22:07 Matt Wette
  2020-02-02 22:52 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Wette @ 2020-01-31 22:07 UTC (permalink / raw)
  To: 39377

I'm using guix-1.0.1 on Fedora 30, x86_64.

I wanted to get module spec for bytestructures, but failed:
location points to (guix packages), but it's actually in (gnu packages 
guile).

$ guix search bytestructures
name: guile3.0-bytestructures
version: 1.0.7
outputs: out
systems: x86_64-linux i686-linux
dependencies: autoconf@2.69 automake@1.16.1 guile-next@3.0.0 
pkg-config@0.29.2
location: guix/packages.scm:880:11
homepage: https://github.com/TaylanUB/scheme-bytestructures
license: GPL 3+
synopsis: Structured access to bytevector contents for Guile
description: Guile bytestructures offers a system imitating the type 
system of
+ the C programming language, to be used on bytevectors.  C's type 
system works
+ on raw memory, and Guile works on bytevectors which are an abstraction 
over
+ raw memory.  It's also more powerful than the C type system, elevating 
types
+ to first-class status.
relevance: 6

$ guix repl
scheme@(guix-user)> guile3.0-bytestructures
;;; <unknown-location>: warning: possibly unbound variable 
`guile3.0-bytestructures'
ERROR: error: guile3.0-bytestructures: unbound variable

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,use (gnu packages guile)
scheme@(guix-user) [1]> guile3.0-bytestructures
$1 = #<package guile3.0-bytestructures@1.0.7 guix/packages.scm:880 
7f639f9532c0>

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

* bug#39377: guix search reports bad location for bytestructures
  2020-01-31 22:07 bug#39377: guix search reports bad location for bytestructures Matt Wette
@ 2020-02-02 22:52 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-02-02 22:52 UTC (permalink / raw)
  To: Matt Wette; +Cc: 39377

Hi Matt,

Matt Wette <matt.wette@gmail.com> skribis:

> I'm using guix-1.0.1 on Fedora 30, x86_64.
>
> I wanted to get module spec for bytestructures, but failed:
> location points to (guix packages), but it's actually in (gnu packages
> guile).
>
> $ guix search bytestructures
> name: guile3.0-bytestructures
> version: 1.0.7
> outputs: out
> systems: x86_64-linux i686-linux
> dependencies: autoconf@2.69 automake@1.16.1 guile-next@3.0.0
> pkg-config@0.29.2
> location: guix/packages.scm:880:11

The location here is that of the ‘package-input-rewriting’ procedure,
which is used to define this “guile3.0-” variant.  But note that
‘guile-bytestructures’ has the right location info:

--8<---------------cut here---------------start------------->8---
$ guix show guile-bytestructures
name: guile-bytestructures
version: 1.0.7
outputs: out
systems: x86_64-linux i686-linux
dependencies: autoconf@2.69 automake@1.16.1 guile@2.2.6 pkg-config@0.29.2
location: gnu/packages/guile.scm:594:2
--8<---------------cut here---------------end--------------->8---

We could arrange so that ‘package-input-rewriting’ preserves source
location info (that would still be somewhat inaccurate, but hopefully
less misleading.)

Ludo’.

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

end of thread, other threads:[~2020-02-02 22:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-31 22:07 bug#39377: guix search reports bad location for bytestructures Matt Wette
2020-02-02 22:52 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).