GNU bug report logs - #40752
gnu: Add eject.

Previous Next

Package: guix-patches;

Reported by: Raghav Gururajan <raghavgururajan <at> disroot.org>

Date: Tue, 21 Apr 2020 20:23:01 UTC

Severity: normal

Done: Raghav Gururajan <raghavgururajan <at> disroot.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40752 in the body.
You can then email your comments to 40752 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#40752; Package guix-patches. (Tue, 21 Apr 2020 20:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raghav Gururajan <raghavgururajan <at> disroot.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 21 Apr 2020 20:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <raghavgururajan <at> disroot.org>
To: guix-patches <at> gnu.org
Subject: gnu: Add eject.
Date: Tue, 21 Apr 2020 16:22:06 -0400
[Message part 1 (text/plain, inline)]

[0002-gnu-Add-eject.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#40752; Package guix-patches. (Tue, 21 Apr 2020 22:29:01 GMT) Full text and rfc822 format available.

Message #8 received at 40752 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 40752 <at> debbugs.gnu.org
Subject: Re: [bug#40752] gnu: Add eject.
Date: Wed, 22 Apr 2020 00:28:30 +0200
[Message part 1 (text/plain, inline)]
Raghav,

Thanks for the patch!  Amazing that this wasn't in Guix yet.  Even 
more amazing that I didn't package it.

Raghav Gururajan 写道:
+(define-public eject
+  (package
+    (name "eject")
+    (version "2019.08.22")

You've been around long enough to know how we package git releases 
:-)  Certainly not like this.

More like

 ;; Comment explaining why we use a git snapshot.
 (let ((commit "12a22e…")
       (revision "0"))
   (package …
     (version (git version "2.1.…" revision commit))

please.

Upstream[0 ]says there's a 2.1.6 version, but it may exist nowhere 
but in the author's mind.  If you do find a tarball, tag, or 
corresponding commit, use it, or explain in a comment why 12a22e 
is better.

+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://git.code.sf.net/p/eject/git")
+         (commit "12a22e")))

Please don't abbreviate commits like this.

+       (file-name (git-file-name name version))

Yay!

+       (sha256
+        (base32 
"1dxj0zn32l8k16j5innh8y4snambx1b702ny37114drddqcqac6h"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ; No target

Write ‘; no test suite’ instead, which is to be expected from a 
package like this.

‘No target’ makes it sound like who knows, there might be tests, 
but there's no make rule to run them, so we don't.  Not a good 
look.

+       #:make-flags
+       (list

Hm?  Eh?  Oh…  Please insert a comment here:

        ;; ./configure respects --prefix=; the handwritten 
        po/Makefile doesn't.

+        (string-append "PREFIX=" (assoc-ref %outputs "out")))))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("gettext" ,gettext-minimal)))
+    (inputs
+     `(("lvm2" ,lvm2)
+       ("sg3-utils" ,sg3-utils)))
+    (synopsis "Utility for Removable Media")

…is too vague.  And this is worse:

+    (description "Eject allows removable media (typically a 
CD-ROM, floppy disk,
+tape, or JAZ or ZIP disk) to be ejected under software control. 
The command can
+also control some multi-disc CD-ROM changers, the auto-eject 
feature supported
+by some devices, and close the disc tray of some CD-ROM 
drives. ")

I know this is upstream's handiwork; not yours, but crikey.

Always feel free to edit the hell out of these texts.  ‘Software 
Foo allows gizmos to be frobbed under software control’? → ‘Foo 
frobs gizmos’. Done.

A quick attempt with some inspiration from Debian:

 (synopsis "Eject and safely disconnect removable media")
 (description
   "This little program will eject CD-ROMs and other ejectable 
   removable media.
It can also set the auto-eject feature, close the tray of some 
CD-ROM drives,
and select the active disc in supported multi-disc changers.

You can also use @command{eject} to properly disconnect external 
mass-storage
devices like mobile phones, digital cameras, or portable music 
players.")

+    (home-page "http://eject.sourceforge.net")
+    (license license:gpl2+)))
+

I wasn't able to apply & test this patch; I guess ‘udevil’ is 
still under review.  I don't have time to review it as well.

Please: try to add new packages in alphabetical order, NOT blindly 
to the beginning or end of files.  For once, this has nothing 
(well, less) to do with my obsession for ordnung.  It makes 
annoying issues like this less likely.

It doesn't matter that most package .scm files are an unordered 
mess: if you'd added eject near the beginning and udevil near the 
end, the two unrelated packages wouldn't conflict.

Kind regards,

T G-R

[0]: https://sourceforge.net/p/eject/git/ci/master/tree/NEWS
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#40752; Package guix-patches. (Wed, 22 Apr 2020 06:56:02 GMT) Full text and rfc822 format available.

Message #11 received at 40752 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Raghav Gururajan <raghavgururajan <at> disroot.org>
Cc: 40752 <at> debbugs.gnu.org
Subject: Re: [bug#40752] gnu: Add eject.
Date: Wed, 22 Apr 2020 08:55:01 +0200
[Message part 1 (text/plain, inline)]
Hmm, how is this different to util-linux's eject ?
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#40752; Package guix-patches. (Thu, 23 Apr 2020 01:22:01 GMT) Full text and rfc822 format available.

Message #14 received at 40752 <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <raghavgururajan <at> disroot.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 40752 <at> debbugs.gnu.org
Subject: Re: [bug#40752] gnu: Add eject.
Date: Wed, 22 Apr 2020 21:21:10 -0400
Hi Danny!

> Hmm, how is this different to util-linux's eject ?

There is no difference, but for some reason SpaceFM use this as dependency.
This is has been packaged for the sole purpose of SpaceFM (#40753). :-)

Regards,
RG.




Information forwarded to guix-patches <at> gnu.org:
bug#40752; Package guix-patches. (Thu, 23 Apr 2020 06:18:01 GMT) Full text and rfc822 format available.

Message #17 received at 40752 <at> debbugs.gnu.org (full text, mbox):

From: Jan Nieuwenhuizen <janneke <at> gnu.org>
To: Raghav Gururajan <raghavgururajan <at> disroot.org>
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 40752 <at> debbugs.gnu.org
Subject: Re: [bug#40752] gnu: Add eject.
Date: Thu, 23 Apr 2020 08:16:58 +0200
Raghav Gururajan writes:

>> Hmm, how is this different to util-linux's eject ?
>
> There is no difference, but for some reason SpaceFM use this as dependency.
> This is has been packaged for the sole purpose of SpaceFM (#40753). :-)

This page

    https://aur.archlinux.org/packages/spacefm/

suggests that on Arch, SpaceFM is using eject from util-linux.  Wouldn't
it be nice to do that in Guix too?  Maybe you can see how they did it?

Greetings,
janneke

-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com




Information forwarded to guix-patches <at> gnu.org:
bug#40752; Package guix-patches. (Fri, 24 Apr 2020 18:47:01 GMT) Full text and rfc822 format available.

Message #20 received at 40752 <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <raghavgururajan <at> disroot.org>
To: Jan Nieuwenhuizen <janneke <at> gnu.org>
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 40752 <at> debbugs.gnu.org
Subject: Re: [bug#40752] gnu: Add eject.
Date: Fri, 24 Apr 2020 14:46:21 -0400
Hi Jan!

> This page
> 
>     https://aur.archlinux.org/packages/spacefm/
> 
> suggests that on Arch, SpaceFM is using eject from util-linux.  Wouldn't
> it be nice to do that in Guix too?  Maybe you can see how they did it?

Thanks for the info. I tried and it works. But I am wondering why to use
'util-linux' package just for one utility. This 'eject' package will be
smaller dependency than 'util-linux' package. What do you think?

Regards,
RG.




Information forwarded to guix-patches <at> gnu.org:
bug#40752; Package guix-patches. (Fri, 24 Apr 2020 19:04:01 GMT) Full text and rfc822 format available.

Message #23 received at 40752 <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <raghavgururajan <at> disroot.org>
To: Jan Nieuwenhuizen <janneke <at> gnu.org>
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 40752 <at> debbugs.gnu.org
Subject: Re: [bug#40752] gnu: Add eject.
Date: Fri, 24 Apr 2020 15:02:41 -0400
On Fri, 24 Apr 2020 14:46:21 -0400
Raghav Gururajan <raghavgururajan <at> disroot.org> wrote:

> Hi Jan!
> 
> > This page
> > 
> >     https://aur.archlinux.org/packages/spacefm/
> > 
> > suggests that on Arch, SpaceFM is using eject from util-linux.  Wouldn't
> > it be nice to do that in Guix too?  Maybe you can see how they did it?  
> 
> Thanks for the info. I tried and it works. But I am wondering why to use
> 'util-linux' package just for one utility. This 'eject' package will be
> smaller dependency than 'util-linux' package. What do you think?

On the second thought, 'util-linux' is better maintained. So I'll close this
ticket.

Regards,
RG.




bug closed, send any further explanations to 40752 <at> debbugs.gnu.org and Raghav Gururajan <raghavgururajan <at> disroot.org> Request was from Raghav Gururajan <raghavgururajan <at> disroot.org> to control <at> debbugs.gnu.org. (Fri, 24 Apr 2020 19:06:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 23 May 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.