* [bug#30677] [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path.
@ 2018-03-02 13:59 Alex Vong
2018-03-02 14:03 ` Alex Vong
2018-03-07 10:24 ` Ludovic Courtès
0 siblings, 2 replies; 4+ messages in thread
From: Alex Vong @ 2018-03-02 13:59 UTC (permalink / raw)
To: 30677; +Cc: alexvong1995
[-- Attachment #1.1: Type: text/plain, Size: 61 bytes --]
Hello,
This patch should fix <https://bugs.gnu.org/30641>.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-youtube-viewer-Add-out-lib-perl5-site_perl-to-se.patch --]
[-- Type: text/x-diff, Size: 2294 bytes --]
From 2ad112584b40754fadb8269b7d5880500abe0050 Mon Sep 17 00:00:00 2001
From: Alex Vong <alexvong1995@gmail.com>
Date: Fri, 2 Mar 2018 21:22:59 +0800
Subject: [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to
search path.
Fixes <https://bugs.gnu.org/30671>.
Reported by Ricardo Wurmus <rekado@elephly.net>.
* gnu/packages/video.scm (youtube-viewer)[arguments]: In 'wrap-program'
phase, add '$out/lib/perl5/site_perl/' to search path.
---
gnu/packages/video.scm | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 8190b0ffc..74dd290a3 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1344,16 +1344,18 @@ audio, images) from the Web. It can use either mpv or vlc for playback.")
(guix build utils)
(srfi srfi-26))
#:module-build-flags '("--gtk")
- #:phases (modify-phases %standard-phases
- (add-after 'install 'wrap-program
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((bin-dir (string-append (assoc-ref outputs "out")
- "/bin/"))
- (perl-path (getenv "PERL5LIB")))
- (for-each (cut wrap-program <>
- `("PERL5LIB" ":" prefix (,perl-path)))
- (find-files bin-dir))
- #t))))))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'wrap-program
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin-dir (string-append out "/bin/"))
+ (site-dir (string-append out "/lib/perl5/site_perl/"))
+ (lib-path (getenv "PERL5LIB")))
+ (for-each (cut wrap-program <>
+ `("PERL5LIB" ":" prefix (,lib-path ,site-dir)))
+ (find-files bin-dir))
+ #t))))))
(synopsis
"Lightweight application for searching and streaming videos from YouTube")
(description
--
2.16.2
[-- Attachment #1.3: Type: text/plain, Size: 14 bytes --]
Cheers,
Alex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#30677] [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path.
2018-03-02 13:59 [bug#30677] [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path Alex Vong
@ 2018-03-02 14:03 ` Alex Vong
2018-03-02 14:08 ` Alex Vong
2018-03-07 10:24 ` Ludovic Courtès
1 sibling, 1 reply; 4+ messages in thread
From: Alex Vong @ 2018-03-02 14:03 UTC (permalink / raw)
To: 30677; +Cc: alexvong1995
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
Alex Vong <alexvong1995@gmail.com> writes:
> Hello,
>
> This patch should fix <https://bugs.gnu.org/30641>.
>
Sorry, I mean <https://debbugs.gnu.org/30677>.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#30677] [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path.
2018-03-02 14:03 ` Alex Vong
@ 2018-03-02 14:08 ` Alex Vong
0 siblings, 0 replies; 4+ messages in thread
From: Alex Vong @ 2018-03-02 14:08 UTC (permalink / raw)
To: 30677; +Cc: alexvong1995
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
Alex Vong <alexvong1995@gmail.com> writes:
> Alex Vong <alexvong1995@gmail.com> writes:
>
>> Hello,
>>
>> This patch should fix <https://bugs.gnu.org/30641>.
>>
> Sorry, I mean <https://debbugs.gnu.org/30677>.
In fact, it should be <https://debbugs.gnu.org/30671>.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#30677] [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path.
2018-03-02 13:59 [bug#30677] [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path Alex Vong
2018-03-02 14:03 ` Alex Vong
@ 2018-03-07 10:24 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-03-07 10:24 UTC (permalink / raw)
To: Alex Vong; +Cc: 30677
Alex Vong <alexvong1995@gmail.com> skribis:
> From 2ad112584b40754fadb8269b7d5880500abe0050 Mon Sep 17 00:00:00 2001
> From: Alex Vong <alexvong1995@gmail.com>
> Date: Fri, 2 Mar 2018 21:22:59 +0800
> Subject: [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to
> search path.
>
> Fixes <https://bugs.gnu.org/30671>.
> Reported by Ricardo Wurmus <rekado@elephly.net>.
>
> * gnu/packages/video.scm (youtube-viewer)[arguments]: In 'wrap-program'
> phase, add '$out/lib/perl5/site_perl/' to search path.
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-07 10:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-02 13:59 [bug#30677] [PATCH] gnu: youtube-viewer: Add '$out/lib/perl5/site_perl/' to search path Alex Vong
2018-03-02 14:03 ` Alex Vong
2018-03-02 14:08 ` Alex Vong
2018-03-07 10:24 ` Ludovic Courtès
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.