Author Topic: Ports Collection Management  (Read 8020 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Ports Collection Management
« on: June 07, 2007, 02:47:39 pm »
Don't want to go far off-topic from the "Package Repository" thread, so let me start a new one here concentrating on managing the ports collection on Zaurus.

Two questions to start with:

Q1. What would be the easiest AND safest way to clean up the sources fetched and the files created during make?
I see people talking about "cd /usr/ports && make distclean".
Does it work for Z? I just want to be cautious not to mess up the port tree.

Q2. What would be the best way to keep the ports collection most up to date?
I learn cvsup from http://www.openbsd101.com/updating.html#u6, however when i tried to set it up, there was an error saying cvsup is for i386 machines only.
It seems another way is to overwrite /usr/ports with the latest ports.tar.gz from pub/OpenBSD/snapshots/,  but it takes so quite a long while to uncompress the tarball. The nice thing about cvsup is that it only update the ports when application while leaving the unchanged ports intact, so it's fast and more convenient. Any hope or method to get cvsup running on Zaurus?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Ports Collection Management
« Reply #1 on: June 08, 2007, 02:03:03 am »
Quote
Q1. What would be the easiest AND safest way to clean up the sources fetched and the files created during make?
I see people talking about "cd /usr/ports && make distclean".
Does it work for Z? I just want to be cautious not to mess up the port tree.

i think there's no problem in doing the make dist=clean
i've already done it and you'll gain many bytes !
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Ports Collection Management
« Reply #2 on: June 08, 2007, 02:11:06 am »
Quote
Q2. What would be the best way to keep the ports collection most up to date?
I learn cvsup from http://www.openbsd101.com/updating.html#u6, however when i tried to set it up, there was an error saying cvsup is for i386 machines only.
It seems another way is to overwrite /usr/ports with the latest ports.tar.gz from pub/OpenBSD/snapshots/,  but it takes so quite a long while to uncompress the tarball. The nice thing about cvsup is that it only update the ports when application while leaving the unchanged ports intact, so it's fast and more convenient. Any hope or method to get cvsup running on Zaurus?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

look here :

[a href=\"https://www.oesf.org/forums/index.php?showtopic=20790]https://www.oesf.org/forums/index.php?showtopic=20790[/url]

i think you'll find answers to many of your questions


by the way i've compiled mplayer yesterday (night!) , i'll give it a try later
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Ports Collection Management
« Reply #3 on: June 08, 2007, 05:31:31 am »
Thanks! I should follow the posts here first. It seems sometimes what is said in the official documentation is not totally applicable to Z.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Ports Collection Management
« Reply #4 on: June 09, 2007, 03:33:20 am »
Quote
Thanks! I should follow the posts here first. It seems sometimes what is said in the official documentation is not totally applicable to Z. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162824\"][{POST_SNAPBACK}][/a][/div]

apparently what is working is

make clean
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Ports Collection Management
« Reply #5 on: June 12, 2007, 07:42:55 am »
there's something i don't understand with ports building :

assuming you've untared ports.tar.gz in /usr, why is openbsd always fetching some sources on the network ? should all necessary sources yet be in /usr/ports ???

another question:
if i've no network on the zaurus, can i download some source files on my destkop, put it on a cf card and have the make process find this xxx.tar.bz2 file ??? if yes, how can i do this ?
« Last Edit: June 12, 2007, 07:43:54 am by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Ports Collection Management
« Reply #6 on: June 13, 2007, 03:29:25 am »
No, the ports.tar.gz (just a tarball of 10MB+) does not contain the sources tarballs itself. It only contains the portlist and the makefiles.

I think you can put the source files on a card, and then do a symlink from the correct location on the port tree, e.g. devel/chmlib. A glance at the existing source files should tell where to put them.

Or perhaps simply do a symlink of the whole port tree to a path of a memory card will do?

But then one tradeoff is dependency tracking and patching may not work, because all the dependent program sources and patches are downloaded automatically at the beginning of the build process.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Ports Collection Management
« Reply #7 on: June 13, 2007, 07:40:25 am »
Quote
No, the ports.tar.gz (just a tarball of 10MB+) does not contain the sources tarballs itself. It only contains the portlist and the makefiles.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=163112\"][{POST_SNAPBACK}][/a][/div]

ok i understand better !
well, so is it possible to download ALL needed files at the start ot the compilation process THEN compile all sources ???
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Ports Collection Management
« Reply #8 on: June 20, 2007, 05:02:52 pm »
Quote
Quote
No, the ports.tar.gz (just a tarball of 10MB+) does not contain the sources tarballs itself. It only contains the portlist and the makefiles.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=163112\"][{POST_SNAPBACK}][/a][/div]

ok i understand better !
well, so is it possible to download ALL needed files at the start ot the compilation process THEN compile all sources ???
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163121\"][{POST_SNAPBACK}][/a][/div]

I think it's make fetch but I'm not 100% sure.