<br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 12:38 PM, Ed Bartosh <span dir="ltr"><<a href="mailto:bartosh@gmail.com">bartosh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">2009/7/8 b0unc3 <<a href="mailto:b0unc3@email.it">b0unc3@email.it</a>>:<br>
><br>
><br>
> On Wed, Jul 8, 2009 at 9:34 AM, Ed Bartosh <<a href="mailto:bartosh@gmail.com">bartosh@gmail.com</a>> wrote:<br>
>><br>
>> 2009/7/8 b0unc3 <<a href="mailto:b0unc3@email.it">b0unc3@email.it</a>>:<br>
>> > Hi,<br>
>> ><br>
>> > I'm the developer of wizard-mounter<br>
>> > (<a href="https://garage.maemo.org/projects/wizard-mounter" target="_blank">https://garage.maemo.org/projects/wizard-mounter</a>) and I have a problem<br>
>> > with<br>
>> > the extras-assistant.<br>
>> > I build my own .deb in my sdk and it works fine, also the installation<br>
>> > is<br>
>> > correct (as you can check by downloading the .deb directly from the<br>
>> > browser<br>
>> > or you can try to build it yourself through svn in diablo-trunk/ ). When<br>
>> > I<br>
>> > upload the .tar.gz and other files to the extras-assistant that, I<br>
>> > suppose,<br>
>> > will automatically generate the deb but it result incorrect : the<br>
>> > installation works quite fine but it never show the entry in the<br>
>> > menu-list<br>
>> > because the .desktop and .service files are placed alone in /.<br>
>> > I'm wondering why of this strange behavior and what I'm doing wrong<br>
>> > since<br>
>> > the extras-assistant output is OK.<br>
>> > In my sdk I simply run dpkg-build -rfakeroot to build the .deb and other<br>
>> > files.<br>
>> > What do extras-assistant exactly to build the .deb ?<br>
>> First of all it's autobuilder, not assistant. Extras assistent is a<br>
>> web interface to building system and repositories.<br>
><br>
> My mistake, sorry.<br>
>><br>
>> Autobuilder builds packages 'right way'. It starts from clean<br>
>> scratchbox target, install basic build system(gcc, glibc and small<br>
>> amount of other packages), then installs build dependencies and bulds<br>
>> the package using dpkg-buildpackage.<br>
>> The main difference from usual developer builds is that in developer<br>
>> environment there are already tons of installed packages(most of them<br>
>> are not needed for your build) and dirty filesystem. By dirty I mean<br>
>> that there are a lot of files in there that don't belong to any<br>
>> package, but can influence on build results. Each time you do make<br>
>> install you put those on your filesystem. Very often they forgotten<br>
>> after that.<br>
>><br>
>> Now to the business. The reason of above issue is most probably in<br>
>> your Makefile*. To check it our you can simply delete everything from<br>
>> debian/wizard-mounter and run 'make install<br>
>> DESTDIR=debian/wizard-mounter. You will most probably see your<br>
>> .desktop and .service files in debian/wizard-mounter instead of<br>
>> debian/wizard-mounter/usr/share/...<br>
><br>
> I just tried it , but everything in the destdir is at his right place.<br>
>><br>
>><br>
</div></div>Unfrotunately I didn't find sources of your package in diablo extras<br>
repo, so I checked out your trunk and tried to build your package in<br>
clean environment.<br>
Found issues:<br>
1. Package lacks build dependency to libhildonhelp-dev.<br>
configure complains that libossohelp package doesn't exist:<br>
checking for pkg-config... /scratchbox/tools/bin/pkg-config<br>
checking pkg-config is at least version 0.9.0... yes<br>
checking for GTK... yes<br>
checking for OSSO... configure: error: Package requirements (libosso<br>
>= 1 libossohelp) were not met:<br>
<br>
No package 'libossohelp' found<br>
<br>
Consider adjusting the PKG_CONFIG_PATH environment variable if you<br>
installed software in a non-standard prefix.<br>
<br>
Alternatively, you may set the environment variables OSSO_CFLAGS<br>
and OSSO_LIBS to avoid the need to call pkg-config.<br>
See the pkg-config man page for more details.<br>
<br>
make: *** [configure-stamp] Error 1<br>
<br>
It happens because libossohelp.pc file is not found. libossohelp.pc is<br>
deprecated, and replaced with hildon-help.pc which is in<br>
libhildonhelp-dev package, AFAIK.<br>
So, I replaced libossohelp with hildonhelp in your <a href="http://configure.ac" target="_blank">configure.ac</a> and<br>
added build-dependency to lbihildonhelp-dev package.<br>
<br>
2. The same for hildon-libs and hildon-fm:<br>
checking for HILDON... configure: error: Package requirements<br>
(hildon-libs >= 0.9.50 hildon-fm) were not met:<br>
<br>
No package 'hildon-libs' found<br>
No package 'hildon-fm' found<br>
<br>
Consider adjusting the PKG_CONFIG_PATH environment variable if you<br>
installed software in a non-standard prefix.<br>
<br>
Alternatively, you may set the environment variables HILDON_CFLAGS<br>
and HILDON_LIBS to avoid the need to call pkg-config.<br>
See the pkg-config man page for more details.<br>
<br>
Replaced with hildon-1 and hildon-fm-2 in <a href="http://configure.ac" target="_blank">configure.ac</a><br>
<br>
Only after above changes I managed to build package. How did you<br>
actually get your package built? Did you use other sources?</blockquote><div><br>These errors come up because you have checked out a wrong dir, as I
said in my first mail, the directory where I'm working on is
diabo-trunk/ no trunk/<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
It was built OK and I can see the problem:<br>
3.<br>
> ls debian/wizard-mounter<br>
DEBIAN etc lib usr wizard_mounter.desktop wizard_mounter.servic<br>
<br>
Here is the part of console output which explains why it happens:<br>
...<br>
Making install in src<br>
make[2]: Entering directory `/tmp/wizard-mounter/src'<br>
make[3]: Entering directory `/tmp/wizard-mounter/src'<br>
/bin/sh ../mkinstalldirs /tmp/wizard-mounter/debian/wizard-mounter/usr/bin<br>
mkdir -p -- /tmp/wizard-mounter/debian/wizard-mounter/usr/bin<br>
/bin/sh ../libtool --mode=install /scratchbox/tools/bin/install -c<br>
wizard-mounter /tmp/wizard-mounter/debian/wizard-mounter/usr/bin/wizard-mounter<br>
/scratchbox/tools/bin/install -c wizard-mounter<br>
/tmp/wizard-mounter/debian/wizard-mounter/usr/bin/wizard-mounter<br>
make[3]: Nothing to be done for `install-data-am'.<br>
make[3]: Leaving directory `/tmp/wizard-mounter/src'<br>
make[2]: Leaving directory `/tmp/wizard-mounter/src'<br>
Making install in data<br>
make[2]: Entering directory `/tmp/wizard-mounter/data'<br>
make[3]: Entering directory `/tmp/wizard-mounter/data'<br>
make[3]: Nothing to be done for `install-exec-am'.<br>
/bin/sh ../mkinstalldirs /tmp/wizard-mounter/debian/wizard-mounter<br>
/scratchbox/tools/bin/install -c -m 644 wizard_mounter.desktop<br>
/tmp/wizard-mounter/debian/wizard-mounter/wizard_mounter.desktop<br>
...<br>
<br>
And the problem is in <a href="http://configure.ac" target="_blank">configure.ac</a> file:<br>
desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`<br>
serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`<br>
<br>
If you run pkg-config with these parameters you'll have nothing<br>
instead of expecting paths.<br>
It's again about missing build-dependencies. osso-af-settings.pc is<br>
provided in osso-af-settings package, which is not present in your<br>
package's build-dependencies.</blockquote><div> <br>I just make it as a dependencies but now autobuilder fails :<br><a href="https://garage.maemo.org/builder/diablo/wizard-mounter_1.4.1-maemo4.1/armel.build.log.FAILED.txt" target="_blank">https://garage.maemo.org/builder/diablo/wizard-mounter_1.4.1-maemo4.1/armel.build.log.FAILED.txt</a><br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
After installing it package was built just fine and files were in<br>
proper places:<br>
> find debian/ -name *.service -or -name *.desktop<br>
debian/wizard-mounter/usr/share/dbus-1/services/wizard_mounter.service<br>
debian/wizard-mounter/usr/share/applications/hildon/wizard_mounter.desktop<br>
debian/wizard-mounter/etc/others-menu/extra_applications/0100_wizard-mounter.desktop<br>
<br>
<br>
The only thing I still don't understand is how you've manage to build<br>
your package in autobuilder without first two changes.<br>
<br>
--<br>
BR,<br>
<font color="#888888">Ed<br>
</font></blockquote></div><br>