how to build our-own package

Asked by wu fengyi

We want to add a library to control our device on ubuntu, as far as I know, I need to build my own source code and make it as a package.But I do not know how to do it.
I saw a lot of materials online that described how to download ubuntu existing ubuntu package, customize it and then submit the patch, but how can I create a fresh new our own ubuntu package(library)?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
wu fengyi
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I suggest that you start with https://help.launchpad.net/Packaging
especially the items

* Personal package archives
...
 * Building a source package
 * Uploading a source package

Revision history for this message
wu fengyi (wufengyi) said :
#2

Hi,Hampl

thanks for the quick help!I will check this link.
by the way, if we want to add a new kernel driver(with new kernel source code) into ubuntu source tree, not package, what is the standard way?
the link you posted above is only for building and submititng package(application),right?

Thanks.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

You can provide any software in a PPA, including a modified version of the kernel packages.

If you want to provide a new kernel driver to everybody who uses the Linux kernel, then you better do that via https://kernel.org but I do not know any details about the processes to be followed there.

Revision history for this message
wu fengyi (wufengyi) said :
#4

Thanks,I see

I am now learning how to upload my own package into PPA,I saw publishing openPGP key is needed.
But I am keep getting below error

could not communicate with server"keyserver.ubnutu.com:11371":Could not connect:Socket IO timed out

do you have any idea?I think my network is ok, I can ping google.

Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

It seems that you made a typo error in the server name, "ubnutu" instead of "ubuntu".

Revision history for this message
wu fengyi (wufengyi) said :
#6

Hampl, sorry,the typo is wrong here, but on ubuntu password and keys setting , the server I set is keyserver.ubuntu.com:11371

I can not put the error image here,so I typied it.

do you know why this is happening.

Thanks.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

I am no expert in that matter. Try following the instructions
https://help.launchpad.net/YourAccount/ImportingYourPGPKey
or
https://help.ubuntu.com/community/GnuPrivacyGuardHowto
I do not see a reference to port 11371 in these instructions, so maybe you better remove that from your settings.
In any case, there are different methods available for uploading your key; you might try other ones.

Revision history for this message
wu fengyi (wufengyi) said :
#8

thank you, I will try to find that out.