Bug 27252 - Makefile.am: ensure that update-mime-info doesn't get called before it's installed
Summary: Makefile.am: ensure that update-mime-info doesn't get called before it's inst...
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-03-22 14:08 UTC by Adrian Bunk
Modified: 2010-03-23 04:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Makefile.am: ensure that update-mime-info doesn't get called before it's installed (2.34 KB, patch)
2010-03-22 14:08 UTC, Adrian Bunk
Details | Splinter Review

Description Adrian Bunk 2010-03-22 14:08:24 UTC
Created attachment 34333 [details] [review]
Makefile.am: ensure that update-mime-info doesn't get called before it's installed

This fixes the following error on parallel installs:

<--  snip  -->

make install 
Makefile:939: warning: overriding commands for target `all'
Makefile:279: warning: ignoring old commands for target `all'
Making install in .
Makefile:939: warning: overriding commands for target `all'
Makefile:279: warning: ignoring old commands for target `all'
Makefile:939: warning: overriding commands for target `all'
Makefile:279: warning: ignoring old commands for target `all'
test -z "/usr/share/man/man1" || mkdir -p -- "/usr/share/man/man1"
test -z "/usr/share/mime/packages" || mkdir -p -- "/usr/share/mime/packages"
test -z "/usr/share/pkgconfig" || mkdir -p -- "/usr/share/pkgconfig"
 /scratchbox/tools/bin/install -c -m 644 'freedesktop.org.xml' '/usr/share/mime/packages/freedesktop.org.xml'
 /scratchbox/tools/bin/install -c -m 644 'shared-mime-info.pc' '/usr/share/pkgconfig/shared-mime-info.pc'
 /scratchbox/tools/bin/install -c -m 644 './update-mime-database.1' '/usr/share/man/man1/update-mime-database.1'
test -z "/usr/bin" || mkdir -p -- "/usr/bin"
make  install-data-hook
Makefile:939: warning: overriding commands for target `all'
Makefile:279: warning: ignoring old commands for target `all'
"/usr/bin/update-mime-database" -V "/usr/share/mime"
/scratchbox/tools/bin/sh: /usr/bin/update-mime-database: No such file or directory
make[4]: *** [install-data-hook] Error 127
make[3]: *** [install-data-am] Error 2
make[3]: *** Waiting for unfinished jobs....
  /scratchbox/tools/bin/install -c 'update-mime-database' '/usr/bin/update-mime-database'
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [__matrix_install] Error 2


<--  snip  -->
Comment 1 Bastien Nocera 2010-03-23 04:14:35 UTC
commit cadd00609ccadf5c97d05704d82ebf10edf9f355
Author: Adrian Bunk <adrian.bunk@movial.com>
Date:   Mon Mar 8 21:30:30 2010 +0200

    Makefile.am: ensure that update-mime-info doesn't get called before it's installed
    
    This fixes the following error on parallel installs:
    
    <--  snip  -->
    
    make install
    Makefile:939: warning: overriding commands for target `all'
    Makefile:279: warning: ignoring old commands for target `all'
    Making install in .
    Makefile:939: warning: overriding commands for target `all'
    Makefile:279: warning: ignoring old commands for target `all'
    Makefile:939: warning: overriding commands for target `all'
    Makefile:279: warning: ignoring old commands for target `all'
    test -z "/usr/share/man/man1" || mkdir -p -- "/usr/share/man/man1"
    test -z "/usr/share/mime/packages" || mkdir -p -- "/usr/share/mime/packages"
    test -z "/usr/share/pkgconfig" || mkdir -p -- "/usr/share/pkgconfig"
     /scratchbox/tools/bin/install -c -m 644 'freedesktop.org.xml' '/usr/share/mime/packages/freedesktop.org.xml'
     /scratchbox/tools/bin/install -c -m 644 'shared-mime-info.pc' '/usr/share/pkgconfig/shared-mime-info.pc'
     /scratchbox/tools/bin/install -c -m 644 './update-mime-database.1' '/usr/share/man/man1/update-mime-database.1'
    test -z "/usr/bin" || mkdir -p -- "/usr/bin"
    make  install-data-hook
    Makefile:939: warning: overriding commands for target `all'
    Makefile:279: warning: ignoring old commands for target `all'
    "/usr/bin/update-mime-database" -V "/usr/share/mime"
    /scratchbox/tools/bin/sh: /usr/bin/update-mime-database: No such file or directory
    make[4]: *** [install-data-hook] Error 127
    make[3]: *** [install-data-am] Error 2
    make[3]: *** Waiting for unfinished jobs....
      /scratchbox/tools/bin/install -c 'update-mime-database' '/usr/bin/update-mime-database'
    make[2]: *** [install-am] Error 2
    make[1]: *** [install-recursive] Error 1
    make: *** [__matrix_install] Error 2
    
    <--  snip  -->
    
    http://bugs.freedesktop.org/show_bug.cgi?id=27252


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.