Debian Package Installs No Binaries, But Lesspipe Outputs that there are binaries [closed]

StackOverflow https://stackoverflow.com/questions/16257254

  •  13-04-2022
  •  | 
  •  

Question

I have created a .deb for my libspellcheck library. Debuild builds it correctly, but when I try to install it no binary files get included. However, when I do $ lesspipe libspellcheck_1.15-0ubuntu1_amd64.deb it returns this:

libspellcheck_1.15-0ubuntu1_amd64.deb:
 new debian package, version 2.0.
 size 138518 bytes: control archive= 770 bytes.
     545 bytes,    12 lines      control              
     577 bytes,     8 lines      md5sums              
 Package: libspellcheck
 Version: 1.15-0ubuntu1
 Architecture: amd64
 Maintainer: Me <me@me.com> (Not Really)
 Installed-Size: 525
 Depends: lib32gcc1 (>= 1:4.1.1), lib32stdc++6 (>= 4.1.1), libc6-i386 (>= 2.4)
 Section: unknown
 Priority: optional
 Homepage: http://libspellcheck.codeplex.com
 Description: The libspellcheck library & spellcheck application
  The libspellcheck C++ static library is designed to check the spelling of a string against a
  dictionary file. The command-line spellcheck application is bundled with this package.

*** Contents:
drwxr-xr-x root/root         0 2013-04-27 17:46 ./
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/etc/
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/etc/english.dict/
-rw-r--r-- root/root    442318 2013-04-20 10:21 ./usr/etc/english.dict/english.dict
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/bin/
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/bin/spellcheck/
-rwxr-xr-x root/root     18016 2013-04-27 17:46 ./usr/bin/spellcheck/spellcheck
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/lib/
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/lib/libspellcheck.a/
-rw-r--r-- root/root     14952 2013-04-27 17:46 ./usr/lib/libspellcheck.a/libspellcheck.a
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/share/
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/share/doc/
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/share/doc/libspellcheck/
-rw-r--r-- root/root      1229 2013-04-27 16:22 ./usr/share/doc/libspellcheck/copyright
-rw-r--r-- root/root       191 2013-04-27 16:20 ./usr/share/doc/libspellcheck/changelog.Debian.gz
-rw-r--r-- root/root       200 2013-04-27 16:09 ./usr/share/doc/libspellcheck/README.Debian
-rw-r--r-- root/root      1240 2013-01-27 18:53 ./usr/share/doc/libspellcheck/README
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/include/
drwxr-xr-x root/root         0 2013-04-27 17:46 ./usr/include/spellcheck.h/
-rw-r--r-- root/root      1258 2013-04-20 10:21 ./usr/include/spellcheck.h/spellcheck.h

The install file in the debian directory looks like this:

spellcheck /usr/bin/spellcheck
libspellcheck.a /usr/lib/libspellcheck.a
spellcheck.h /usr/include/spellcheck.h
english.dict /usr/etc/english.dict

And my makefile:

#    SPELLCHECK Makefile
#    Copyright (C) 2013  Ian Duncan
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

all: libspellcheck spellcheck

spellcheck: meta.o spellcheck.o
    g++ -m32 -o spellcheck spellcheck.o meta.o libspellcheck.a

libspellcheck: checker.o
    ar -cvr libspellcheck.a checker.o

spellcheck.o: spellcheck.cpp
    g++ -m32 -Wall -c spellcheck.cpp

meta.o: meta.cpp
    g++ -m32 -Wall -c meta.cpp

checker.o: checker.cpp
    g++ -m32 -Wall -c checker.cpp

clean:
    rm -rf *o

install:
    mkdir -p $(DESTDIR)/usr/etc/
    cp libspellcheck.a $(DESTDIR)$(libdir)/libspellcheck.a
    cp spellcheck.h $(DESTDIR)$(includedir)/spellcheck.h
    cp spellcheck $(DESTDIR)$(bindir)/spellcheck
    cp english.dict $(DESTDIR)/usr/etc/english.dict
    chmod 777 $(DESTDIR)/usr/etc/english.dict


deinstall:
    rm /usr/lib/libspellcheck.a
    rm /usr/include/spellcheck.h
    rm /usr/bin/spellcheck
    rm /usr/etc/english.dict
    rm /usr/local/man/man1/spellcheck.1.gz

I looked at the Debian documentation for the install file, and it was kind of vague for me. What am I doing wrong?

Edit: I realize I put the filename and the directory in the install file when I shouldn't have. I fixed that, and it still doesn't work.

Was it helpful?

Solution

Try:

spellcheck /usr/bin
libspellcheck.a /usr/lib
spellcheck.h /usr/include
english.dict /usr/etc

If you notice, your files are created under the directories of the same name

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top