[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

I cannot remove readlines dep when building reiser4progs with dh.



Hi,
  I am trying to build a .udeb for reiser4progs. I got it source from
`apt-get source reiser4progs`. And modified the debian/control and
debian/rules files as below. But still, dh build configured with
readlines option. What should I do? Thanks.

~/reiser4progs-1.0.7$ more debian/control
Source: reiser4progs
Section: admin
Priority: optional
Maintainer: Felix Zielcke <fzielcke@z-51.de>
DM-Upload-Allowed: yes
Build-Depends: debhelper (>= 6), cdbs, libaal-dev (>= 1.0.5-2),
libaal-dev (<< 1.0.6), uuid-dev, autotools-dev
Standards-Version: 3.8.4

Package: reiser4progs-udeb
Architecture: any
XC-Package-Type: udeb
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: administration utilities for the Reiser4 filesystem
 The following utilities to manage Reiser4 filesystems are provided:
 .
   - debugfs.reiser4
   - fsck.reiser4
   - measurefs.reiser4
   - mkfs.reiser4

~/reiser4progs-1.0.7$ more debian/rules
#! /usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

SHELL           := bash

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        INSTALL_PROGRAM += -s
endif

CFLAGS += -I$(CURDIR)

CONFIGURE = CFLAGS="$(CFLAGS)" $(CURDIR)/configure --host=$(DEB_HOST_GNU_TYPE) \
                --build=$(DEB_BUILD_GNU_TYPE) \
                --prefix=/usr \
                --mandir=\$${prefix}/share/man \
                --disable-shared \
                --enable-libminimal

configure/mkreiser4-udeb configure/reiser4progs-udeb:: configure-udebs-stamp
configure-udebs-stamp::
        mkdir -p $(CURDIR)/build/udebs
        cd $(CURDIR)/build/udebs && $(CONFIGURE) --with-readline=no
        touch $@

build/mkreiser4-udeb build/reiser4progs-udeb:: build-udebs-stamp
build-udebs-stamp::
        $(MAKE) -C $(CURDIR)/build/udebs
        touch $@

install/mkreiser4-udeb:: install-mkreiser4-udeb-stamp
install-mkreiser4-udeb-stamp::
        $(MAKE) -C $(CURDIR)/build/udebs install
DESTDIR=$(CURDIR)/debian/mkreiser4-udeb/
        mv $(CURDIR)/debian/mkreiser4-udeb/usr/sbin
$(CURDIR)/debian/mkreiser4-udeb/
        rm -rf $(CURDIR)/debian/mkreiser4-udeb/sbin/make_reiser4
        rm -rf $(CURDIR)/debian/mkreiser4-udeb/usr
        rm -rf $(CURDIR)/debian/mkreiser4-udeb/sbin/{debugfs.reiser4,fsck.reiser4,measurefs.reiser4}

install/reiser4progs-udeb:: install-reiser4progs-udeb-stamp
install-reiser4progs-udeb-stamp::
        $(MAKE) -C $(CURDIR)/build/udebs install
DESTDIR=$(CURDIR)/debian/reiser4progs-udeb/
        mv $(CURDIR)/debian/reiser4progs-udeb/usr/sbin
$(CURDIR)/debian/reiser4progs-udeb/
        rm -rf $(CURDIR)/debian/reiser4progs-udeb/sbin/make_reiser4
        rm -rf $(CURDIR)/debian/reiser4progs-udeb/usr
        rm -rf $(CURDIR)/debian/reiser4progs-udeb/sbin/{mkfs.reiser4,measurefs.reiser4}

clean::
        rm -rf build
        rm -f *-stamp
-- 
竹密岂妨流水过
山高哪阻野云飞


Reply to: