Please help me fix these build problems
Hi,
I'm trying to convert zh-autoconvert from pre-dh to using the dh for the
making.
I don't know how to fix the following problems:
W: zh-autoconvert: hardening-no-relro usr/bin/autogb
E: zh-autoconvert: pkg-has-shlibs-control-file-but-no-actual-shared-libs
W: zh-autoconvert: postinst-has-useless-call-to-ldconfig
W: zh-autoconvert: postrm-has-useless-call-to-ldconfig
W: libhz-dev: wrong-section-according-to-package-name libhz-dev =>
libdevel
- For hardening-no-relro, I've enclosed my Makefile and debian/rules in
REF#1.
- For pkg-has-shlibs-control-file-but-no-actual-shared-libs, hope the
Makefile in REF#1 can give you some clue. Otherwise, please let me know
what to show.
- For wrong-section, I have the following in control file:
Package: libhz-dev
Architecture: any
Section: devel
Shall I change the "Section: devel" to "Section: libdevel"?
- For useless-call-to-ldconfig, I have no idea where the postinst & postrm
are defined. Here are all files under my debian/ folder:
$ find debian/
debian/
debian/control
debian/copyright
debian/source
debian/source/format
debian/changelog
debian/rules
debian/compat
debian/libhz-dev.install
debian/libhz0.install
debian/zh-autoconvert.install
debian/watch
debian/patches
debian/patches/series
debian/patches/zh-autoconvert_0.3.16-3.diff
And I've checked every one of them.
REF#1,
$ cat Makefile
CC=gcc
CFLAG=-O2 -g -Wall -Iinclude
LIBS= -Llib -lhz
.PHONY: all hzlib clean install-home install
all: autob5 autogb hzlib xchat-plugins
autob5: autogb
rm -f autob5;ln -s autogb autob5
autogb:autogb.c hzlib
$(CC) $(CFLAG) $(LIBS) autogb.c -lhz -o autogb
autogb-static:autogb.c hzlib
$(CC) $(CFLAG) autogb.c lib/libhz.a -o autogb
hzlib:
cd hzconvert;make
xchat-plugins:
cd contrib/xchat-plugins;make
clean:
rm -f autob5 autogb *.o *~
rm -f include/*~
cd hzconvert;make clean
cd contrib/xchat-plugins;make clean
install-home:
[ ! -f $(HOME)/bin ] || mkdir $(HOME)/bin
rm -f $(HOME)/bin/autob5
rm -f $(HOME)/bin/autogb
cp -f autogb $(HOME)/bin
ln -s $(HOME)/bin/autogb $(HOME)/bin/autob5
chmod 755 $(HOME)/bin/autogb
install:
install -s -m 755 autogb $(DESTDIR)/usr/bin
install -s -m 755 lib/libhz.so.0.0 $(DESTDIR)/usr/lib
cd $(DESTDIR)/usr/lib;ln -s libhz.so.0.0 libhz.so.0
cd $(DESTDIR)/usr/lib;ln -s libhz.so.0 libhz.so
install -s -m 755 lib/libhz.a $(DESTDIR)/usr/lib
install -s -m 755 contrib/xchat-plugins/xchat-autogb.so
$(DESTDIR)/usr/lib/zh-autoconvert
install -s -m 755 contrib/xchat-plugins/xchat-autob5.so
$(DESTDIR)/usr/lib/zh-autoconvert
install -m 644 include/*.h $(DESTDIR)/usr/include
cd $(DESTDIR)/usr/bin; ln -s autogb $(DESTDIR)/usr/bin/autob5
$ cat debian/rules
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
#
# This file . . .
# This has to be exported to make some magic below work.
export DH_OPTIONS
%:
dh $@
override_dh_auto_install:
mkdir -p debian/tmp/usr/bin debian/tmp/usr/lib debian/tmp/usr/
include debian/tmp/usr/lib/zh-autoconvert
dh_auto_install
Thanks
Reply to: