New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parts 'atomicparsley' and 'get-iplayer' have the following file paths in common which have different contents: README.md
#1
Comments
atomicparsley should use the atomicparsley:
plugin: autotools
source: https://bitbucket.org/wez/atomicparsley
source-type: hg
source-commit: 9183fff you probably want to also tell it where to install within the snap: atomicparsley:
plugin: autotools
source: https://bitbucket.org/wez/atomicparsley
source-type: hg
source-commit: 9183fff
configflags:
- --prefix=/usr |
@diddledan Why |
purely convention |
@diddledan your suggestion didn't fix my bug though, unfortunately :( |
As I can't fork this repository because of github stupidity, here is a patch file which works for me From d5b83892f2b8acdd766e722575d42f560c584131 Mon Sep 17 00:00:00 2001
From: Daniel Llewellyn <daniel@bowlhat.net>
Date: Mon, 28 Aug 2017 18:20:30 +0100
Subject: [PATCH] fix #1
---
snap/run-cli.pl | 3 ---
snap/run-server.pl | 3 ---
snap/snapcraft.yaml | 27 ++++++++++++---------------
3 files changed, 12 insertions(+), 21 deletions(-)
delete mode 100644 snap/run-cli.pl
delete mode 100644 snap/run-server.pl
diff --git a/snap/run-cli.pl b/snap/run-cli.pl
deleted file mode 100644
index 0a36fa3..0000000
--- a/snap/run-cli.pl
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env perl
-
-system("$ENV{SNAP}/usr/bin/perl", map({ "-I$ENV{SNAP}/$_" } @INC), "$ENV{SNAP}/get_iplayer", @ARGV)
diff --git a/snap/run-server.pl b/snap/run-server.pl
deleted file mode 100644
index fe5b93d..0000000
--- a/snap/run-server.pl
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env perl
-
-system("$ENV{SNAP}/usr/bin/perl", map({ "-I$ENV{SNAP}/$_" } @INC), "$ENV{SNAP}/get_iplayer.cgi", qw(--listen 127.0.0.1 --port 1935 --getiplayer), "$ENV{SNAP}/get_iplayer")
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index a0dc47c..43ae452 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,5 +1,5 @@
name: get-iplayer-ads20000
-version: 3.01
+version: '3.01'
summary: A utility for downloading TV and radio from BBC iPlayer
description: BBC iPlayer Indexing Tool and PVR
confinement: strict
@@ -7,18 +7,18 @@ grade: stable
apps:
get-iplayer:
- command: run-cli.pl
+ command: usr/bin/get_iplayer
plugs:
- network
server:
- command: run-server.pl
+ command: usr/bin/get_iplayer --listen 127.0.0.1 --port 1935 --getiplayer
daemon: simple
parts:
get-iplayer:
+ plugin: nil
source: https://github.com/get-iplayer/get_iplayer.git
source-tag: v3.01
- plugin: dump
stage-packages:
- perl-base
- libwww-perl
@@ -30,18 +30,15 @@ parts:
after:
- desktop-glib-only
- ffmpeg
- install:
- mv README.md $SNAPCRAFT_PART_INSTALL/README-get-iplayer.md
+ install: |
+ mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin
+ cp get_iplayer $SNAPCRAFT_PART_INSTALL/usr/bin/
+ chmod +x $SNAPCRAFT_PART_INSTALL/usr/bin/get_iplayer
+
atomicparsley:
- plugin: dump
+ plugin: autotools
source: https://bitbucket.org/wez/atomicparsley
source-type: hg
source-commit: 9183fff
- install:
- mv README.md $SNAPCRAFT_PART_INSTALL/README-atomicparsley.md
- launcher:
- plugin: dump
- source: .
- organize:
- run-cli.pl: scripts/run-cli.pl
- run-server.pl: scripts/run-server.pl
+ configflags:
+ - --prefix=/usr
--
2.11.0 |
Uh I'm a bit of a novice... could you just paste your |
I removed scripts/perl-launch: #!/bin/bash
if [ "$SNAP_ARCH" == "amd64" ]; then
ARCH="x86_64-linux-gnu"
elif [ "$SNAP_ARCH" == "armhf" ]; then
ARCH="arm-linux-gnueabihf"
elif [ "$SNAP_ARCH" == "arm64" ]; then
ARCH="aarch64-linux-gnu"
else
ARCH="$SNAP_ARCH-linux-gnu"
fi
PERL5LIB=$SNAP/etc/perl
PERL5LIB=$PERL5LIB:$SNAP/usr/local/lib/$ARCH/perl/5.22.1
PERL5LIB=$PERL5LIB:$SNAP/usr/lib/$ARCH/perl5/5.22
PERL5LIB=$PERL5LIB:$SNAP/usr/share/perl5
PERL5LIB=$PERL5LIB:$SNAP/usr/lib/$ARCH/perl/5.22
PERL5LIB=$PERL5LIB:$SNAP/usr/share/perl/5.22
PERL5LIB=$PERL5LIB:$SNAP/usr/lib/$ARCH/perl-base
export PERL5LIB
exec $SNAP/usr/bin/perl "$@" snap/snapcraft.yaml name: get-iplayer-ads20000
version: '3.01'
summary: A utility for downloading TV and radio from BBC iPlayer
description: BBC iPlayer Indexing Tool and PVR
confinement: strict
grade: stable
apps:
get-iplayer:
command: perl-launch $SNAP/usr/bin/get_iplayer
plugs:
- network
server:
command: perl-launch $SNAP/usr/bin/get_iplayer --listen 127.0.0.1 --port 1935 --getiplayer
daemon: simple
parts:
perl-launch:
plugin: dump
source: scripts
prepare: |
chmod +x perl-launch
organize:
perl-launch: bin/perl-launch
get-iplayer:
plugin: nil
source: https://github.com/get-iplayer/get_iplayer.git
source-tag: v3.01
stage-packages:
- perl-base
- libwww-perl
- liblwp-protocol-https-perl
- libmojolicious-perl
- libxml-simple-perl
- libxml-libxml-perl
- libcgi-pm-perl
after:
- desktop-glib-only
- ffmpeg
install: |
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin
cp get_iplayer $SNAPCRAFT_PART_INSTALL/usr/bin/
chmod +x $SNAPCRAFT_PART_INSTALL/usr/bin/get_iplayer
atomicparsley:
plugin: autotools
source: https://bitbucket.org/wez/atomicparsley
source-type: hg
source-commit: 9183fff
configflags:
- --prefix=/usr |
I get the following with
with your setup and after having used |
Build on build.snapcraft.io fails with the error in the bug title.
The text was updated successfully, but these errors were encountered: