First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 176535
Alias:
Product:
Component:
Status: REOPENED
Resolution:
Assigned To: Project Gentopia <gentopia@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Hans de Graaff <graaff@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 176535 depends on: Show dependency tree
Show dependency graph
Bug 176535 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)









View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-04-30 08:14 0000
I've just tried to emerge sys-apps/hal-0.5.9-r1, and it fails on 'make test'. I
have FEATURES="test" enabled. Here is the output: 

make[7]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/hal/fdi" || /bin/mkdir -p
"/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/hald/.local-fdi-test/usr/share/hal/fdi"
 /usr/bin/install -c -m 644 'fdi.dtd'
'/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/hald/.local-fdi-test/usr/share/hal/fdi/fdi.dtd'
make[7]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/fdi'
make[6]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/fdi'
make[5]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/fdi'
10:04:03.453 [I] create_cache.c:608: Loading rules
10:04:03.481 [E] create_cache.c:525: Cannot scan
'.local-fdi-test/share/hal/fdi/preprobe': No such file or directory
10:04:03.481 [E] create_cache.c:683: Error generating fdi cache
FAIL: hald-cache-test.sh
===============================
1 of 1 tests failed
Please report to david@fubar.dk
===============================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/hald'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/hald'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/hald'
make[1]: *** [check] Error 2
make[1]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.9-r1/work/hal-0.5.9/hald'
make: *** [check-recursive] Error 1

!!! ERROR: sys-apps/hal-0.5.9-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_test
  ebuild.sh, line 1026:   Called qa_call 'src_test'
  environment, line 4515:   Called src_test
  ebuild.sh, line 653:   Called die


The problem seems that be that the paths in hald/hald-cache-test.sh are wrong,
as the point to .local-fdi-test/share/hal/fdi/ instead of
.local-fdi-test/usr/share/hal/fdi/ (note the extra /usr in there). Fixing this
manually in hald-cache-test.sh fixes the problem and 'make test' works as
expected.

------- Comment #1 From jszwast@yahoo.com 2007-05-31 07:35:36 0000 -------
Could this be the same problem as bug 176380?

------- Comment #2 From Doug Goldstein 2007-05-31 13:44:28 0000 -------
(In reply to comment #1)
> Could this be the same problem as bug 176380?
> 
Not even remotely close.


Thanks for the report Hans.

------- Comment #3 From Doug Goldstein 2007-06-14 20:58:27 0000 -------
Thanks. Fixed.

------- Comment #4 From Hans de Graaff 2008-04-05 04:50:30 0000 -------
It looks like this got broken again in hal 0.5.10:

make[6]: Entering directory
`/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/fdi'
make[7]: Entering directory
`/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/fdi'
make[7]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/hal/fdi" || /bin/mkdir -p
"/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/hald/.local-fdi-test/usr/share/hal/fdi"
 /usr/bin/install -c -m 644 'fdi.dtd'
'/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/hald/.local-fdi-test/usr/share/hal/fdi/fdi.dtd'
make[7]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/fdi'
make[6]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/fdi'
make[5]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/fdi'
06:44:28.519 [E] create_cache.c:540: Cannot scan
'.local-fdi-test/share/hal/fdi/preprobe': No such file or directory
06:44:28.519 [E] create_cache.c:701: Error generating fdi cache
FAIL: hald-cache-test.sh
===============================
1 of 1 tests failed
Please report to david@fubar.dk
===============================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory
`/var/tmp/portage/sys-apps/hal-0.5.10/work/hal-0.5.10/hald'
make[3]: *** [check-am] Error 2

------- Comment #5 From Doug Goldstein 2008-04-06 16:40:45 0000 -------
We need a hand rolled patch for every revision since the make test paths are
all hardcoded in upstream. compnerd, I'd just restrict test and be done with
it. Unless you want to constantly re-roll these patches.

------- Comment #6 From Doug Goldstein 2008-04-06 16:41:15 0000 -------
It also probably would have been better to open a new bug. Since the original
one was against 0.5.9

------- Comment #7 From Hans de Graaff 2008-05-22 18:14:36 0000 -------
Just for the record that this isn't fixed in 0.5.11.

------- Comment #8 From Doug Goldstein 2008-05-22 18:48:17 0000 -------
It won't be. Like I've said, upstream uses hardcoded paths for this stuff. The
whole test setup needs to be rewritten. No one upstream is working on it and
there are no plans to work on it since I've pretty much quit HAL.

Rest assured though, David Z is writing a completely new HAL replacement called
DeviceKit which doesn't share any code. It might be fixed then.

------- Comment #9 From Hans de Graaff 2008-05-22 18:49:59 0000 -------
If it is clear that the tests are broken and won't be fixed then I think a
RESTRICT="test" would be really useful.

------- Comment #10 From Carsten Lohrke 2008-07-30 07:59:16 0000 -------
Still not fixed in 0.5.11-r1.

------- Comment #11 From Doug Goldstein 2008-07-30 13:26:16 0000 -------
The tests should only be broken in the case when you change where
/var/tmp/portage resides, otherwise they should be fine. Unless of course
someone dropped a patch I wrote a while back..

------- Comment #12 From Lourdes Jones 2008-08-25 21:40:41 0000 -------
The hald_cache_test_path.patch is not included in the 0.5.11 patchset. Manually
adding it from ${FILESDIR}/0.5.9/98_hald_cache_test_path.patch works without
modification and allows the tests to complete.

First Last Prev Next    No search results available      Search page      Enter new bug