On Mon, 11 Nov 2013 23:40:46 +0600, Andrey Rahmatullin wrote:

>> >> for d in glimpse.1 glimpseindex.1 glimpseserver.1 ; do \
>> >>           /usr/bin/install -c -m 444 $d /usr/share/man/man1 ; \
>> >>   done
>> > 
>> > Obviously, that should be ${DESTDIR}/usr/share/man/man1 .

Hmm... I don't know if that is accurate, because it is at the end of 
binary package *building*, not the binary package *installation*. 

I took a look at the good build, which is glimpse-4.18.5, and I see:

for d in glimpse.1 glimpseindex.1 glimpseserver.1 ; do \
                /usr/bin/install -c -m 444 $d /export/build/glimpse/bld/
glimpse-4.18.5/debian/tmp/usr/share/man/man1 ; \
        done

what else is different between the good build and mine is that the 
mkinstalldirs step. The good build is:

./mkinstalldirs /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp/usr/
bin /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp/usr/share/man/man1
mkdir /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp
mkdir /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp/usr
mkdir /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp/usr/bin
mkdir /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp/usr/share
mkdir /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp/usr/share/man
mkdir /export/build/glimpse/bld/glimpse-4.18.5/debian/tmp/usr/share/man/
man1

and mine is:

./mkinstalldirs /usr/bin /usr/share/man/man1

and there are no directories created after it. 

I post the relevant part of the logs for the good build (glimpse-4.18.5) 
and mine (glimpse-4.18.6) at, 
http://paste.debian.net/65265/
http://paste.debian.net/65266/

>> So given the rules file posted in OP, how should I change it?
>> Or is it somewhere else that I should change?
> You need to fix the upstream Makefile.

I first suspect the rules file is because, the Makefile and Makefile.in 
are both the same between the good build (glimpse-4.18.5) and mine 
(glimpse-4.18.6). The only different is the rules file. Mine is, as 
posted in OP:

%:
        dh $@  --with autotools-dev

and the good build is more complicated: 

----------------------------
#!/usr/bin/make -f

build: build-stamp
build-stamp:
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man
        $(MAKE)
        touch $@

install: build
        dh_clean -k
        $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr

clean:
        rm -f build-stamp
        dh_clean
        -$(MAKE) distclean

binary-indep:

binary-arch binary: build install
        dh_install -a --sourcedir=debian/tmp
        dh_installchangelogs -a ChangeLog
        dh_installdocs -a
        dh_compress -a
        dh_fixperms -a
        dh_strip -a
        dh_shlibdeps -a
        dh_gencontrol -a
        dh_md5sums -a
        dh_builddeb -a

.PHONY: build binary binary-arch binary-indep clean install
----------------------------

I'm explaining this because I still don't know where exactly should I 
fix. 

I can sure try to fix the upstream Makefile, Makefile.in to be exactly I 
suppose, but don't know where and how, so as to fix both problems 
reported above. I've posted the Makefile.in file at 
http://paste.debian.net/65270/.

Please help. 
Thanks



-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/l5rc9n$nao$3...@ger.gmane.org

Reply via email to