diff mbox series

[bug#62199,v5] gnu: Add emacs-fdroid.

Message ID 865y7xbwiq.fsf@mianmoreno.com
State New
Headers show
Series [bug#62199,v5] gnu: Add emacs-fdroid. | expand

Commit Message

Miguel Ángel Moreno June 8, 2023, 7:10 p.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
---
 gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Comments

Nicolas Goaziou June 10, 2023, 7:43 p.m. UTC | #1
Hello,

Miguel Ángel Moreno <me@mianmoreno.com> writes:

> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
> ---
>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index cad9819a5e..4dff0f85d9 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>    #:use-module (guix build-system trivial)
>    #:use-module (gnu packages)
>    #:use-module (gnu packages admin)
> +  #:use-module (gnu packages android)

I still get an error with this line. Maybe someone else can test it too.

Regards,
Andrew Tropin June 13, 2023, 10:50 a.m. UTC | #2
On 2023-06-10 21:43, Nicolas Goaziou wrote:

> Hello,
>
> Miguel Ángel Moreno <me@mianmoreno.com> writes:
>
>> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
>> ---
>>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>>  1 file changed, 31 insertions(+)
>>
>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>> index cad9819a5e..4dff0f85d9 100644
>> --- a/gnu/packages/emacs-xyz.scm
>> +++ b/gnu/packages/emacs-xyz.scm
>> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>>    #:use-module (guix build-system trivial)
>>    #:use-module (gnu packages)
>>    #:use-module (gnu packages admin)
>> +  #:use-module (gnu packages android)
>
> I still get an error with this line. Maybe someone else can test it too.

Can confirm, get this error too.
Miguel Ángel Moreno June 21, 2023, 9:59 a.m. UTC | #3
On 2023-06-10 21:43, Nicolas Goaziou wrote:

> Hello,
>
> Miguel Ángel Moreno <me@mianmoreno.com> writes:
>
>> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
>> ---
>>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>>  1 file changed, 31 insertions(+)
>>
>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>> index cad9819a5e..4dff0f85d9 100644
>> --- a/gnu/packages/emacs-xyz.scm
>> +++ b/gnu/packages/emacs-xyz.scm
>> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>>    #:use-module (guix build-system trivial)
>>    #:use-module (gnu packages)
>>    #:use-module (gnu packages admin)
>> +  #:use-module (gnu packages android)
>
> I still get an error with this line. Maybe someone else can test it too.
>
> Regards,

Hi Nicolas,

I'm Cc'ing Ludovic, who might be able to test this.  At any rate, do you
think we can proceed without the fdroidcl input in case the package
build keeps failing?
Miguel Ángel Moreno Aug. 20, 2023, 5:40 p.m. UTC | #4
On 2023-06-21 11:59, Miguel Ángel Moreno wrote:

> On 2023-06-10 21:43, Nicolas Goaziou wrote:
>
>> Hello,
>>
>> Miguel Ángel Moreno <me@mianmoreno.com> writes:
>>
>>> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
>>> ---
>>>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>>>  1 file changed, 31 insertions(+)
>>>
>>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>>> index cad9819a5e..4dff0f85d9 100644
>>> --- a/gnu/packages/emacs-xyz.scm
>>> +++ b/gnu/packages/emacs-xyz.scm
>>> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>>>    #:use-module (guix build-system trivial)
>>>    #:use-module (gnu packages)
>>>    #:use-module (gnu packages admin)
>>> +  #:use-module (gnu packages android)
>>
>> I still get an error with this line. Maybe someone else can test it too.
>>
>> Regards,
>
> Hi Nicolas,
>
> I'm Cc'ing Ludovic, who might be able to test this.  At any rate, do you
> think we can proceed without the fdroidcl input in case the package
> build keeps failing?

Hi,

Friendly ping on this issue.  The package still builds successfully for
me at the latest Guix checkout.  Could you test it again, please?
Andrew Tropin Aug. 24, 2023, 1:58 p.m. UTC | #5
On 2023-08-20 19:40, Miguel Ángel Moreno wrote:

> On 2023-06-21 11:59, Miguel Ángel Moreno wrote:
>
>> On 2023-06-10 21:43, Nicolas Goaziou wrote:
>>
>>> Hello,
>>>
>>> Miguel Ángel Moreno <me@mianmoreno.com> writes:
>>>
>>>> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
>>>> ---
>>>>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>>>>  1 file changed, 31 insertions(+)
>>>>
>>>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>>>> index cad9819a5e..4dff0f85d9 100644
>>>> --- a/gnu/packages/emacs-xyz.scm
>>>> +++ b/gnu/packages/emacs-xyz.scm
>>>> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>>>>    #:use-module (guix build-system trivial)
>>>>    #:use-module (gnu packages)
>>>>    #:use-module (gnu packages admin)
>>>> +  #:use-module (gnu packages android)
>>>
>>> I still get an error with this line. Maybe someone else can test it too.
>>>
>>> Regards,
>>
>> Hi Nicolas,
>>
>> I'm Cc'ing Ludovic, who might be able to test this.  At any rate, do you
>> think we can proceed without the fdroidcl input in case the package
>> build keeps failing?
>
> Hi,
>
> Friendly ping on this issue.  The package still builds successfully for
> me at the latest Guix checkout.  Could you test it again, please?

Still fails with:

--8<---------------cut here---------------start------------->8---
./pre-inst-env guix build emacs-fdroid
;;; note: source file /home/bob/work/gnu/guix/guix/download.scm
;;;       newer than compiled /home/bob/work/gnu/guix/guix/download.go
;;; note: source file /home/bob/work/gnu/guix/guix/download.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/guix/download.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/linux.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/linux.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/linux.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/linux.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/tex.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/tex.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/tex.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/tex.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/qt.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/qt.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/qt.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/qt.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/qt.scm
;;;       newer than compiled /home/bob/.cache/guile/ccache/3.0-LE-8-4.6/home/bob/work/gnu/guix/gnu/packages/qt.scm.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/geo.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/geo.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/geo.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/geo.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/video.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/video.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/video.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/video.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/video.scm
;;;       newer than compiled /home/bob/.cache/guile/ccache/3.0-LE-8-4.6/home/bob/work/gnu/guix/gnu/packages/video.scm.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/disk.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/disk.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/disk.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/disk.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/emacs-xyz.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm
;;;       newer than compiled /home/bob/.cache/guile/ccache/3.0-LE-8-4.6/home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/python-crypto.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/python-crypto.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/python-crypto.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/python-crypto.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/games.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/games.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/games.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/games.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/image-viewers.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/image-viewers.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/image-viewers.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/image-viewers.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/ibus.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/ibus.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/ibus.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/ibus.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/package-management.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/package-management.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/package-management.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/package-management.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/terminals.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/terminals.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/terminals.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/terminals.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/scheme.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/scheme.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/scheme.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/scheme.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/lisp-xyz.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/lisp-xyz.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/lisp-xyz.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/lisp-xyz.go
error: googletest: unbound variable
hint: Did you forget a `use-modules' form?

error: bzip2: unbound variable
hint: Did you forget a `use-modules' form?

error: cross-gcc: unbound variable
hint: Did you forget `(use-modules (gnu packages cross-base))'?

error: dfu-util: unbound variable
hint: Did you forget a `use-modules' form?

error: gnutls: unbound variable
hint: Did you forget a `use-modules' form?

error: tcc: unbound variable
hint: Did you forget a `use-modules' form?

error: opus: unbound variable
hint: Did you forget a `use-modules' form?

error: gnu-make: unbound variable
hint: Did you forget a `use-modules' form?

;;; note: source file /home/bob/work/gnu/guix/gnu/packages/fcitx5.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/fcitx5.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/fcitx5.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/fcitx5.go
error: cross-binutils: unbound variable
hint: Did you forget `(use-modules (gnu packages cross-base))'?

;;; note: source file /home/bob/work/gnu/guix/gnu/packages/irc.scm
;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/irc.go
;;; note: source file /home/bob/work/gnu/guix/gnu/packages/irc.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/irc.go
error: ffmpeg: unbound variable
hint: Did you forget a `use-modules' form?

Throw to key `unbound-variable' with args `("resolve-interface" "no binding `~A' in module ~A" (shared-mime-info (gnu packages gnome)) #f)'.
Backtrace:
In guix/store.scm:
   659:37 19 (thunk)
   1298:8 18 (call-with-build-handler #<procedure 7feeff0fb8d0 at g…> …)
In guix/scripts/build.scm:
    584:2 17 (_)
In srfi/srfi-1.scm:
   673:15 16 (append-map _ _ . _)
   586:17 15 (map1 ((argument . "emacs-fdroid") (build-mode . 0) # …))
In guix/scripts/build.scm:
   604:31 14 (_ _)
In gnu/packages.scm:
    485:2 13 (%find-package "emacs-fdroid" "emacs-fdroid" #f)
    365:6 12 (find-best-packages-by-name _ _)
   295:56 11 (_ "emacs-fdroid" _)
In unknown file:
          10 (force #<promise #<procedure 7fef05e4e2e0 at gnu/packag…>)
In gnu/packages.scm:
   242:33  9 (fold-packages #<procedure 7feefe5845f0 at gnu/package…> …)
In guix/discovery.scm:
   158:11  8 (all-modules _ #:warn _)
In srfi/srfi-1.scm:
   460:18  7 (fold #<procedure 7feeff0b7c60 at guix/discovery.scm:1…> …)
In guix/discovery.scm:
   148:19  6 (_ _ ())
    115:5  5 (scheme-modules _ _ #:warn _)
In srfi/srfi-1.scm:
   691:23  4 (filter-map #<procedure 7feeff0b7b00 at guix/discove…> . #)
In guix/discovery.scm:
   123:24  3 (_ . _)
In guix/ui.scm:
    357:2  2 (report-unbound-variable-error _ #:frame _)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" (unbound-variable "resolve-interface" "no binding `~A' in module ~A" (shared-mime-info (gnu packages gnome)) #f))'.

Compilation exited abnormally with code 1 at Thu Aug 24 17:55:13
--8<---------------cut here---------------end--------------->8---
Miguel Ángel Moreno Aug. 26, 2023, 4:10 p.m. UTC | #6
On 2023-08-24 17:58, Andrew Tropin wrote:

> On 2023-08-20 19:40, Miguel Ángel Moreno wrote:
>
>> On 2023-06-21 11:59, Miguel Ángel Moreno wrote:
>>
>>> On 2023-06-10 21:43, Nicolas Goaziou wrote:
>>>
>>>> Hello,
>>>>
>>>> Miguel Ángel Moreno <me@mianmoreno.com> writes:
>>>>
>>>>> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
>>>>> ---
>>>>>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>>>>>  1 file changed, 31 insertions(+)
>>>>>
>>>>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>>>>> index cad9819a5e..4dff0f85d9 100644
>>>>> --- a/gnu/packages/emacs-xyz.scm
>>>>> +++ b/gnu/packages/emacs-xyz.scm
>>>>> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>>>>>    #:use-module (guix build-system trivial)
>>>>>    #:use-module (gnu packages)
>>>>>    #:use-module (gnu packages admin)
>>>>> +  #:use-module (gnu packages android)
>>>>
>>>> I still get an error with this line. Maybe someone else can test it too.
>>>>
>>>> Regards,
>>>
>>> Hi Nicolas,
>>>
>>> I'm Cc'ing Ludovic, who might be able to test this.  At any rate, do you
>>> think we can proceed without the fdroidcl input in case the package
>>> build keeps failing?
>>
>> Hi,
>>
>> Friendly ping on this issue.  The package still builds successfully for
>> me at the latest Guix checkout.  Could you test it again, please?
>
> Still fails with:
>

Thanks for the heads up.  It seems like the googletest package is the
culprit of this issue.  As I alluded to earlier, can we proceed without
the fdroidcl input in that case?  Given as it's been almost 6 months
since this issue was raised.

> ./pre-inst-env guix build emacs-fdroid
> ;;; note: source file /home/bob/work/gnu/guix/guix/download.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/guix/download.go
> ;;; note: source file /home/bob/work/gnu/guix/guix/download.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/guix/download.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/linux.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/linux.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/linux.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/linux.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/tex.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/tex.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/tex.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/tex.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/qt.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/qt.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/qt.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/qt.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/qt.scm
> ;;;       newer than compiled /home/bob/.cache/guile/ccache/3.0-LE-8-4.6/home/bob/work/gnu/guix/gnu/packages/qt.scm.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/geo.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/geo.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/geo.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/geo.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/video.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/video.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/video.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/video.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/video.scm
> ;;;       newer than compiled /home/bob/.cache/guile/ccache/3.0-LE-8-4.6/home/bob/work/gnu/guix/gnu/packages/video.scm.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/disk.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/disk.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/disk.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/disk.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/emacs-xyz.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm
> ;;;       newer than compiled /home/bob/.cache/guile/ccache/3.0-LE-8-4.6/home/bob/work/gnu/guix/gnu/packages/emacs-xyz.scm.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/python-crypto.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/python-crypto.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/python-crypto.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/python-crypto.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/games.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/games.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/games.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/games.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/image-viewers.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/image-viewers.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/image-viewers.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/image-viewers.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/ibus.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/ibus.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/ibus.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/ibus.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/package-management.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/package-management.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/package-management.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/package-management.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/terminals.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/terminals.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/terminals.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/terminals.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/scheme.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/scheme.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/scheme.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/scheme.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/lisp-xyz.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/lisp-xyz.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/lisp-xyz.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/lisp-xyz.go
> error: googletest: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: bzip2: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: cross-gcc: unbound variable
> hint: Did you forget `(use-modules (gnu packages cross-base))'?
>
> error: dfu-util: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: gnutls: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: tcc: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: opus: unbound variable
> hint: Did you forget a `use-modules' form?
>
> error: gnu-make: unbound variable
> hint: Did you forget a `use-modules' form?
>
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/fcitx5.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/fcitx5.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/fcitx5.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/fcitx5.go
> error: cross-binutils: unbound variable
> hint: Did you forget `(use-modules (gnu packages cross-base))'?
>
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/irc.scm
> ;;;       newer than compiled /home/bob/work/gnu/guix/gnu/packages/irc.go
> ;;; note: source file /home/bob/work/gnu/guix/gnu/packages/irc.scm
> ;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/gnu/packages/irc.go
> error: ffmpeg: unbound variable
> hint: Did you forget a `use-modules' form?
>
> Throw to key `unbound-variable' with args `("resolve-interface" "no binding `~A' in module ~A" (shared-mime-info (gnu packages gnome)) #f)'.
> Backtrace:
> In guix/store.scm:
>    659:37 19 (thunk)
>    1298:8 18 (call-with-build-handler #<procedure 7feeff0fb8d0 at g…> …)
> In guix/scripts/build.scm:
>     584:2 17 (_)
> In srfi/srfi-1.scm:
>    673:15 16 (append-map _ _ . _)
>    586:17 15 (map1 ((argument . "emacs-fdroid") (build-mode . 0) # …))
> In guix/scripts/build.scm:
>    604:31 14 (_ _)
> In gnu/packages.scm:
>     485:2 13 (%find-package "emacs-fdroid" "emacs-fdroid" #f)
>     365:6 12 (find-best-packages-by-name _ _)
>    295:56 11 (_ "emacs-fdroid" _)
> In unknown file:
>           10 (force #<promise #<procedure 7fef05e4e2e0 at gnu/packag…>)
> In gnu/packages.scm:
>    242:33  9 (fold-packages #<procedure 7feefe5845f0 at gnu/package…> …)
> In guix/discovery.scm:
>    158:11  8 (all-modules _ #:warn _)
> In srfi/srfi-1.scm:
>    460:18  7 (fold #<procedure 7feeff0b7c60 at guix/discovery.scm:1…> …)
> In guix/discovery.scm:
>    148:19  6 (_ _ ())
>     115:5  5 (scheme-modules _ _ #:warn _)
> In srfi/srfi-1.scm:
>    691:23  4 (filter-map #<procedure 7feeff0b7b00 at guix/discove…> . #)
> In guix/discovery.scm:
>    123:24  3 (_ . _)
> In guix/ui.scm:
>     357:2  2 (report-unbound-variable-error _ #:frame _)
> In ice-9/boot-9.scm:
>   1685:16  1 (raise-exception _ #:continuable? _)
>   1685:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Throw to key `match-error' with args `("match" "no matching pattern" (unbound-variable "resolve-interface" "no binding `~A' in module ~A" (shared-mime-info (gnu packages gnome)) #f))'.
>
> Compilation exited abnormally with code 1 at Thu Aug 24 17:55:13
<#secure method=pgpmime mode=sign>
Andrew Tropin Aug. 28, 2023, 3:44 a.m. UTC | #7
On 2023-08-26 18:10, Miguel Ángel Moreno wrote:

> On 2023-08-24 17:58, Andrew Tropin wrote:
>
>> On 2023-08-20 19:40, Miguel Ángel Moreno wrote:
>>
>>> On 2023-06-21 11:59, Miguel Ángel Moreno wrote:
>>>
>>>> On 2023-06-10 21:43, Nicolas Goaziou wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Miguel Ángel Moreno <me@mianmoreno.com> writes:
>>>>>
>>>>>> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
>>>>>> ---
>>>>>>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>>>>>>  1 file changed, 31 insertions(+)
>>>>>>
>>>>>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>>>>>> index cad9819a5e..4dff0f85d9 100644
>>>>>> --- a/gnu/packages/emacs-xyz.scm
>>>>>> +++ b/gnu/packages/emacs-xyz.scm
>>>>>> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>>>>>>    #:use-module (guix build-system trivial)
>>>>>>    #:use-module (gnu packages)
>>>>>>    #:use-module (gnu packages admin)
>>>>>> +  #:use-module (gnu packages android)
>>>>>
>>>>> I still get an error with this line. Maybe someone else can test it too.
>>>>>
>>>>> Regards,
>>>>
>>>> Hi Nicolas,
>>>>
>>>> I'm Cc'ing Ludovic, who might be able to test this.  At any rate, do you
>>>> think we can proceed without the fdroidcl input in case the package
>>>> build keeps failing?
>>>
>>> Hi,
>>>
>>> Friendly ping on this issue.  The package still builds successfully for
>>> me at the latest Guix checkout.  Could you test it again, please?
>>
>> Still fails with:
>>
>
> Thanks for the heads up.  It seems like the googletest package is the
> culprit of this issue.  As I alluded to earlier, can we proceed without
> the fdroidcl input in that case?  Given as it's been almost 6 months
> since this issue was raised.

Seems as a reasonable option for me.
Andrew Tropin Aug. 28, 2023, 3:46 a.m. UTC | #8
On 2023-08-28 07:44, Andrew Tropin wrote:

> On 2023-08-26 18:10, Miguel Ángel Moreno wrote:
>
>> On 2023-08-24 17:58, Andrew Tropin wrote:
>>
>>> On 2023-08-20 19:40, Miguel Ángel Moreno wrote:
>>>
>>>> On 2023-06-21 11:59, Miguel Ángel Moreno wrote:
>>>>
>>>>> On 2023-06-10 21:43, Nicolas Goaziou wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> Miguel Ángel Moreno <me@mianmoreno.com> writes:
>>>>>>
>>>>>>> * gnu/packages/emacs-xyz.scm (emacs-fdroid): New variable.
>>>>>>> ---
>>>>>>>  gnu/packages/emacs-xyz.scm | 31 +++++++++++++++++++++++++++++++
>>>>>>>  1 file changed, 31 insertions(+)
>>>>>>>
>>>>>>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>>>>>>> index cad9819a5e..4dff0f85d9 100644
>>>>>>> --- a/gnu/packages/emacs-xyz.scm
>>>>>>> +++ b/gnu/packages/emacs-xyz.scm
>>>>>>> @@ -163,6 +163,7 @@ (define-module (gnu packages emacs-xyz)
>>>>>>>    #:use-module (guix build-system trivial)
>>>>>>>    #:use-module (gnu packages)
>>>>>>>    #:use-module (gnu packages admin)
>>>>>>> +  #:use-module (gnu packages android)
>>>>>>
>>>>>> I still get an error with this line. Maybe someone else can test it too.
>>>>>>
>>>>>> Regards,
>>>>>
>>>>> Hi Nicolas,
>>>>>
>>>>> I'm Cc'ing Ludovic, who might be able to test this.  At any rate, do you
>>>>> think we can proceed without the fdroidcl input in case the package
>>>>> build keeps failing?
>>>>
>>>> Hi,
>>>>
>>>> Friendly ping on this issue.  The package still builds successfully for
>>>> me at the latest Guix checkout.  Could you test it again, please?
>>>
>>> Still fails with:
>>>
>>
>> Thanks for the heads up.  It seems like the googletest package is the
>> culprit of this issue.  As I alluded to earlier, can we proceed without
>> the fdroidcl input in that case?  Given as it's been almost 6 months
>> since this issue was raised.
>
> Seems as a reasonable option for me.

Added Liliana to Cc.
Liliana Marie Prikler Aug. 28, 2023, 7:42 p.m. UTC | #9
Am Montag, dem 28.08.2023 um 07:46 +0400 schrieb Andrew Tropin:
> On 2023-08-28 07:44, Andrew Tropin wrote:
> 
> > On 2023-08-26 18:10, Miguel Ángel Moreno wrote:
> > > Thanks for the heads up.  It seems like the googletest package is
> > > the culprit of this issue.  As I alluded to earlier, can we
> > > proceed without the fdroidcl input in that case?  Given as it's
> > > been almost 6 months since this issue was raised.
> > 
> > Seems as a reasonable option for me.
> 
> Added Liliana to Cc.
I mean, if emacs-xyz doesn't work, you could try moving the package to
(gnu packages android).  More importantly, the home-page and origin URL
appear to be dead from my end, so they need updating :(

As for the package itself, I'd prefer if it was working out of the box,
but I'm willing to commit v1 if we're sure that we've exhausted all
other reasonable options.

Cheers
Miguel Ángel Moreno Feb. 11, 2024, 8:41 p.m. UTC | #10
On 2023-08-28 21:42, Liliana Marie Prikler wrote:

> Am Montag, dem 28.08.2023 um 07:46 +0400 schrieb Andrew Tropin:
>> On 2023-08-28 07:44, Andrew Tropin wrote:
>> 
>> > On 2023-08-26 18:10, Miguel Ángel Moreno wrote:
>> > > Thanks for the heads up.  It seems like the googletest package is
>> > > the culprit of this issue.  As I alluded to earlier, can we
>> > > proceed without the fdroidcl input in that case?  Given as it's
>> > > been almost 6 months since this issue was raised.
>> > 
>> > Seems as a reasonable option for me.
>> 
>> Added Liliana to Cc.
> I mean, if emacs-xyz doesn't work, you could try moving the package to
> (gnu packages android).  More importantly, the home-page and origin URL
> appear to be dead from my end, so they need updating :(
>
> As for the package itself, I'd prefer if it was working out of the box,
> but I'm willing to commit v1 if we're sure that we've exhausted all
> other reasonable options.
>
> Cheers

Hi,

Since the package still didn't build with v5, I sent a v6 with your
proposed solution, included it in (gnu packages android) and amended the
source and home-page.  It now builds fine for me, even with the froidcl
input.

-- 
Best regards,
Miguel Ángel Moreno
diff mbox series

Patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cad9819a5e..4dff0f85d9 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -163,6 +163,7 @@  (define-module (gnu packages emacs-xyz)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
   #:use-module (gnu packages admin)
+  #:use-module (gnu packages android)
   #:use-module (gnu packages aspell)
   #:use-module (gnu packages audio)
   #:use-module (gnu packages bash)
@@ -6288,6 +6289,36 @@  (define-public emacs-fd
 result.")
     (license license:gpl3+)))
 
+(define-public emacs-fdroid
+  (package
+    (name "emacs-fdroid")
+    (version "0.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.mianmoreno.com/fdroid.el")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1pmf9j9qcn71hjqdxqgdqf970irp75588nwnn234mapwqvx5v744"))))
+    (build-system emacs-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'patch-file-name
+                     (lambda* (#:key inputs #:allow-other-keys)
+                       (emacs-substitute-variables "fdroid.el"
+                         ("fdroid-program"
+                          (search-input-file inputs "/bin/fdroidcl"))))))))
+    (inputs (list fdroidcl))
+    (home-page "https://git.mianmoreno.com/fdroid.el")
+    (synopsis "Manage F-Droid packages from Emacs")
+    (description "This package is an Emacs interface to F-Droid.  Its purpose
+is to aid in the management of F-Droid packages for an Android device or an
+emulator inside the comfort of Emacs.")
+    (license license:gpl3+)))
+
 (define-public emacs-ripgrep
   (package
     (name "emacs-ripgrep")