OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 'make install' > create ipk
lardman
post Mar 18 2004, 01:30 PM
Post #1





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



I'm thinking that it would be nice to be able to run a command after I've cross-compiled an application (for the pdaXrom for example, e.g. an application which uses configure & make) which would act like 'make install' (and in fact read the Makefile and work out what is sipposed to happen) and create an ./ipk/ directory (or similar) with all of the files copied to the correct locations ready to be packaged.

At the moment I have to run 'make -n install' then look at the output and do it by hand.

Now I've never tried anything like this, what should I look at using? I was thinking that it could just be a shell script, but I need to read/parse the Makefile. Any suggestions as to how to do this?

Cheers,


Si
Go to the top of the page
 
+Quote Post
jbruno
post Mar 18 2004, 02:48 PM
Post #2





Group: Members
Posts: 98
Joined: 16-March 04
Member No.: 2,351



Sounds like a job for perl to me.
Go to the top of the page
 
+Quote Post
BlackCardinal
post Mar 18 2004, 07:33 PM
Post #3





Group: Members
Posts: 70
Joined: 9-March 04
From: Albany, Oregon USA
Member No.: 2,232



What I do is create an empty ./pkg/ subdirectory in my main project directory, create the ./pkg/CONTROL/control file, and specify ./pkg/usr as my PREFIX if it's a build that uses a configure script (console app) or specify ./pkg/opt/QtPalmtop as the target directory if I am using a .pro file. Then after building with make install, I can just run ipkg-build from the main project directory.
Go to the top of the page
 
+Quote Post
pgas
post Mar 18 2004, 10:47 PM
Post #4





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



Check these:

checkinstall
http://asic-linux.com.mx/~izto/checkinstall/index.php
which uses installwatch
http://asic-linux.com.mx/~izto/checkinstal...stallwatch.html
Go to the top of the page
 
+Quote Post
lardman
post Mar 19 2004, 03:14 AM
Post #5





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



@Blackcardinal: If I alter the PREFIX setting then the chances are my program won't be able to find its files, etc., especially if it's big and complicated (like R/Octave). Or am I wrong here?

@pgas: Thanks. Installwatch requires that the files are actually copied duing the 'make install' process, which isn't a good thing, checkinstall might be better I'll have to have a look at it.

Thanks,


Si
Go to the top of the page
 
+Quote Post
BlackCardinal
post Mar 19 2004, 09:18 AM
Post #6





Group: Members
Posts: 70
Joined: 9-March 04
From: Albany, Oregon USA
Member No.: 2,232



lardman,

No, you are correct, if the package depends on other libraries. But many smaller packages only use PREFIX to define their installation paths (I recently made Zaurus builds of libpng and zlib for example.)

The larger source code packages that have dependencies on other libraries usually have separate PREFIX and INSTALL_PREFIX variables. (INSTALL_PREFIX might be called something slightly different, I'm going off of memory here.) In that case, PREFIX should be left untouched but INSTALL_PREFIX can point to ./pkg/usr or wherever which makes assembling the IPK really easy.
Go to the top of the page
 
+Quote Post
lardman
post Mar 21 2004, 08:26 AM
Post #7





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



I'll take a look, cheers.

I was also thinking about altering install itself and specifying the altered one, I need to check if anything else is moved not using install though first.

Thanks for the suggestions,


Si
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th October 2014 - 08:17 PM