Package not built correctly

Asked by Ishan Surana

I am new to Launchpad. While experimenting with creating and publishing a package, I had followed the following steps:-
1) Create PPA tempest related to my account.
1) Make the folder structure with both debian and DEBIAN directories to build for both launchpad and local .deb file
2) Used debulid -S to build files from source.
3) Used dpkg-deb --build mdcd_1.0.1_all to build deb
4) Upload changes file using dput -d ppa:ishan-surana/tempest mdcd_1.0_source.changes
The relevant tree after following the steps are as follows:-
.
├── mdcd_1.0.1_all
│   ├── debian
│   │   ├── changelog
│   │   ├── control
│   │   ├── files
│   │   ├── postinst
│   │   ├── prerm
│   │   └── rules
│   ├── DEBIAN
│   │   ├── changelog
│   │   ├── control
│   │   ├── postinst
│   │   ├── prerm
│   │   └── rules
│   └── usr
│   └── bin
│   └── mdcd
├── mdcd_1.0.1_all.deb
├── mdcd_1.0.1.dsc
├── mdcd_1.0.1_source.build
├── mdcd_1.0.1_source.buildinfo
├── mdcd_1.0.1_source.changes
├── mdcd_1.0.1_source.ppa.upload
└── mdcd_1.0.1.tar.gz

Note that the usr/bin/mdcd is a shell script that is the actual code I want to run/install in the relvant path. Hence, when I test local install using sudo apt install ./mdcd_1.0.1_all.deb , and it got installed correctly in the relevant path
$ which mdcd
/usr/bin/mdcd

However, on the Launchpad build, things seem different. I couldn't use the mdcd script after installing and the post install script had also given error related to this (/usr/bin/mdcd not found) while installing from apt using my PPA. On donwloading the deb build from PPA builds and inspecting, I saw the issue:-
.
├── DEBIAN
│   ├── control
│   ├── md5sums
│   ├── postinst
│   └── prerm
└── usr
    └── share
        └── doc
            └── mdcd
                └── changelog.gz

This is the tree formed. My source code is not there anywhere here (/usr/bin/mdcd). How do I fix this ensuring my package is uploaded/built correctly?

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ishan Surana (ishan-surana) said :
#1
Revision history for this message
Manfred Hampl (m-hampl) said :
#2

I assume that you need https://canonical-ubuntu-packaging-guide.readthedocs-hosted.com/en/latest/reference/debian-dir-overview/#the-install-file

Attention: The Ubuntu Packaging and Development guide is currently undergoing a major overhaul to bring it up to date.

Remark: Having both a debian and a DEBIAN directory (with different contents) is very unusual and confusing. As far as I know it should be debian with lower case letters only.

Can you help with this problem?

Provide an answer of your own, or ask Ishan Surana for more information if necessary.

To post a message you must log in.