Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484980 - app-backup/amanda-3.3.3 USE=minimal - chmod: cannot access ‘.../image//var/spool/amanda/DailySet1’: No such file or directory
Summary: app-backup/amanda-3.3.3 USE=minimal - chmod: cannot access ‘.../image//var/sp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-15 09:50 UTC by Martin Stockinger
Modified: 2014-01-11 19:10 UTC (History)
5 users (show)

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


Attachments
output of emerge --info (emerge_info.out,4.99 KB, text/plain)
2013-09-15 09:50 UTC, Martin Stockinger
Details
complet build log (amanda-3.3.3.log,478.95 KB, text/plain)
2013-09-15 09:51 UTC, Martin Stockinger
Details
patch file that solves the problem (amanda-3.3.3_minimal_problem.patch,655 bytes, patch)
2013-09-15 09:52 UTC, Martin Stockinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Stockinger 2013-09-15 09:50:42 UTC
Created attachment 358694 [details]
output of emerge --info

Installing amanda-3.3.3 with USE-flag *minimal* fails with error: 

chmod: cannot access ‘/var/tmp/portage/app-backup/amanda-3.3.3/image//var/spool/amanda/DailySet1’: No such file or directory
chmod: cannot access ‘/var/tmp/portage/app-backup/amanda-3.3.3/image//etc/amanda/DailySet1’: No such file or directory
 * ERROR: app-backup/amanda-3.3.3::gentoo failed (install phase):
 *   fperms failed


The problem is, that the directories ${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME} and /etc/amanda/${AMANDA_CONFIG_NAME} are not created, when USE-flag minimal is active.

I attach a patch for the ebuild that solves this problem.
Comment 1 Martin Stockinger 2013-09-15 09:51:34 UTC
Created attachment 358696 [details]
complet build log
Comment 2 Martin Stockinger 2013-09-15 09:52:15 UTC
Created attachment 358698 [details, diff]
patch file that solves the problem
Comment 3 Gordon Pritchard 2013-09-17 19:21:14 UTC
I got hit with this bug, but as a temporary work-around, I installed the whole Amanda (even though I only needed the minimal client).  During the installation of the full Amanda, the DailySet1 directories are indeed created, and the fperm failure does not occur as a result.

Thanks for the patch, Martin.  I'll keep an eye open for when it hits Portage.
Comment 4 Martin Stockinger 2013-11-27 17:12:52 UTC
@the maintainer of app-backup/amanda:

Please apply my patch in the next ebuild.

Thanks,
Martin
Comment 5 Stefan G. Weichinger 2013-11-28 08:33:53 UTC
successfully applied Martin's patch to my local ebuild.
Suggesting patch to be included in portage.
Comment 6 Gordon Pritchard 2014-01-09 18:48:04 UTC
This Bug persists in the most-recent 3.3.3-r1 version bump, which went stable a couple of weeks ago :-(  Can this patch be incorporated into a fresh version-bump, and make the journey into the Stable tree?

Thank-you,
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-01-11 19:10:27 UTC
InCVS.