Bug 45638 - 'make distcheck' fails
Summary: 'make distcheck' fails
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-05 00:56 UTC by Hib Eris
Modified: 2012-02-14 11:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
0001-Add-a-configuration-option-for-the-test-data-dir.patch (27.04 KB, patch)
2012-02-05 00:59 UTC, Hib Eris
Details | Splinter Review
0001-Add-a-configuration-option-for-the-test-data-dir.patch (28.39 KB, patch)
2012-02-06 00:34 UTC, Hib Eris
Details | Splinter Review

Description Hib Eris 2012-02-05 00:56:45 UTC
Running 'make distcheck' fails because it cannot find the test data.
Comment 1 Hib Eris 2012-02-05 00:59:15 UTC
Created attachment 56616 [details] [review]
0001-Add-a-configuration-option-for-the-test-data-dir.patch
Comment 2 Albert Astals Cid 2012-02-05 06:29:52 UTC
I don't like this patch, the poppler-test clone needs to be inside the test folder like it has always been if you want distcheck to succeed.

This just adds extra complexity to the autohell system and that is something i'd prefer not to do.
Comment 3 Hib Eris 2012-02-05 10:42:11 UTC
(In reply to comment #2)
> I don't like this patch, the poppler-test clone needs to be inside the test
> folder like it has always been if you want distcheck to succeed.

Hhmmm, I seem not to be able to figure out myself how to get 'make distcheck' working with the current sources. Do you have a recipe to do it? Something like:

git clone git://git.freedesktop.org/git/poppler/poppler
cd poppler
git clone git://git.freedesktop.org/git/poppler/test
./configure
make
make check
make distcheck

... but than in some order that it actually works?

(I actually created the patch here because I could not get it to work otherwise, but if it can be done without adding the complexity, so much the better).
Comment 4 Albert Astals Cid 2012-02-05 11:11:54 UTC
Actually i cheat

./autogen.sh --enable-gtk-doc
make
make distcheck
in a separate shell
  cd version-foo/test
  sudo ln -s ../../../test/unittestcases/ .
  sudo ln -s ../../../test/tests/ .
  cd ..
  cd ..
  wait for compilation to finish
  make distclean
Comment 5 Hib Eris 2012-02-05 11:34:01 UTC
(In reply to comment #4)
> Actually i cheat

Shame on you! ;-)

But seriously, you like that better then my patch?
Comment 6 Albert Astals Cid 2012-02-05 13:46:31 UTC
I just don't like new autoconf code and just adds a lot.

But as i see i'm not going to convince you, please write the test dir that will be used in the summary. Also write a similar note to the one you are writing for autoconf for cmake, since make test runs the tests too.
Comment 7 Hib Eris 2012-02-06 00:34:48 UTC
Created attachment 56643 [details] [review]
0001-Add-a-configuration-option-for-the-test-data-dir.patch

Updated patch adding testdatadir to config summary and adding testdatadir tests and instructions for cmake.
Comment 8 Albert Astals Cid 2012-02-06 09:38:17 UTC
On hold until xpdf303merge branch is merged next week.
Comment 9 Albert Astals Cid 2012-02-14 11:12:08 UTC
Commited to master


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.