Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382667 - >=media-video/pitivi-0.14.0: src_install installs files in ${D}/.././locale/
Summary: >=media-video/pitivi-0.14.0: src_install installs files in ${D}/.././locale/
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 02:29 UTC by Dominique Michel
Modified: 2015-01-04 23:13 UTC (History)
2 users (show)

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


Attachments
emerge --info =media-video/pitivi-0.14.1 (emerge.info,16.76 KB, text/plain)
2011-09-12 02:31 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2011-09-12 02:29:13 UTC
When merging pitivi, the merge is successful. That imply that all the files in /var/tmp/portage/media-video/pitivi* must be removed as well than the pitivi directory. But the locale files are left behind at /var/tmp/portage/media-video/pitivi*/locale/* with pitivi-0.14.1 & 0.14.0

Reproducible: Always

Steps to Reproduce:
1. emerge pitivi
2.
3.
Actual Results:  
Merge OK, but files are left behind by portage in /var/tmp/portage/media-video/pitivi*

Expected Results:  
No file must be left behind
Comment 1 Dominique Michel 2011-09-12 02:31:31 UTC
Created attachment 286197 [details]
emerge --info =media-video/pitivi-0.14.1
Comment 2 Zac Medico gentoo-dev 2011-09-13 16:25:57 UTC
The src_install output shows it installing a bunch of files like this via make:

installing ar.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/ar/LC_MESSAGES/pitivi.mo
installing ast.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/ast/LC_MESSAGES/pitivi.mo
installing bg.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/bg/LC_MESSAGES/pitivi.mo
installing ca.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/ca/LC_MESSAGES/pitivi.mo

It should be fixed so that it doesn't install above ${D} (the image directory).
Comment 3 ta2002 2012-01-11 11:43:50 UTC
I don't know if this should be a separate bug (found this bug when searching), but pitivi is not respecting LINGUAS (it is installing messages for all locales).

I found this in the build log:

make[2]: Entering directory `/var/tmp/portage/media-video/pitivi-0.14.1/work/pitivi-0.14.1/po'
/bin/sh /var/tmp/portage/media-video/pitivi-0.14.1/work/pitivi-0.14.1/install-sh -d /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale
if test -n "ar ast bg ca ca@valencia cs da de dz el en_GB eo es et fi fr gl gu he hu it ja ko ku lv mr nb nds nl oc pa pl pt pt_BR ro ru sk sl sr sr@latin sv tr uk vi zh_CN zh_HK z
h_TW"; then \
  linguas="ar ast bg ca ca@valencia cs da de dz el en_GB eo es et fi fr gl gu he hu it ja ko ku lv mr nb nds nl oc pa pl pt pt_BR ro ru sk sl sr sr@latin sv tr uk vi zh_CN zh_HK zh
_TW"; \
else \
  linguas=""; \
fi; \
for lang in $linguas; do \
  dir=/var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/$lang/LC_MESSAGES; \
  /bin/sh /var/tmp/portage/media-video/pitivi-0.14.1/work/pitivi-0.14.1/install-sh -d $dir; \
  if test -r $lang.gmo; then \
    /usr/bin/install -c -m 644 $lang.gmo $dir/pitivi.mo; \
    echo "installing $lang.gmo as $dir/pitivi.mo"; \
  else \
    /usr/bin/install -c -m 644 ./$lang.gmo $dir/pitivi.mo; \
    echo "installing ./$lang.gmo as" \
     "$dir/pitivi.mo"; \
  fi; \
  if test -r $lang.gmo.m; then \
    /usr/bin/install -c -m 644 $lang.gmo.m $dir/pitivi.mo.m; \
    echo "installing $lang.gmo.m as $dir/pitivi.mo.m"; \
  else \
    if test -r ./$lang.gmo.m ; then \
      /usr/bin/install -c -m 644 ./$lang.gmo.m \
    $dir/pitivi.mo.m; \
      echo "installing ./$lang.gmo.m as" \
       "$dir/pitivi.mo.m"; \
    else \
      true; \
    fi; \
  fi; \
done
installing ar.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/ar/LC_MESSAGES/pitivi.mo
installing ast.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/ast/LC_MESSAGES/pitivi.mo
installing bg.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/bg/LC_MESSAGES/pitivi.mo
installing ca.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/ca/LC_MESSAGES/pitivi.mo

[...]

installing zh_HK.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/zh_HK/LC_MESSAGES/pitivi.mo
installing zh_TW.gmo as /var/tmp/portage/media-video/pitivi-0.14.1/image/.././locale/zh_TW/LC_MESSAGES/pitivi.mo
make[2]: Leaving directory `/var/tmp/portage/media-video/pitivi-0.14.1/work/pitivi-0.14.1/po'
make[2]: Entering directory `/var/tmp/portage/media-video/pitivi-0.14.1/work/pitivi-0.14.1'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/man/man1" || /bin/mkdir -p "/var/tmp/portage/media-video/pitivi-0.14.1/image//usr/share/man/man1"
test -z "/usr/share/mime/packages" || /bin/mkdir -p "/var/tmp/portage/media-video/pitivi-0.14.1/image//usr/share/mime/packages"
 /usr/bin/install -c -m 644 pitivi.xml '/var/tmp/portage/media-video/pitivi-0.14.1/image//usr/share/mime/packages'
 /usr/bin/install -c -m 644 docs/pitivi.1 '/var/tmp/portage/media-video/pitivi-0.14.1/image//usr/share/man/man1'
make[2]: Leaving directory `/var/tmp/portage/media-video/pitivi-0.14.1/work/pitivi-0.14.1'
make[1]: Leaving directory `/var/tmp/portage/media-video/pitivi-0.14.1/work/pitivi-0.14.1'
 * Converting shebang in '/var/tmp/portage/media-video/pitivi-0.14.1/image/usr/bin/pitivi'
>>> Completed installing pitivi-0.14.1 into /var/tmp/portage/media-video/pitivi-0.14.1/image/
Comment 4 ta2002 2013-03-12 16:01:28 UTC
Both problems (leaving files behind and not respecting LINGUAS) still exist in pitivi-0.15.2.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-01-04 23:13:38 UTC
Please check with 0.93 and 0.14 and 0.15 where removed a while ago.