Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602382 - app-backup/flexbackup - assorted patches
Summary: app-backup/flexbackup - assorted patches
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2016-12-11 21:09 UTC by isdtor
Modified: 2023-11-08 12:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Add support for xz compression (flexbackup-1.2.1-xz.patch,4.22 KB, patch)
2016-12-11 21:09 UTC, isdtor
Details | Diff
Add support for lzip compressoin (flexbackup-1.2.1-lzip.patch,4.27 KB, patch)
2016-12-11 21:11 UTC, isdtor
Details | Diff
Move find option to avoid warning (flexbackup-1.2.1-find-optionorder.patch,425 bytes, patch)
2016-12-11 21:13 UTC, isdtor
Details | Diff
Fix indentation (flexbackup-1.2.1-indentation.patch,2.46 KB, patch)
2016-12-11 21:15 UTC, isdtor
Details | Diff
Avoid code duplication (flexbackup-1.2.1-code-streamlining.patch,841 bytes, patch)
2016-12-11 21:19 UTC, isdtor
Details | Diff
Fix bugs in split_list function (flexbackup-1.2.1-split-list.patch,1.37 KB, patch)
2016-12-11 21:44 UTC, isdtor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description isdtor 2016-12-11 21:09:45 UTC
Created attachment 455918 [details, diff]
Add support for xz compression

Please consider the attached patches for inclusion. They build on each other, so if one is omitted, some rework for the later ones may be required. They are against version 1.2.1-r13.

#1 Adds support for xz compression. I've been using this for years.
Comment 1 isdtor 2016-12-11 21:11:07 UTC
Created attachment 455920 [details, diff]
Add support for lzip compressoin
Comment 2 isdtor 2016-12-11 21:13:31 UTC
Created attachment 455922 [details, diff]
Move find option to avoid warning

#3 Move mountpoint_flag up to avoid this warning:

find: warning: you have specified the -xdev option after a non-option argument - regex, but options are not positional (-xdev affects tests specified before it as well as those specified after it).  Please specify options before other arguments.
Comment 3 isdtor 2016-12-11 21:15:24 UTC
Created attachment 455924 [details, diff]
Fix indentation

#4 This patch simply fixes some indentation.
Comment 4 isdtor 2016-12-11 21:19:47 UTC
Created attachment 455926 [details, diff]
Avoid code duplication

#5 This is a rather cosmetic patch that avoids some code duplication in file_list_cmd(). It may also make this section slightly less readable. I don't feel strongly about if the maintainer decides it's not worth incuding.
Comment 5 isdtor 2016-12-11 21:44:30 UTC
Created attachment 455928 [details, diff]
Fix bugs in split_list function

#6 Rewrite split_list().

This is the big one here and worthy of discussion. I found that subtree pruning totally doesn't work as advertised in flexbackup.conf when there are path names with spaces in them. The current function gets the quoting all wrong for find's -regex option.

The replacement function splits the list into a temporary array and parses it character for character where the old version simply splits on single/double quotes if they exist. I ran some tests and found that even the "as long as all elements are quoted" condition did not work for me. Now, list elements are reassembled character by character and pushed into @array when whitespace is detected unless the $q flag indicates that the current whitespace is inside a quoted string, in which case reassembly continues. The beauty of the new implementation is that it fully preserves whitespace inside quoted strings as it doesn't just generally split on whitespace; that means even unlikely names with more than one space or other whitespace are being preserved correctly, such as "a  b", "a<tab>b" etc.
Comment 6 Hans de Graaff gentoo-dev Security 2016-12-29 07:28:11 UTC
I would rather not add these patches because it would mean that the gentoo version would become its own upstream. I would like to limit the patches to those that are absolutely needed to keep flexbackup working.

Perhaps you can discuss with the current upstream to become (co-)maintainer?
Comment 7 isdtor 2017-01-04 22:12:52 UTC
Is there an active upstream at all? The current release is from 2003.
Comment 8 Hans de Graaff gentoo-dev Security 2017-01-08 09:48:23 UTC
(In reply to isdtor from comment #7)
> Is there an active upstream at all? The current release is from 2003.

As far as I'm aware there is no active upstream, but you could contact the original author and/or create a new fork for it.
Comment 9 John R. Graham gentoo-dev 2017-01-12 21:31:31 UTC
I executed SourceForge's process to gain write access to an abandoned project and have now become upstream. My first goal is to port in the Gentoo patches, many of which I developed, but I'll take a look at these features as well.
Comment 10 Larry the Git Cow gentoo-dev 2023-10-08 12:22:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5539aa8161e12a6cb6386545391295a53ac19099

commit 5539aa8161e12a6cb6386545391295a53ac19099
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-10-08 12:21:56 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-10-08 12:21:56 +0000

    package.mask: Last rite app-backup/flexbackup
    
    Bug: https://bugs.gentoo.org/602382
    Signed-off-by: David Seifert <soap@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2023-11-08 12:44:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6698f2a3d5b1414a28a496dd7479447fb3cce2ec

commit 6698f2a3d5b1414a28a496dd7479447fb3cce2ec
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2023-11-08 12:42:52 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-11-08 12:42:59 +0000

    app-backup/flexbackup: treeclean
    
    Closes: https://bugs.gentoo.org/602382
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 app-backup/flexbackup/Manifest                     |   1 -
 .../files/flexbackup-1.2.1-afio-large-files.patch  |  13 -
 .../flexbackup/files/flexbackup-1.2.1-bash.patch   |  18 --
 .../flexbackup/files/flexbackup-1.2.1-lzma.patch   | 114 --------
 .../files/flexbackup-1.2.1-mbuffer-switch.patch    | 130 ---------
 ...ackup-1.2.1-perl-5.12-deprecation-warning.patch |  29 --
 ...ackup-1.2.1-perl-5.16-deprecation-warning.patch |  11 -
 .../flexbackup/files/flexbackup-1.2.1-prune.patch  | 136 ----------
 .../files/flexbackup-1.2.1-quieten.patch           |  13 -
 .../files/flexbackup-1.2.1-remote-bufftest.patch   |  59 ----
 .../files/flexbackup-1.2.1-secure-tempfile.patch   |  72 -----
 .../flexbackup-1.2.1-spaces-in-filenames.patch     | 296 ---------------------
 .../files/flexbackup-1.2.1-tar-1.29.patch          |  15 --
 app-backup/flexbackup/flexbackup-1.2.1-r13.ebuild  |  89 -------
 app-backup/flexbackup/metadata.xml                 |  10 -
 profiles/package.mask                              |   6 -
 16 files changed, 1012 deletions(-)