maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Debian package: postrm script causes errors (https://talk.maemo.org/showthread.php?t=56700)

too 2010-06-23 15:08

Re: Debian package: postrm script causes errors
 
Interesting:

tar cvf foo.tar conffiles control md5sums postinst postrm

gives me 20480 byte file.

even adding all those sizes (rounded up to 512 bytes) 7168 (and
if rounded to 1024, max 10240 bytes)

Still (gnu) tar wants to build 20480 byte file.

I'll have to figure this out... Thanks for the report.

EDIT: OK, there needs to be 1024-aligned page with zeroes, and then size multiple if 10240... Oh my, why is that tar so picky ;/

direx 2010-06-23 15:48

Re: Debian package: postrm script causes errors
 
I guess this really is a MADDE bug. I've created a debian source package with "mad dpkg-buildpackage -sa -S" and uploaded it to the autobuilder.
The package created by the autobuilder (containing the postrm script) installed fine - the same package created directly by "mad buildpackage" failed to install.

I've filed a bug about this.

too 2010-06-24 09:44

Re: Debian package: postrm script causes errors
 
I've committed fix to our repository. Will be in gitorius next week.

Anyone adventurous may want to help me testing this:

go download

http://www.iki.fi/too/sw/tarlisted/tarlisted-3.0.tar.gz

extract and compile and then run

Code:

madbin_dir=`mad query install-dir`/madbin
echo $madbin_dir
mv "$madbin_dir/tarlisted" "$madbin_dir/tarlisted.old"
mv tarlisted "$madbin_dir"

and then try rebuilding problematic package with MADDE.

QuangBui 2010-07-01 22:26

Re: Debian package: postrm script causes errors
 
I'm using the Windows version of new Nokia Qt SDK.
So can you give me advices because this download
http://www.iki.fi/too/sw/tarlisted/tarlisted-3.0.tar.gz
is for linux users.
Thanks.

too 2010-07-02 06:45

Re: Debian package: postrm script causes errors
 
Quote:

Originally Posted by QuangBui (Post 737934)
I'm using the Windows version of new Nokia Qt SDK.
So can you give me advices because this download
http://www.iki.fi/too/sw/tarlisted/tarlisted-3.0.tar.gz
is for linux users.
Thanks.

Nice that you asked...

I just build windows binary for someone who privately asked:

In windows, first start 'MADDE Terminal'

In case of Nokia Qt SDK, launch command

C:\NokiaQtSDK\Maemo\4.6.2\madde.bat

(either via command line or via file browser)

then enter

Code:


$ mad curl -o tarlisted.exe http://www.guru-group.fi/too/sw/tarlisted/tarlisted30.exe
$ mv /madbin/tarlisted.exe /madbin/tarlisted.exe.old
$ mv tarlisted.exe /madbin

command lines start with '$'. concatenate yourself if splitted.

Venemo 2010-07-02 06:57

Re: Debian package: postrm script causes errors
 
Just an idea:
Check whether the file uses UNIX line endings.

I once had a similar script which had an issue because I saved it with Windows line endings.

too 2010-07-02 13:40

Re: Debian package: postrm script causes errors
 
Windows line endings are problematic, but not cause here.

tliljend 2010-07-08 23:15

Re: Debian package: postrm script causes errors
 
Thanks, that worked for me on similar case.

benlau 2010-08-04 15:41

Re: Debian package: postrm script causes errors
 
Quote:

Originally Posted by too (Post 727410)
I've committed fix to our repository. Will be in gitorius next week.

Anyone adventurous may want to help me testing this:

go download

http://www.iki.fi/too/sw/tarlisted/tarlisted-3.0.tar.gz

extract and compile and then run

Code:

madbin_dir=`mad query install-dir`/madbin
echo $madbin_dir
mv "$madbin_dir/tarlisted" "$madbin_dir/tarlisted.old"
mv tarlisted "$madbin_dir"

and then try rebuilding problematic package with MADDE.

Thanks for the solution!

I got the same problem , but I didn't make any script like postrm , I just added few more images to the package. Anyway, it has solved my problem.


All times are GMT. The time now is 20:18.

vBulletin® Version 3.8.8