View Full Version : Upload to extras: help needed
d-iivil
01-26-2010, 12:17 PM
Hi there folks,
I need a bit help for submitting Maemo 5 theme to Extras-devel. So far I've read the wiki for few hours and haven't learned all the things I should know.
What I've done so far:
- made a theme
- installed scratchbox and got it running fine on Ubuntu
- created a garage-account and got also invitation for uploading stuff onto extras
- made a .deb out of my theme by running these commands on Ubuntu:
chmod -R 775 themedirectory
dpkg -b themedirectory
Theme installs and uninstalls fine from .deb file on N900 :)
But what I need to do from now on? I have no idea what files I should create in scratchbox before typing this (told here http://wiki.maemo.org/Uploading_to_Extras ):
dpkg-buildpackage -rfakeroot -sa -S -i
Typing that inside of my themefolder produces error that I now don't have on my hands (I'll edit it into this post tomorrow).
Thanks in advace.
d-iivil
01-27-2010, 05:06 AM
Okay.. I managed to upload the package to extras-dev, but it won't install correctly. For some reason all files are missing after the installation. All folders are created, but not a single file is unpacked from the package.
Here's the builder logs:
https://garage.maemo.org/builder/fremantle/iivilsteel_1.3.4/
And I also uploaded the .dsc, .tar.gz and .changes -files over here if some one could tell me what I'm doing wrong:
http://www.firenote.com/D-Iivil/iivilsteel.zip
I'd really appreciate the help.
TNiga
01-27-2010, 05:28 AM
I'm guessing that you need a Makefile in the src folder and the Makefile should have instructions to install the files in right places.
Your Makefile could look something like this:
# Makefile for iivisteel theme
# Note that the whitespace in beginning of the lines
# below needs to be tab, not a few spaces.
iivilsteel:
cp -R opt/* /opt/ ; \
cp -R etc/* /etc/ ; \
cp -R usr/* /usr/
THIS COULD BE WRONG!!!
d-iivil
01-27-2010, 06:19 AM
I'm guessing that you need a Makefile in the src folder and the Makefile should have instructions to install the files in right places.
Your Makefile could look something like this:
# Makefile for iivisteel theme
# Note that the whitespace in beginning of the lines
# below needs to be tab, not a few spaces.
iivilsteel:
cp -R opt/* /opt/ ; \
cp -R etc/* /etc/ ; \
cp -R usr/* /usr/
THIS COULD BE WRONG!!!
Thanks, I shall give it a try.
d-iivil
01-27-2010, 06:45 AM
Okay.. the Extras Assistant seems to be down now :-/
But I noticed that my .tar.gz -file is ~6megs and after I've uploaded it to autobuilder and builder has done it's tricks the final .deb -size on the repos is shrinked down to ~0,9megs and all the files are missing.
I also cannot seem to find any information about that Makefile -thing from google. There's no mention in the wiki that there should be something like that on the /src -folder.
I'm confused.
I uploaded my project folder here:
http://www.firenote.com/D-Iivil/iivilsteel-1.3.5.zip
That folder is located in scratchbox and where I type this to build the source package:
dpkg-buildpackage -rfakeroot -sa -S -i
Could someone who knows this stuff look into that zip and tell me what's wrong in it?
TNiga
01-27-2010, 07:13 AM
After a cup of coffee I think that the Makefile isn't needed but the instructions to copy files to right places should probably be in the rules file in debian folder.
d-iivil
01-27-2010, 08:42 AM
After a cup of coffee I think that the Makefile isn't needed but the instructions to copy files to right places should probably be in the rules file in debian folder.
Wiki needs an update for idiots like me :-D
I could hardly find anything understandable info about creating a right kind of "rules" -file. I took the rules-file from theme maker's output. I found now a site about dh_make and I'm trying to get it create the rules-file and see what happens...
d-iivil
01-28-2010, 04:32 AM
No.. still no luck.
Autobuilder loses all upstream data after building the deb from sources. If I build the .deb on scratchbox it's allright.
What I'm doing wrong??
TNiga
01-28-2010, 06:12 AM
I just checked out what a source package of theme reflect looks like and I think you could look into it too, should be helpful. Download the package in scratchbox with command "fakeroot apt-get source reflect" and after that you can find folder reflect-0.77 in your current folder.
d-iivil
01-28-2010, 06:42 AM
I just checked out what a source package of theme reflect looks like and I think you could look into it too, should be helpful. Download the package in scratchbox with command "fakeroot apt-get source reflect" and after that you can find folder reflect-0.77 in your current folder.
YES! I figured that out myself hour ago and now I'm almost there :)
You were right at the beginning, the problem was the rules -file. There should be an easy way to create functional rules-file for dummies like me :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.