Re: Please make discover2 udebs available for testing
[Jeff Licquia]
> Since discover 2 is XML-based, libexpat1 is likely to be a hard
> dependency.
OK.
> The obvious problem here is that this would take some work to do,
> and we're all a little tight on resources. It would be good to know
> how the d-i team feels about the curl/ssl/zlib deps.
The current reduced /lib/ directory look like this when the new
discover binary is included on the floppy:
# ls -l /lib
drwxr-xr-x 2 root root 4096 May 20 18:25 debian-installer.d
-rwxr-xr-x 1 root root 71736 May 20 18:25 ld-linux.so.2
-rw-r--r-- 1 root root 641572 May 20 18:25 libc.so.6
-rw-r--r-- 1 root root 972068 May 20 18:25 libcrypto.so.0.9.7
-rw-r--r-- 1 root root 140176 May 20 18:25 libcurl.so.2
-rw-r--r-- 1 root root 45552 May 20 18:25 libdebconf.so.1
-rw-r--r-- 1 root root 5004 May 20 18:25 libdebconfclient.so.0
-rw-r--r-- 1 root root 12456 May 20 18:25 libdebian-installer.so.3-rw-r--r-- 1 root root 39952 May 19 22:38 libdiscover.so.2
-rw-r--r-- 1 root root 7992 May 20 18:25 libdl.so.2
-rw-r--r-- 1 root root 122740 May 20 18:25 libexpat.so.1
-rw-r--r-- 1 root root 15404 May 20 18:25 libm.so.6
-rw-r--r-- 1 root root 12828 Apr 19 18:57 libnss_dns.so.2
-rw-r--r-- 1 root root 56652 Apr 19 18:57 libresolv.so.2
-rw-r--r-- 1 root root 326896 May 20 18:25 libslang.so.1-UTF8
-rw-r--r-- 1 root root 186532 May 20 18:25 libssl.so.0.9.7
-rw-r--r-- 1 root root 51356 May 20 18:25 libz.so.1
drwxr-xr-x 3 root root 4096 May 20 18:25 modules
The extra libraries (crypto, curl, ssl, z) contributes to 1.3 MiB
uncompressed. That is quite a lot. I would rather use that space for
kernel modules.
> How strange. For the most part, I just copied the udeb rules from
> discover 1.5-1.4. Did you have these problems with the old discover
> udebs?
No. And the solution is to install the libdiscover2 packages, instead
of copying the file from the udeb. The problem was just because
stupid me tried to do a quick fix.
> Please let me know if Branden's discover.conf fixes that problem.
Using the discover.conf installed by libdiscover2 solved the segfault
and XML parsing problem.
When I now run discover, it outputs nothing at all. I guess this is
because of the missing discover-data files.
> It sounds to me like we have two immediate changes to make:
>
> - Install discover.conf into discover-udeb.
>
> - Create a discover-data udeb.
>
> Besides the curl dep, is there anything else?
Fixing the code to not crash, but give a sensible error message when
discover.conf is missing?
Reply to: