Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 145357

Summary: webapps.eclass: server-owned -R fails with symbolic links
Product: Gentoo Linux Reporter: ml
Component: EclassesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Initial ebuild for mtpcenter

Description ml 2006-08-28 07:33:40 UTC
The 'server-owned -R' command fails in an Ebuild in case the directory contains symbolic links.

------------------------------------------- snip -------------------------------------------

 * ebuild fault: file '/usr/share/webapps/linux_mtpcenter/1.5_beta1/htdocs/vdr/movie' not found
 * Please report this as a bug at http://bugs.gentoo.org/

!!! ERROR: media-video/linux_mtpcenter-1.5_beta1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_install
  ebuild.sh, line 1013:   Called src_install
  linux_mtpcenter-1.5_beta1.ebuild, line 55:   Called webapp_serverowned '-R' '/usr/share/webapps/linux_mtpcenter/1.5_beta1/htdocs'
  webapp.eclass, line 214:   Called webapp_checkfileexists '/usr/share/webapps/linux_mtpcenter/1.5_beta1/htdocs/vdr/movie' '/var/tmp/portage/linux_mtpcenter-1.5_beta1/image/'
  webapp.eclass, line 81:   Called die

!!! ebuild fault: file '/usr/share/webapps/linux_mtpcenter/1.5_beta1/htdocs/vdr/movie' not found
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'

------------------------------------------------ snap ------------------------------------------------
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2006-08-28 07:50:45 UTC
Please attach your ebuild
Comment 2 ml 2006-08-28 12:19:07 UTC
Created attachment 95315 [details]
Initial ebuild for mtpcenter
Comment 3 ml 2006-08-28 12:21:59 UTC
(In reply to comment #2)
> Created an attachment (id=95315) [edit]
> Initial ebuild for mtpcenter
> 

The attached ebuild is working, but if you drop the clean/rm statements or move the dosyms before the server_owned-statement server_owned fails because of symbolic links in ${MY_HTDOCSDIR}
Comment 4 Renat Lumpau (RETIRED) gentoo-dev 2007-01-02 13:49:48 UTC
1) tell upstream to stop shipping tarballs with broken symlinks to device files
2) don't use -R