Bug#753171: FTBFS: /usr/bin/ld: cannot find -lee

2014-08-15 Thread peter green
Well I got this package to build (needed it to unclog things in 
raspbian, I'd really rather not do removals for reasons I won't get into 
here) but I'm not sure how useful the resulting package will be. In 
particular I ended up disabling liblognorm completely due to.


sagan.c:874:9: error: too few arguments to function ‘ln_normalize’

I looked upstream to see if anything had been done but it seems the code 
in that area had been totally changed since the version in debian.


debdiff attatched, no intent to NMU in debian.
diff -Nru sagan-0.2.1.r1/debian/changelog sagan-0.2.1.r1/debian/changelog
--- sagan-0.2.1.r1/debian/changelog 2012-04-16 20:33:24.0 +
+++ sagan-0.2.1.r1/debian/changelog 2014-08-16 00:23:20.0 +
@@ -1,3 +1,12 @@
+sagan (0.2.1.r1-1+rpi1) jessie-staging; urgency=medium
+
+  * Add libee-dev to build-depends.
+  * Force /usr/include/json-c onto include path
+  * add #include libee/ctx.h to sagan.c
+  * Disable liblognorm.
+
+ -- Peter Michael Green plugw...@raspbian.org  Wed, 13 Aug 2014 21:43:06 
+
+
 sagan (0.2.1.r1-1) unstable; urgency=low
 
   * Imported Upstream version 0.2.1-r1
diff -Nru sagan-0.2.1.r1/debian/control sagan-0.2.1.r1/debian/control
--- sagan-0.2.1.r1/debian/control   2012-04-16 20:18:01.0 +
+++ sagan-0.2.1.r1/debian/control   2014-08-13 21:13:39.0 +
@@ -11,7 +11,8 @@
 libmysqlclient-dev,
 libpq-dev,
 libprelude-dev,
-liblognorm-dev
+liblognorm-dev,
+libee-dev
 Standards-Version: 3.9.3
 Homepage: http://sagan.softwink.com/
 #Vcs-Git: git://git.debian.org/collab-maint/sagan.git
diff -Nru sagan-0.2.1.r1/debian/patches/add-include.diff 
sagan-0.2.1.r1/debian/patches/add-include.diff
--- sagan-0.2.1.r1/debian/patches/add-include.diff  1970-01-01 
00:00:00.0 +
+++ sagan-0.2.1.r1/debian/patches/add-include.diff  2014-08-16 
00:20:17.0 +
@@ -0,0 +1,26 @@
+Description:  add #include libee/ctx.h to sagan.c
+Author: Peter Michael Green plugw...@raspbian.org
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: vendor|upstream|other, url of original patch
+Bug: url in upstream bugtracker
+Bug-Debian: http://bugs.debian.org/bugnumber
+Bug-Ubuntu: https://launchpad.net/bugs/bugnumber
+Forwarded: no|not-needed|url proving that it has been forwarded
+Reviewed-By: name and email of someone who approved the patch
+Last-Update: -MM-DD
+
+--- sagan-0.2.1.r1.orig/src/sagan.c
 sagan-0.2.1.r1/src/sagan.c
+@@ -49,6 +49,7 @@
+ #include arpa/inet.h
+ #include netinet/in.h
+ #include sys/socket.h
++#include libee/ctx.h
+ 
+ #include sagan.h
+ 
diff -Nru sagan-0.2.1.r1/debian/patches/series 
sagan-0.2.1.r1/debian/patches/series
--- sagan-0.2.1.r1/debian/patches/series2011-12-18 14:01:26.0 
+
+++ sagan-0.2.1.r1/debian/patches/series2014-08-16 00:19:55.0 
+
@@ -1 +1,2 @@
 01-do-not-include-lognorm-private-header.patch
+add-include.diff
diff -Nru sagan-0.2.1.r1/debian/rules sagan-0.2.1.r1/debian/rules
--- sagan-0.2.1.r1/debian/rules 2012-04-16 20:18:10.0 +
+++ sagan-0.2.1.r1/debian/rules 2014-08-16 00:19:18.0 +
@@ -12,9 +12,11 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export DEB_CFLAGS_MAINT_APPEND=-I/usr/include/json-c
+
 override_dh_auto_configure:
dh_testdir
-   dh_auto_configure -- --with-postgresql-includes=/usr/include/postgresql 
--disable-libdnet LIBS=-lm -lestr -lee
+   dh_auto_configure -- --with-postgresql-includes=/usr/include/postgresql 
--disable-libdnet --disable-lognorm LIBS=-lm -lestr -lee
 
 override_dh_auto_install:
dh_auto_install


Bug#753171: FTBFS: /usr/bin/ld: cannot find -lee

2014-07-04 Thread Emilio Pozuelo Monfort
On 29/06/14 20:16, Michael Biebl wrote:
 Source: sagan
 Version: 0.2.1.r1-1
 Severity: serious
 
 Due to the latest updates in liblognorm, sagan now FTBFS
 
 configure:2701: checking whether the C compiler works
 configure:2723: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4
 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro
 conftest.c -lm -lestr -lee 5
 /usr/bin/ld: cannot find -lee
 collect2: error: ld returned 1 exit status
 
 Full build log is attached.
 
 Due to the changes in liblognorm, the liblognorm-dev package no longer
 depends on libee-dev.
 
 Simply adding libee-dev to Build-Depends was not sufficient, due to a
 bug in libestmp [1]

libestmp got fixed. Is adding libee-dev enough now?

Emilio


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#753171: FTBFS: /usr/bin/ld: cannot find -lee

2014-07-04 Thread Michael Biebl
Am 04.07.2014 10:10, schrieb Emilio Pozuelo Monfort:
 On 29/06/14 20:16, Michael Biebl wrote:
 Source: sagan
 Version: 0.2.1.r1-1
 Severity: serious

 Due to the latest updates in liblognorm, sagan now FTBFS

 configure:2701: checking whether the C compiler works
 configure:2723: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4
 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro
 conftest.c -lm -lestr -lee 5
 /usr/bin/ld: cannot find -lee
 collect2: error: ld returned 1 exit status

 Full build log is attached.

 Due to the changes in liblognorm, the liblognorm-dev package no longer
 depends on libee-dev.

 Simply adding libee-dev to Build-Depends was not sufficient, due to a
 bug in libestmp [1]
 
 libestmp got fixed. Is adding libee-dev enough now?

No, unfortunately not.
As I wrote in the bug report, sagan's configure needs to use pkg-config
proper to get all necessary compiler and linker flags.
Without them it will fail to find the json header files.

Even when this is fixed, I don't know if sagan already works with
liblognorm.

My suggestion would be to RM it from testing.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#753171: FTBFS: /usr/bin/ld: cannot find -lee

2014-07-04 Thread Emilio Pozuelo Monfort
On 04/07/14 12:24, Michael Biebl wrote:
 Am 04.07.2014 10:10, schrieb Emilio Pozuelo Monfort:
 On 29/06/14 20:16, Michael Biebl wrote:
 Source: sagan
 Version: 0.2.1.r1-1
 Severity: serious

 Due to the latest updates in liblognorm, sagan now FTBFS

 configure:2701: checking whether the C compiler works
 configure:2723: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4
 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro
 conftest.c -lm -lestr -lee 5
 /usr/bin/ld: cannot find -lee
 collect2: error: ld returned 1 exit status

 Full build log is attached.

 Due to the changes in liblognorm, the liblognorm-dev package no longer
 depends on libee-dev.

 Simply adding libee-dev to Build-Depends was not sufficient, due to a
 bug in libestmp [1]

 libestmp got fixed. Is adding libee-dev enough now?
 
 No, unfortunately not.
 As I wrote in the bug report, sagan's configure needs to use pkg-config
 proper to get all necessary compiler and linker flags.
 Without them it will fail to find the json header files.
 
 Even when this is fixed, I don't know if sagan already works with
 liblognorm.
 
 My suggestion would be to RM it from testing.

There are a few fixes upstream to fix these issues:
https://github.com/beave/sagan/commits/master

But yes, we can remove this package from testing is this bug doesn't get fixed.

Emilio


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#753171: FTBFS: /usr/bin/ld: cannot find -lee

2014-06-29 Thread Michael Biebl
Source: sagan
Version: 0.2.1.r1-1
Severity: serious

Due to the latest updates in liblognorm, sagan now FTBFS

configure:2701: checking whether the C compiler works
configure:2723: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro
conftest.c -lm -lestr -lee 5
/usr/bin/ld: cannot find -lee
collect2: error: ld returned 1 exit status

Full build log is attached.

Due to the changes in liblognorm, the liblognorm-dev package no longer
depends on libee-dev.

Simply adding libee-dev to Build-Depends was not sufficient, due to a
bug in libestmp [1]

Even disabling esmtp support is not sufficient. The package still FTBFS
since it doesn't properly set the CFLAGS which results in:

In file included from sagan.c:59:0:
/usr/include/liblognorm.h:64:18: fatal error: json.h: No such file or
directory
 #include json.h
   ^
compilation terminated.

configure should use pkg-config to determine the build flags for estr,
liblognorm and libee.


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753027

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
dpkg-buildpackage: source package sagan
dpkg-buildpackage: source version 0.2.1.r1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Pierre Chifflier pol...@debian.org
 dpkg-source --before-build sagan-0.2.1.r1
 fakeroot debian/rules clean
dh clean 
   dh_testdir
   dh_auto_clean
   dh_clean
 dpkg-source -b sagan-0.2.1.r1
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building sagan using existing ./sagan_0.2.1.r1.orig.tar.gz
dpkg-source: info: building sagan in sagan_0.2.1.r1-1.debian.tar.xz
dpkg-source: info: building sagan in sagan_0.2.1.r1-1.dsc
 dpkg-genchanges -S ../sagan_0.2.1.r1-1_source.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build sagan-0.2.1.r1
dpkg-buildpackage: full upload (original source is included)
 - Copying COW directory
  forking: rm -rf /var/cache/pbuilder/build//cow.4739 
  forking: cp -al /var/cache/pbuilder/sid.cow 
/var/cache/pbuilder/build//cow.4739 
I: removed stale ilistfile /var/cache/pbuilder/build//cow.4739/.ilist
  forking: chroot /var/cache/pbuilder/build//cow.4739 cowdancer-ilistcreate 
/.ilist find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a 
-links +1 -print0 \) | xargs -0 stat --format '%d %i ' 
 - Invoking pbuilder
  forking: pbuilder build --debbuildopts  --debbuildopts  --buildplace 
/var/cache/pbuilder/build//cow.4739 --buildresult /var/cache/pbuilder/result/ 
--debbuildopts  --no-targz --internal-chrootexec chroot 
/var/cache/pbuilder/build//cow.4739 cow-shell /tmp/sagan_0.2.1.r1-1.dsc 
I: Running in no-targz mode
I: using fakeroot in build.
I: Current time: Sun Jun 29 20:06:17 CEST 2014
I: pbuilder-time-stamp: 1404065177
I: copying local configuration
I: mounting /proc filesystem
I: mounting /run/shm filesystem
I: mounting /dev/pts filesystem
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Installing the build-deps
 - Attempting to satisfy build-dependencies
 - Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team pbuilder-ma...@lists.alioth.debian.org
Description: Dummy package to satisfy dependencies with aptitude - created by 
pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: debhelper (= 9), autotools-dev, pkg-config, libpcre3-dev, 
libesmtp-dev, libpcap-dev, libmysqlclient-dev, libpq-dev, libprelude-dev, 
liblognorm-dev
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in 
`/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously unselected package pbuilder-satisfydepends-dummy.
(Reading database ... 12374 files and directories currently installed.)
Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ...
Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring 
anyway as you requested:
 pbuilder-satisfydepends-dummy depends on debhelper (= 9); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on autotools-dev; however:
  Package autotools-dev is not installed.
 pbuilder-satisfydepends-dummy depends on pkg-config; however:
  Package pkg-config is not installed.
 pbuilder-satisfydepends-dummy depends on libpcre3-dev; however:
  Package libpcre3-dev is not installed.
 pbuilder-satisfydepends-dummy depends on libesmtp-dev; however:
  Package libesmtp-dev is not installed.