![]() |
Uploading to Extras-Devel with no source?
Hey guys,
I want to upload my Easy Debian package to Extras Devel. It is a bunch of shell scripts, config files, and a couple of binaries (kernel modules, etc) contributed by others (I don't have the source code for them). I have built the package with Khertan's PyPackager, and the resulting .deb installs well. However, it seems that I can't just upload the .deb to Extras-Devel; I have to make a "source package" that Autobuilder will like. I don't have such a thing; does this mean I can't upload to Extras-Devel? Is there some way I can disassemble my .deb package into a file structure and then re-assemble it in a way that can be uploaded to Extras-Devel? |
Re: Uploading to Extras-Devel with no source?
I usually build my packages by in scratchbox or whereever, make a directory <name>-<version>with files in, make a Makefile that copies into ${DESTDIR}, dh_make in the directory, edit the needed files in debian/, and dpkg-buildpackage has one for building a source package.
See http://trac.tspre.org/projects/deble...-kdm-autologin for an example package i've built like that. |
Re: Uploading to Extras-Devel with no source?
I don't use scratchbox, I do everything on-tablet. I don't compile. I have no source.
I have a pre-assembled .deb that I'd like to upload, and so this means I need to "explode" it back to a directory structure (including control info, postinst and postrm scripts) and assemble it into a "source" package using Code:
dpkg-buildpackage -rfakeroot -sa -S |
Re: Uploading to Extras-Devel with no source?
If you don't mind doing it in Debian (chroot, apt-get install dpkg-dev) [because Maemo's dpkg-buildpackage on tablet isn't exactly noteworthy or properly operational last i checked].
Trust me, you're much better off making a debian source package from scratch with dh_make and write a small Makefile for installation into right paths, and then assembling it with dpkg-buildpackage (i know you don't have sources to compile, but installation into a directory is still a build process item). I did this with 60+ packages from Deblet which was in same form as your constructed deb, and having to maintain it afterwards, release new versions, etc., is just so much easier, and it does a lot of work for you that you had to do by hand before :P |
Re: Uploading to Extras-Devel with no source?
Using Stskeeps example, it looks like I need to make a directory that has all of the folders, and then another folder named "debian" with the control files...
So I did this: Code:
mkdir mypackage Now what do I do about the "Makefile" that I see in the Stskeeps example? Do I need it? What should it contain? EDIT: "If you don't mind doing it in Debian.." Hee hee, of course I don't! :D Code:
/mypackage/ |
Re: Uploading to Extras-Devel with no source?
Quote:
If you want to hop on IRC, i'll guide you through getting a proper debian package going from bottom up, if you want to. |
Re: Uploading to Extras-Devel with no source?
those dpkg-deb commands explode my assembled deb into the directory structure I list in my post. Now that I have everything all unpacked, I want to know:
I would prefer to hack this out in the forums, so other people can use these posts to do this themselves... |
Re: Uploading to Extras-Devel with no source?
You can upload it. See the section on non-free (binary only) packages here:
http://wiki.maemo.org/Uploading_to_Extras Quote:
|
Re: Uploading to Extras-Devel with no source?
Quote:
|
Re: Uploading to Extras-Devel with no source?
Quote:
Does the non-free stuff show up in the "normal" Application Manager or does the user have to change their repositories? |
Re: Uploading to Extras-Devel with no source?
It should. Just check in your app manager that the extra-devel repository has both free and non-free in the components field.
Quote:
|
Re: Uploading to Extras-Devel with no source?
See the source of the packages culmus or locale-resolver-extra (in extras repository) for two examples of packages that the autobuilder accepts.
|
Re: Uploading to Extras-Devel with no source?
I'm very interested in this thread as I'm in basically the same situation as qole: I've got a package right now that consists of some shell scripts and a few pre-compiled kernel modules. Unfortunately I don't have access to a full debian system (I'm running Fedora boxes), but the lack of a proper makefile/etc is also a hinderance, so the non-free looks like a good way to go at the moment. The only catch is whenever I try to upload the package to my garage page using SCP I keep getting this error:
Permission denied (publickey,keyboard-interactive). lost connection Perhaps I'm missing something... do you have to sign the deb itself or anything in order to upload it? (All the information I've found says you only ever sign the .changes file, which obviously in this case doesn't apply), but surely there's some form of authentication or passphrase checking/etc that I'm missing... |
Re: Uploading to Extras-Devel with no source?
[QUOTE=jolouis;232193]The only catch is whenever I try to upload the package to my garage page using SCP I keep getting this error:
Permission denied (publickey,keyboard-interactive). lost connection[/WUOTE] This sounds like #3354 which, if it is, needs re-opening with the issue. It's worth clarifying, however, that you're not uploading anything to "your garage page". Garage != Extras(-devel), and what you're doing is uploading your package to the incoming queue of packages for the Extras repository. Quote:
|
Re: Uploading to Extras-Devel with no source?
OK, not much time at the moment, but I got things working, so I'll post a quick how-to with no links or anything; if someone finds my technique useful, I'll gladly expand it to include detail where needed.
1. Make a GPG key on my desktop Ubuntu machine. 2. Copy the ~/.gnupg directory on my Ubuntu machine to my tablet: /home/user/.gnupg 3. In my tablet's Debian chroot (as root), Code:
apt-get install devscripts dput 5. Use the "debbie" command to go into the Debian chroot as "user" (rather than root). Go to the PyPackager project directory. 6. Find my key ID: Code:
gpg --list-keys Code:
debsign -k123X4567 my-package-name-0.3.2-1_armel.changes Code:
dput -f diablo-extras-devel-non-free my-package-name-0.3.2-1_armel*.changes EDIT: I have also created an rsa ssh key on my tablet, so I have the /home/user/.ssh/id_rsa file. I have also copied the contents of /home/user/.ssh/id_rsa.pub to the ssh key field on my garage profile page. These steps are explained in the wiki. |
Re: Uploading to Extras-Devel with no source?
Nice tutorial (though I'm biased as I upload anything I debianise to free, naturally :p) but due to a recent improvement by X-Fade, it is no longer required to sign packages.
P.S I use scratchbox in hardy fine, install and leave the burden that is on device compiling! :P :) |
Re: Uploading to Extras-Devel with no source?
I'd like to upload to free as well, but I'm just not capable enough with this stuff to do it. I really hope Khertan releases a new version of PyPackager that makes it possible to upload packages like mine again.
|
Re: Uploading to Extras-Devel with no source?
I mentioned our new Debmaster, Jeremiah, in the Tear 0.3 thread, and he appeared.
Let's see if he'll do it again... Jeremiah! Jeremiah! Jeremiah! |
Re: Uploading to Extras-Devel with no source?
I'm glad you bumped this thread qole; today I just started working on getting something uploaded to Extras/[-devel] e.g. just the dh_make step, and I think this'll come in quite handy. Thanks!
|
Re: Uploading to Extras-Devel with no source?
Sorry to be so absent, I am trying to be more active in ITt. :-/
Just for the record, there is no _requirement_ that a deb package be accompanied with source. Debian _requires_ it, but the Maemo packaging policy does not, though that might change in the future. |
Re: Uploading to Extras-Devel with no source?
Quote:
|
Re: Uploading to Extras-Devel with no source?
It turns out, that despite the name of this thread, the problem is not a source requirement; it is the autobuilder. It would be wonderful to have a program like PyPackager that would make complete packages that are able to be fed to the autobuilder, even though they don't need compiling. That is, the autobuilder will simply take the package and build the deb without attempting to compile anything.
But this is a cheat, and mainly why I decided to go to the non-free repository. The whole point of a free repository with source code that is guarded by an autobuilder is that the packages can be rebuilt for new versions of the OS. If you cheat the system and upload packages like mine (with binary bits), it defeats the purpose. The ideal situation would be to re-package the binary bits from my package as separate packages. For instance, Matan's dmloop kernel modules could be packaged separately, as could his patched Matchbox window manager. Bundyo's hostwin app, written in Vala, is another tricky bit. Most of these binary bits have been moved to my easy-chroot package, by the way, if you're looking for them. And even though I'm uploading to non-free, I'm uploading source packages which include all of my scripts and any source code for other bits that I can get, like the hostwin app. |
Re: Uploading to Extras-Devel with no source?
Quote:
Quote:
Quote:
|
Re: Uploading to Extras-Devel with no source?
Quote:
|
All times are GMT. The time now is 05:17. |
vBulletin® Version 3.8.8