Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678138 - www-apps/phpBB-3.1.10-r1: rm: cannot remove ...image/usr/share/doc/phpBB-3.1.10-r1/html.ecompress: Permission denied
Summary: www-apps/phpBB-3.1.10-r1: rm: cannot remove ...image/usr/share/doc/phpBB-3.1....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-16 09:55 UTC by segmentation fault
Modified: 2019-06-24 21:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,3.14 KB, text/x-log)
2019-02-16 13:45 UTC, segmentation fault
Details

Note You need to log in before you can comment on or make changes to this bug.
Description segmentation fault 2019-02-16 09:55:14 UTC
Trying to install phpBB 3.1.10, I get:

(will attach complete build.log, here only the relevant excerpt):

>>> Completed installing phpBB-3.1.10-r1 into /zram/portage/www-apps/phpBB-3.1.10-r1/image/

 ^[[32;01m*^[[0m Final size of build directory: 19040 KiB (18.5 MiB)
 ^[[32;01m*^[[0m Final size of installed tree:  19124 KiB (18.6 MiB)

 ^[[31;01m*^[[0m ^[[31;01mACCESS DENIED^[[0m:  unlinkat:     /zram/portage/www-apps/phpBB-3.1.10-r1/image/usr/share/doc/phpBB-3.1.10-r1/html.ecompress
rm: cannot remove '/zram/portage/www-apps/phpBB-3.1.10-r1/image/usr/share/doc/phpBB-3.1.10-r1/html.ecompress': Permission denied
 ^[[31;01m*^[[0m ERROR: www-apps/phpBB-3.1.10-r1::gentoo failed:


PORTAGE_TMPDIR is '/zram' here, which is a compressed RAM disk managed transparently through the zram module - but I tried it with a PORTAGE_TMPDIR on a SSD and the result was the same. 

BTW, it does not seem to be an access problem - the file in question simply does not exist.


Reason
------

The ebuild/install script obviously tries to remove

$PORTAGE_TMPDIR/portage/www-apps/phpBB-3.1.10-r1/image/usr/share/doc/phpBB-3.1.10-r1/html.ecompress

which does not exist:

ll /zram/portage/www-apps/phpBB-3.1.10-r1/image/usr/share/doc/phpBB-3.1.10-r1/html.ecompress
ls: cannot access '/zram/portage/www-apps/phpBB-3.1.10-r1/image/usr/share/doc/phpBB-3.1.10-r1/html.ecompress': No such file or directory

It is not even in the tarball:

tar -tjf /usr/portage/distfiles/phpBB-3.1.10.tar.bz2 | grep html.ecompress

returns no output.

However, I could not find the place in the ebuild where this happens...
Comment 1 segmentation fault 2019-02-16 09:59:59 UTC
Oops...cannot create attachments - I get "Access to attachment.cgi denied" when I press the upload button (file selection works).
Comment 2 segmentation fault 2019-02-16 13:45:49 UTC
Created attachment 565548 [details]
build.log
Comment 3 segmentation fault 2019-02-16 13:48:01 UTC
(In reply to segmentation fault from comment #1)
> Oops...cannot create attachments - I get "Access to attachment.cgi denied"
> when I press the upload button (file selection works).

This was because the file was created by root and was only readable by root. Changing read permissions to 'readable by all' with (as root)

chmod ugoa+r /zram/portage/www-apps/phpBB-3.1.10-r1/temp/build.log

solved the problem. See attachment.
Comment 4 Larry the Git Cow gentoo-dev 2019-06-24 21:54:55 UTC
The bug has been closed via the following commit(s):

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

commit fbbdcf08e6868b86304672bc9986a5cfc71d70c2
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2019-06-24 21:54:24 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2019-06-24 21:54:24 +0000

    www-apps/phpBB: Make doc link relative to dodge possible Portage bug
    
    Closes: https://bugs.gentoo.org/678138
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 www-apps/phpBB/phpBB-3.2.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)