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

IPB

Welcome Guest ( Log In | Register )

6 Pages V  < 1 2 3 4 > »   
Reply to this topicStart new topic
> Packages Repository, fluxbox - idesk - etc
ZDevil
post May 6 2007, 06:44 AM
Post #16





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Just checked the 4.1/arm packages feeds. py-cairo is also missing there ...
Go to the top of the page
 
+Quote Post
jpmatrix
post May 6 2007, 09:04 AM
Post #17





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



QUOTE(jpmatrix @ May 6 2007, 12:24 AM)
QUOTE(ZDevil @ May 5 2007, 12:11 PM)
I wonder if the feed http://www.planetofidiots.com/pub/OpenBSD/...ackages/zaurus/ is still working. It is not browsable.
*


apparently not
anyway, i'm beginning to compile some packages :

http://matrixmen.free.fr/zaurus/openbsd/pkg4.1/

more will come later
*



updated & new url:
http://matrixmen.free.fr/zaurus/openbsd/pkg4.1/all/

ftped with mc under OpenBSD Zaurus wink.gif
Go to the top of the page
 
+Quote Post
ZDevil
post May 9 2007, 02:28 AM
Post #18





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Cool. Thanks a lot. Now go installing everything.
Will hop on the compiling bandwagon once i receive my ambicom wifi cf. wink.gif
Go to the top of the page
 
+Quote Post
ZDevil
post May 13 2007, 12:05 AM
Post #19





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Hey, just compile emacs-unicode2 (emacs 23.0.0.1) on board!
Compilation feels faster than using the zgcc toolchain on pdaX. Maybe my illusion because i was doing it on SD card under pdaX rolleyes.gif
This is gonna be my virgin port for OpenBSD/Zaurus. wink.gif

Next: Chinese inputmethod, xchm, and a few roguelikes.
Go to the top of the page
 
+Quote Post
ZDevil
post May 13 2007, 11:21 PM
Post #20





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



A quick question about compilation flags:

It's suggested that we add -mcpu=xscale as optimizing CFLAGS/CPPFLAGS.
Then how about other optimization options, such as -O2, which is the default when compiling apps for linux? I've searched the web for a while and don't find anything discussing this directly. Thanks. smile.gif
Go to the top of the page
 
+Quote Post
ZDevil
post May 14 2007, 08:28 AM
Post #21





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



(Disclaimer: The following report is true as of 14 May 2007; things may change when a more complete and updated feed comes up.)

So far, I've come across these three "unofficial" user feeds (well, when will there be an official package feed for Zaurus? rolleyes.gif):

http://www5.autistici.org/c0de/obsd/pkg4.1/
http://matrixmen.free.fr/zaurus/openbsd/pkg4.1/all/
http://www.planetofidiots.com/pub/OpenBSD/...ackages/zaurus/ (it's back with more updated packages)

First of all, a millions thanks to the contributors for your hard efforts to make these ports ready for OpenBSD/Zaurus! wink.gif

The packages in the first two seem to largely get along well (except a few), but the third one has newer stuff that don't seem to be compatible with many packages in the first two feeds, notably things dependent on or shared with atk, glib and gtk.

If you so happened to have installed things from all the three feeds (like what i did earlier on ... tongue.gif I have to admit that i am kinda greedy ... ),
then you should first use pkg_delete -ci PACKAGENAME to uninstall the conflicting packages, and those that are associated with them -- say YES when asked whether to delete all those other associated packages.
Then try to install the ones that fit.
But when installing the suitable ones, chances are that installation will run into errors saying some conflicting libraries and files are already present. It takes a while for a list of these files to come up.
Look at the list and manually delete all the unfitting libs.
Then install the desired packages again. That should do the trick (at least to a large extent).

I have to admit that this is a kinda stupid way. Since there is no port trees for the unofficial packages, so i have to do trial and error to find out the (in)compatibilities among the packages.

I've been reinstalling and uninstalling for a few times to ensure things are in harmony.
It seems i have to taken out the newer atk-1.18.0p0.tgz, glib2-2.12.11p0.tgz and gtk+2-2.10.10.tgz out from the third feed and keep using the older ones from the first two feeds if i want to have a maximal set of working packages in the system.

For instance, firefox is missing in the third feed (for now perhaps?) and it can only work with the older libs from the first two feeds.

I believe having ready made packages is nice, which can save a huge chuck of time on the users' part. Yet things would be much smoother if there is one central (official) feed so that things are updated uniformly and consistently. But correct me if i am wrong.

This post has been edited by ZDevil: May 14 2007, 09:18 AM
Go to the top of the page
 
+Quote Post
ZDevil
post May 15 2007, 12:28 AM
Post #22





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



I have already started porting apps not found in the three feeds. smile.gif

The native toolchain which is part of the system installation works like a charm.

So far I have finished a tiny set: emacs-unicode2, icewm 1.30 (latest), SDL, SDL-mixer, SDL-image, SDL-ttf, SDL-net, and a few others are coming.

Now thinking of making the builds into PKG, but still cannot find where to start to package things up after reading http://www.openbsd.org/porting.html and iamsmith's post about ports and packages in this forum. Can someone drop me a pointer so that i can go check it out myself?

It would be great if there is a short demo/example of how to package. Thanks in advance!

I don't have my own free web space to host the builds, but i am more than happy to send mine to any of those feeds, just as what i can do to contribute for now. Anyone interested?


PS I find that the first feeds I mention in the previous largely follow the content of the arm feeds, plus more nice stuff (such as firefox).
Go to the top of the page
 
+Quote Post
mathemajikian
post May 15 2007, 02:38 AM
Post #23





Group: Members
Posts: 304
Joined: 8-July 06
From: United Kingdom for now....
Member No.: 10,349



QUOTE(ZDevil @ May 15 2007, 08:28 AM)
Can someone drop me a pointer so that i can go check it out myself?

Here's a simple example:

# cd /usr/openbsdports/sysutils/colorls
# more Makefile

CODE
$OpenBSD: Makefile,v 1.12 2006/10/21 09:42:32 naddy Exp $

COMMENT=        "ls that can use color to display file attributes"

DISTNAME=       ls-3.9
PKGNAME=        color${DISTNAME}
CATEGORIES=     sysutils

MAINTAINER=     Christian Weisgerber <naddy@openbsd.org>

# BSD
PERMIT_PACKAGE_CDROM=   Yes
PERMIT_PACKAGE_FTP=     Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=   Yes

MASTER_SITES=   http://sites.inka.de/~mips/unix/distfiles/

WRKDIST=        ${WRKDIR}/ls   <---- this is the build directory in /usr/openbsdports/sysutils/colorls/w-colorls-3.9
NO_REGRESS=     Yes

pre-patch:
       cp ${WRKSRC}/ls.1 ${WRKSRC}/colorls.1

.include <bsd.port.mk>


# cd /usr/openbsdports/sysutils/colorls/pkg
# more PLIST

CODE
@comment $OpenBSD: PLIST,v 1.2 2005/09/05 11:55:47 espie Exp $
bin/colorls
@man man/cat1/colorls.0


You should be able to figure it our from here.
Go to the top of the page
 
+Quote Post
jpmatrix
post May 15 2007, 02:44 AM
Post #24





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



QUOTE(ZDevil @ May 15 2007, 10:28 AM)
I don't have my own free web space to host the builds, but i am more than happy to send mine to any of those feeds, just as what i can do to contribute for now.  Anyone interested?


i can give you some space on my website if you want, i think i've 10GB.
but you'll have to wait for a week as i'm on holidays until may 23 smile.gif
Go to the top of the page
 
+Quote Post
ZDevil
post May 15 2007, 03:03 AM
Post #25





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Thanks, mathemajikian. This seems a very good starting point. Does it mean you have to write the Makefiles and PLIST by hand yourself? And how do you package up the builds into the package .tgz ? I have taken a brief look into the file structure of some sample packages, but I just want to be sure what I do is the standard way of porting. wink.gif

To jpmatrix: thanks for offering to host the packages! Coincidentally I will be away for a week from 24 May. laugh.gif Will take this couple of weeks to explore and do experiments.

Now building xchm and its dependencies (wxGTK, xmlpc++, chmlib) ...
Go to the top of the page
 
+Quote Post
mathemajikian
post May 15 2007, 03:16 AM
Post #26





Group: Members
Posts: 304
Joined: 8-July 06
From: United Kingdom for now....
Member No.: 10,349



QUOTE(ZDevil @ May 15 2007, 11:03 AM)
Thanks, mathemajikian. This seems a very good starting point. Does it mean you have to write the Makefiles and PLIST by hand yourself? And how do you package up the builds into the package .tgz ?


If you are trying to create a package for a port which isn't already in the ports collection, then you'll have to generate the Makefile and PLIST plus any other misc files. However, if you are just building ports which are already in the ports collection then:

# cd /usr/ports/packages/arm/all
# ls

and you'll see that the packages have been created for you during the normal make install process. I'm assuming you knew this.........
Go to the top of the page
 
+Quote Post
ZDevil
post May 15 2007, 03:24 AM
Post #27





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



QUOTE(mathemajikian @ May 15 2007, 01:16 PM)
QUOTE(ZDevil @ May 15 2007, 11:03 AM)
Thanks, mathemajikian. This seems a very good starting point. Does it mean you have to write the Makefiles and PLIST by hand yourself? And how do you package up the builds into the package .tgz ?


If you are trying to create a package for a port which isn't already in the ports collection, then you'll have to generate the Makefile and PLIST plus any other misc files. However, if you are just building ports which are already in the ports collection then:

# cd /usr/ports/packages/arm/all
# ls

and you'll see that the packages have been created for you during the normal make install process. I'm assuming you knew this.........
*



Frankly, I didn't know this before, because I am still waiting for my CF wifi to make full use of the Port system. For now I am compiling locally from downloaded sources. tongue.gif
Go to the top of the page
 
+Quote Post
jpmatrix
post May 15 2007, 04:03 AM
Post #28





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



QUOTE(mathemajikian @ May 15 2007, 01:16 PM)
However, if you are just building ports which are already in the ports collection then:

# cd /usr/ports/packages/arm/all
# ls

and you'll see that the packages have been created for you during the normal make install process. I'm assuming you knew this.........
*


by the way, can you explain us (openbsd newbie), why there are 3 directories (all, cdrom, ftp) with the same .tgz in them ??? and can we safely delete some to make some room ?
Go to the top of the page
 
+Quote Post
mathemajikian
post May 15 2007, 04:04 AM
Post #29





Group: Members
Posts: 304
Joined: 8-July 06
From: United Kingdom for now....
Member No.: 10,349



QUOTE(ZDevil @ May 15 2007, 11:24 AM)
Frankly, I didn't know this before, because I am still waiting for my CF wifi to make full use of the Port system. For now I am compiling locally from downloaded sources.  tongue.gif

Well here's another trick. If you look at the Makefile for www/links+ you'll see

VER= 2.1pre28
DISTNAME= links-${VER}
MASTER_SITES= ${HOMEPAGE}download/
HOMEPAGE= http://links.twibright.com/

If you download links-2.1pre28.tar.gz from http://links.twibright.com/download/links-2.1pre28.tar.gz
and copy it to /usr/ports/distfiles/ then you'll be able to build links+ from the ports collection assuming that all other build dependencies have been met. If your missing a build dependency then analyze the missing dependencies Makefile as shown above and copy the missing dependencies downloaded tar.gz to /usr/ports/distfiles/. Continue this process until all the build dependencies have been met and you'll end up with the port along with it's dependencies being built in the ports tree.
Go to the top of the page
 
+Quote Post
mathemajikian
post May 15 2007, 04:07 AM
Post #30





Group: Members
Posts: 304
Joined: 8-July 06
From: United Kingdom for now....
Member No.: 10,349



QUOTE(jpmatrix @ May 15 2007, 12:03 PM)
By the way, can you explain us (openbsd newbies), why there are 3 directories (all, cdrom, ftp) with the same .tgz in them ???

These copies are generated because it is told to do so in the Makefile:

CODE
PERMIT_PACKAGE_CDROM=   Yes
PERMIT_PACKAGE_FTP=     Yes


QUOTE
Can we safely delete some to make some room ?

Yes, you can safely delete them from arm/cdrom and arm/ftp. Just keep the original in arm/all.
Go to the top of the page
 
+Quote Post

6 Pages V  < 1 2 3 4 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th September 2014 - 03:47 PM