After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 743540 - FTBFS when srcdir != builddir
FTBFS when srcdir != builddir
Status: RESOLVED FIXED
Product: gnome-calendar
Classification: Applications
Component: General
unspecified
Other Linux
: Normal normal
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
Depends on:
Blocks: 743498
 
 
Reported: 2015-01-26 15:07 UTC by Vadim Rutkovsky
Modified: 2017-04-17 18:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: add srcdir to appdata (763 bytes, patch)
2015-01-26 15:11 UTC, Vadim Rutkovsky
committed Details | Review

Description Vadim Rutkovsky 2015-01-26 15:07:14 UTC
Error when I'm building an app with a separate builddir (e.g. for Continuous):

make[3]: Entering directory '/ostbuild/source/gnome-calendar/_build/data'
LC_ALL=C /usr/bin/intltool-merge  -x -u -c ../po/.intltool-merge-cache ../../po ../../data/appdata/org.gnome.Calendar.appdata.xml.in appdata/org.gnome.Calendar.appdata.xml
LC_ALL=C /usr/bin/intltool-merge  -d -u -c ../po/.intltool-merge-cache ../../po org.gnome.Calendar.desktop.in org.gnome.Calendar.desktop
(echo '[D-BUS Service]'; \
            echo 'Name=org.gnome.Calendar'; \
            echo 'Exec=/usr/bin/gnome-calendar --gapplication-service') > org.gnome.Calendar.service.tmp && \
            mv org.gnome.Calendar.service.tmp org.gnome.Calendar.service
glib-mkenums --comments '<!-- @comment@ -->' --fhead "<schemalist>" --vhead "  <@type@ id='org.gnome.calendar.@EnumName@'>" --vprod "    <value nick='@valuenick@' value='@valuenum@'/>" --vtail "  </@type@>" --ftail "</schemalist>" ../../src/gcal-utils.h > org.gnome.calendar.enums.xml.tmp && mv org.gnome.calendar.enums.xml.tmp org.gnome.calendar.enums.xml
LC_ALL=C /usr/bin/intltool-merge  -x -u -c ../po/.intltool-merge-cache ../../po ../../data/org.gnome.calendar.gschema.xml.in org.gnome.calendar.gschema.xml
Cannot open appdata/org.gnome.Calendar.appdata.xml: No such file or directory
Generating and caching the translation database
Merging translations into appdata/org.gnome.Calendar.appdata.xml.
Makefile:789: recipe for target 'appdata/org.gnome.Calendar.appdata.xml' failed
make[3]: *** [appdata/org.gnome.Calendar.appdata.xml] Error 2
make[3]: *** Waiting for unfinished jobs....


Attached patch fixes it
Comment 1 Vadim Rutkovsky 2015-01-26 15:11:25 UTC
Created attachment 295464 [details] [review]
build: add srcdir to appdata
Comment 2 Bastien Nocera 2015-01-26 15:28:04 UTC
Review of attachment 295464 [details] [review]:

Looks good.
Comment 3 Igor Gnatenko 2015-01-26 15:32:03 UTC
LGTM as appdata feature author