Weblog

11 December 2011, 21:41

A beta version of Hiawatha 8.0 which uses CMake instead of Autoconf is now ready for download. Please, test it and send me your feedback. Installation instructions can be found in a INSTALL file inside the source package.

The source package can be found at the download page.

Chris Wadge
12 December 2011, 04:02
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: Hiawatha
CPack: - Install project: Hiawatha
CMake Error at /home/builder/hiawatha/builds/hiawatha-8.0-beta/cmake_install.cmake:156 (FILE):
file INSTALL cannot find
"/home/builder/hiawatha/builds/hiawatha-8.0-beta/debian/hiawatha".


CPack Error: Error when generating package: Hiawatha
make: *** [package] Error 1
Hugo Leisink
12 December 2011, 12:27
The 'file INSTALL cannot find...'. That's weird. Can you tell me what commands you used? In don't understand why the textfile INSTALL is somehow involved in this error.
Samiux
12 December 2011, 16:58
Operating system : Ubuntu Server 11.10 (64-bit)

Fail to build the deb package.

Install from source success but it overwrites my previous configuration files and all my settings are gone.
Hugo Leisink
12 December 2011, 23:19
Overwriting of previous configuration files has been fixed.

Can you give me some more information about the Debian package build failure?
Samiux
13 December 2011, 04:53
cmake . -DCOMPILE_FOR_DEBIAN=on
--- Configuring done
--- Generating done
--- Build files have been written to: /home/samiux/hiawatha-8.0-beta

However, there is not deb package in the directory.
Samiux
13 December 2011, 05:10
Build from source is not 100% success.

CMake Error at cmake_install.cmake:42 (FILE):
file INSTALL cannot copy file "/home/samiux/hiawatha-8.0-beta/cgi-wrapper"
to "/usr/local/sbin/cgi-wrapper".

make: *** [install] Error 1
Hugo Leisink
13 December 2011, 08:07
The Debian package is created via 'make package', after you used the cmake command.
Can you send me a copy of your build directory? Please, send it to hugo@hiawatha-webserver.org.
Samiux
13 December 2011, 17:06
Email sent.
Chris Wadge
14 December 2011, 01:51
Ditto.
Yassen
14 December 2011, 18:21
Hi Hugo!

hiawatha-8.0-beta-cmake; all this below runs fine:

# mkdir build && cd ./build
# cmake .. -DCOMPILE_FOR_DEBIAN=on
# make package

I have the hiawatha_8.0-beta_x86_64.deb package, but when I try to install it:

# dpkg -i hiawatha_8.0-beta_x86_64.deb

I get:

dpkg: warning: parsing file '/var/lib/dpkg/tmp.ci/control' near line 5 package 'hiawatha:x86_64':
'x86_64' is not a valid architecture name: character `_' not allowed (only letters, digits and characters `-')
dpkg: error processing hiawatha_8.0-beta_x86_64.deb (--install):
package architecture (x86_64) does not match system (amd64)
Errors were encountered while processing:
hiawatha_8.0-beta_x86_64.deb

Seems to be a simple issue; nevertheless needs fixing IMO.

(And BTW, thank you for the 8.0 version!)
Hugo Leisink
14 December 2011, 20:57
I've updated the cmake source package. Please, redownload and let me know how it's working. Please read the INSTALL file for instructions on how to create a Debian package.
Samiux
15 December 2011, 12:43
Making of debian package is no problem. However, the CGIWrapper seems not working properly.
Hugo Leisink
15 December 2011, 13:01
Ah, yes. Of course. The CGI-wrapper needs the su-bit.
Yassen
15 December 2011, 19:42
Building a debian package, running plain http and serving simple php pages works just fine here!
Chris Wadge
20 December 2011, 19:23
Hiawatha cmake source compiles alright, but it appears that the Debian hooks have been removed in the most recent version?

CPack Error: Error when generating package: Hiawatha
make: *** [package] Error 1

Is this intentional?
Hugo Leisink
20 December 2011, 19:46
Correct. CMake's Debian package creation module isn't mature enough. Execute the script extra/make_debian_package instead.

A minute before I wrote this message, I created a new source package which fixes some issues with the Debian package creation. Redownload the 8.0-beta-cmake source package, please.
Chris Wadge
20 December 2011, 22:02
The newest rendition builds fine and at least installs without a hitch. To qualify though, I haven't done any testing beyond hitting the default welcome page. Thanks Hugo.
Chris Wadge
28 December 2011, 00:45
Hey once again,

Here's a tiny patch I propose to add a bit of convenience to the dependency sanity check on the Debian build script:

~~~~~ CUT ~~~~~
15c15
< exit
---
> dep_sane=false
17a18,20
> if [ "$dep_sane" ] ; then
> exit 1
> fi
~~~~~ CUT ~~~~~

...that way you get a full list of missing deps instead of having to work through them individually.

All the best,
-C