[arch-general] howto debug why package() make install doesn't copy one file to $pkgdir?

David C. Rankin drankinatty at suddenlinkmail.com
Tue Feb 1 11:38:41 EST 2011


Guys,

  The PKGBUILD for tqtinterface I'm working on seems to omit placing the file
'uic-tqt' in the $pkgdir when calling 'make DESTDIR="$pkgdir/" install'. What is
strange is it seems all other parts of the package get put in $pkgdir.

  The qtinterface Makefile.am specifies uic-tqt should be part of the install:

install-exec-local:
        test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
        cp -Rp "$(srcdir)/tqt-replace" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/tqt-replace-stream" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/moc-tqt" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/uic-tqt" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/mcopidl-tqt" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/dcopidlng-tqt" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/dcopidl2cpp-tqt" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/convert_qt_tqt1" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/convert_qt_tqt2" "$(DESTDIR)$(bindir)/"
        cp -Rp "$(srcdir)/convert_qt_tqt3" "$(DESTDIR)$(bindir)/"
        sed -i '$(QT_VER_REPLACE)' "$(DESTDIR)$(bindir)/tqt-replace"
        sed -i '$(QT_VER_REPLACE)' "$(DESTDIR)$(bindir)/tqt-replace-stream"
        sed -i '$(QT_HVER_REPLACE)' "$(srcdir)/tqt.h"
        cp -Rp "$(srcdir)/tqt4/" "$(DESTDIR)$(includedir)/"

  Looking at the $pkgdir/usr/bin, all others make it, but not uic-tqt:

10:26 archangel:~/arch/pkg/trinity-notes/tqtest/pkg> ls -1 usr/bin
convert_qt_tqt1
convert_qt_tqt2
convert_qt_tqt3
dcopidl-tqt
dcopidl2cpp-tqt
dcopidlng-tqt
mcopidl-tqt
moc-tqt
tmoc
tqt-replace
tqt-replace-stream

The list above corresponds to each file specified in the install-exec-local
definition, ...except uic-tqt. How do I go about debugging why this file is omitted?

As a workaround, I can just do a manual copy in the PKGBUILD, but that seems
like a hack. What I want to do is fix the issue so we get a clean set of
PKGBUILDs. Any suggestions where to look?



-- 
David C. Rankin, J.D.,P.E.


More information about the arch-general mailing list