Subject: [bug#28398] Xfburn

From: ng0 <[email-masked]>
Date: Fri, 29 Dec 2017 16:39:42 +0000

Thomas Schmitt transcribed 2.0K bytes:
> Hi,
> 
> the patches look good to me (which does not have to mean much),
> About the Xfburn 
> 
> ng0 wrote:
> > 1. No Drive found (thanks Cpt. Obvious, I have no optical drive here).
> 
> You may at least try creating an ISO image file instead of burning.
> Choose "New Data Composition", click the "+ Add" button, choose some
> file by single click (double click crashes my local Xfburn), click
> the "Add" button at the lower left, click "Proceed to Burn" at the
> lower left, check "Only create ISO" and choose a file name for the ISO
> image file.
> 
> There is a software emulator for some combinations of optical drives
> and media types:
>   http://cdemu.sourceforge.net/about
> It is quite a poor surrogate to a real DVD or BD drive, but at least
> the current bug carer of K3B uses it with some success.

I didn't use cdemu - I would need to package that - but I mounted the data
collection type .iso I recorded into an ISO file. From what I can tell, it works.

I have issues with the icons, but that's just my personal WM/DM (which is pretty sminimal)
and can be addressed later on (this is trivial and you just need the right icon set).

I'll attach the latest patches.
Let's just merge this now and address the rest later, okay?
I have other issues I need to work on, and from where I stand this
is done - all the basic issues have been fixed.
I appreciate the help Thomas, thanks for what you have done. It's
extraordinary, we usually don't get it like this.

Thanks!
> 
> > 2. More concerning:
> >    Failed to initialize gstreamer transcoder: An error occurred setting
> > gstreamer up for transcoding
> >   (falling back to basic implementation)
> 
> In
>   https://forums.bunsenlabs.org/viewtopic.php?id=102
> i see the advise to do
>   sudo apt-get install --no-install-recommends gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly
> and a comment saying that installing of "qtstreamer-plugins,
> gstreamer1.0-libav, libgstreamer-perl, ruby-clutter-gstreamer" did the
> trick, too.
> 
> So it seems to be about finding the packages which contain the desired
> software. Looking at the dependencies list of
>   https://packages.debian.org/oldstable/gstreamer0.10-plugins-good
>   https://packages.debian.org/oldstable/gstreamer0.10-plugins-ugly
> i'd say that this might become a lengthy adventure, if not these lines
> in 0003-gnu-Add-xfburn.patch already pull in most of it:
> +       ("gstreamer" ,gstreamer)
> +       ("gst-plugins-base" ,gst-plugins-base)
> 
> gstreamer should not be necessary for the tasks of "New Data Composition",
> "Burn Image", and "Blank Disc".
> I expect no need for it in the task of "Audio CD" if the input files are
> already converted to .wav with the properties "uncompressed headerless PCM,
> 44100 Hz, 16 bit, stereo".
> 
> 
> Have a nice day :)
> 
> Thomas
> 
> 

-- 
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys
  WWW: https://n0.is
From 2292f78c47219b50f0827b533331e1ab3648735a Mon Sep 17 00:00:00 2001
From: ng0 <[email-masked]>
Date: Sat, 9 Sep 2017 13:47:31 +0000
Subject: [PATCH 1/4] gnu: Add libburn.

* gnu/packages/cdrom.scm (libburn): New variable.
---
 gnu/packages/cdrom.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 523158d55..f85a76891 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017 John Darrington <[email-masked]>
 ;;; Copyright © 2017 Thomas Danckaert <[email-masked]>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <[email-masked]>
+;;; Copyright © 2017 ng0 <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -694,3 +695,25 @@ distributed with CD images and are used to describe how tracks are
 laid out on the image.")
     (home-page "https://www.gnu.org/software/ccd2cue/")
     (license gpl3+)))
+
+(define-public libburn
+  (package
+    (name "libburn")
+    (version "1.4.6")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "http://files.libburnia-project.org/releases/"
+                                 "libburn-" version ".tar.gz"))
+             (sha256
+              (base32
+               "0wbh49s3az3sfpai09z1zdgynq7wnwrk31v5589033274nmzldlx"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://dev.lovelyhq.com/libburnia/libburn")
+    (synopsis "Library for reading and writing optical discs")
+    (description
+     "Libburn is a library for reading and writing optical discs.
+Supported media are: CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL,
+DVD-RW, DVD-R, DVD-R/DL, BD-R, and BD-RE.")
+    (license gpl2)))
-- 
2.15.1

From d1c0e9f52b76f5871087bb6f22a43b78dffb84cb Mon Sep 17 00:00:00 2001
From: ng0 <[email-masked]>
Date: Sat, 9 Sep 2017 13:59:39 +0000
Subject: [PATCH 2/4] gnu: Add libisofs.

* gnu/packages/cdrom.scm (libisofs): New variable.
---
 gnu/packages/cdrom.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index f85a76891..c1adf174b 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -717,3 +717,32 @@ laid out on the image.")
 Supported media are: CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL,
 DVD-RW, DVD-R, DVD-R/DL, BD-R, and BD-RE.")
     (license gpl2)))
+
+(define-public libisofs
+  (package
+    (name "libisofs")
+    (version "1.4.6")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "http://files.libburnia-project.org/releases/"
+                                 "libisofs-" version ".tar.gz"))
+             (sha256
+              (base32
+               "02m5g6lbmmkh2xc5xzq5zaf3ma6v31gls66aj886b3cq9qw0paql"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("zlib" ,zlib)
+       ("acl" ,acl)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://dev.lovelyhq.com/libburnia/libisofs")
+    (synopsis "Library to create ISO 9660 images")
+    (description
+     "Libisofs creates ISO 9660 (also known as ECMA-119) filesystem images
+which can either be written to POSIX file objects or handed over to
+libburn for being written directly to optical media.
+It can read metadata of ISO 9660 filesystems, manipulate them, and use them
+to produce new complete filesystem images or add-on images to be appended
+to the read filesystem image.
+Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
+    (license gpl2+)))
-- 
2.15.1

From 359a219645aebdf3c16dd7086678f0856ad5ff6c Mon Sep 17 00:00:00 2001
From: ng0 <[email-masked]>
Date: Sat, 9 Sep 2017 14:11:36 +0000
Subject: [PATCH 3/4] gnu: Add xfburn.

* gnu/packages/xfce.scm (xfburn): New variable.
---
 gnu/packages/xfce.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index bbe6ab454..401409ab5 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2016 Kei Kebreau <[email-masked]>
 ;;; Copyright © 2017 Ricardo Wurmus <[email-masked]>
 ;;; Copyright © 2017 Petter <[email-masked]>
+;;; Copyright © 2017 ng0 <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32,6 +33,7 @@
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
   #:use-module (gnu packages calendar)
+  #:use-module (gnu packages cdrom)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gtk)
@@ -905,3 +907,39 @@ bubble in a standard way can implicitly make use of xfce4-notifyd to do so by
 sending standard messages over D-Bus using the
 @code{org.freedesktop.Notifications} interface.")
     (license gpl2)))
+
+(define-public xfburn
+  (package
+    (name "xfburn")
+    (version "0.5.4")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://archive.xfce.org/src/apps/xfburn/"
+                                  (version-major+minor version) "/"
+                                  name "-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "1xn1kwxa3dl5r9bfj90a5322ynkwbn6k5v9b3a3pbr3a23zm604s"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("exo" ,exo)
+       ("gstreamer" ,gstreamer)
+       ("gst-plugins-base" ,gst-plugins-base)
+       ("gst-plugins-good" ,gst-plugins-good)
+       ("gst-plugins-ugly" ,gst-plugins-ugly)
+       ("glib" ,glib)
+       ("gtk+" ,gtk+-2)
+       ("libburn" ,libburn)
+       ("libisofs" ,libisofs)
+       ("libxfce4ui" ,libxfce4ui)))
+    (home-page "https://goodies.xfce.org/projects/applications/xfburn")
+    (synopsis "GTK+ based CD, DVD and Blu-ray burning application")
+    (description
+     "Xfburn is a simple CD, DVD, and Blu-ray burning tool based on
+the libburnia libraries.  It can blank CD/DVD/BD(-RW)s, burn and
+create iso images, audio CDs, as well as burn personal compositions
+of data to either CD/DVD/BD.")
+    (license gpl2+)))
-- 
2.15.1

From 1faecff1a27c8c82641ef146112f1b8a4d3898d5 Mon Sep 17 00:00:00 2001
From: ng0 <[email-masked]>
Date: Mon, 11 Dec 2017 09:29:40 +0000
Subject: [PATCH 4/4] gnu: xorriso: Remove 'bzip2' and 'libcdio' from inputs.

Thomas Schmitt suggested in bug#28398 to apply these changes.

* gnu/packages/cdrom.scm (xorriso)[inputs]: Remove 'bzip2' and 'libcdio'.
---
 gnu/packages/cdrom.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index c1adf174b..228af1651 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -161,9 +161,7 @@ libcdio.")
     (inputs
      `(("acl" ,acl)
        ("readline" ,readline)
-       ("bzip2" ,bzip2)
-       ("zlib" ,zlib)
-       ("libcdio" ,libcdio)))
+       ("zlib" ,zlib)))
     (home-page "https://www.gnu.org/software/xorriso/")
     (synopsis "Create, manipulate, burn ISO-9660 file systems")
     (description
-- 
2.15.1