Hi:

I recently joined the Bodhi team to help build ARM (armhf) packages for 
Bodhi, since I have Bodhi installed on a Samsung (ARM) Chromebook.  I 
chose Bodhi because it was lightweight and because I tried E in crouton 
(before ditching ChromeOS) and I really liked it.

A few weeks ago I got Jeff Hoogland's build scripts and started building 
EFL, enlightenment, and the modules included with Bodhi. That went fine. 
Then we decided to move from debian wheezy to debian Jessie. (In case 
you are not aware, while Bodhi uses Ubuntu for x86 and x86_64, it uses 
straight Debian for armhf).

When I moved to jessie, using exactly the same source (EFL 1.7.9 and 
enlightenment 0.17.5) I started running into issues.  One thing that 
happened is that it started putting stuff under 
/usr/lib/arm-linux-gnueabihf instead of just /usr/lib.  This caused a 
problem with enlightenment install because the postinst script expected 
things under /usr/lib. I fixed the script to handle this but that really 
isn't an Enlightenment issue per se, but a debian packaging issue with 
Bodhi.

However, when I tried to build the modules Bodhi includes like 
comp-scale, cpu, deskshow, diskio, etc. they would no longer build. I 
mentioned the error I was seeing yesterday on the freenode chat (as 
crsboca). The problem I was seeing was:

*./configure: line 13639: syntax error near unexpected token `E,'**
**./configure: line 13639: `PKG_CHECK_MODULES(E, enlightenment)' *

Sachiel on the chat correctly pointed out that the problem was some type 
of configuration error. After a lot of digging (I was not that familiar 
with how autogen worked, I just used it) I determined that the 
*PKG_CHECK_MODULES* macro was not being included and expanded.  This is 
in *pkg.m4*.  To make a long story short, by adding *pkg.m4* (found in 
*/usr/share/aclocal* on my machine) to the *m4* directory under the 
source I was able to resolve the issues for all but 2 of the modules I 
was trying to build.  I don't know what changed when I moved to jessie. 
My speculation is that it previously picked the macros up automatically 
(perhaps from /usr/share/aclocal) if not found in the included m4 
directory, but this no longer happened. But I really don't know.

The other two module issues I am describing below:

/*deskshow*/*
*
Unlike the others, this wasn't including the autoconf m4 macros at all 
and m4 was empty.  So I had to add:

*ACLOCAL_AMFLAGS = -I m4*

to the top of *Makefile.am*. Additionally, I had to add the following 
two lines to *configure.ac*:

*AC_CONFIG_MACRO_DIR(m4)**
**LT_INIT*

Additionally, I put the following macro files in m4:

*libtool.m4**
**lt~obsolete.m4**
**ltoptions.m4**
**ltsugar.m4**
**ltversion.m4**
**pkg.m4*

The source for many of the other modules include an m4 directory with 
lots of macros, so it would be OK to do that as well for this one as 
well, as long as these are included (at least based on the configure.ac 
changes I made).

/*diskio*//*
*/
For this, I needed to add the same 2 lines to *configure.ac*:

*AC_CONFIG_MACRO_DIR(m4)**
**LT_INIT*

This, along with adding *pkg.m4* to the *m4* directory was sufficient 
for this to build again.

I would like having these changes considered for inclusion, assuming 
there isn't reason to believe that there is some expectation that my 
system got borked by upgrading to jessie and also that these changes 
aren't likely to cause problems for others using other environments to 
build. Of course if someone knows some better ideas to try, I am willing 
to try those as well. Or if it is OK to submit patches for these 
changes, please let me know and I am willing to do that as well.  
Although I could of course keep the changes for myself, assuming the 
problem isn't unique to my machine, I wouldn't want someone else to 
encounter and have to solve the same problems.

Sorry for such a long note.  Also, if the formatting causes problems, 
please let me know and I will use plain text in the future.

Thanks in advance.

-- 
Chris Seekamp
cseek...@acm.org
(using icedove on bodhi linux)

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to