[opensuse-buildservice] Minimal server
Hi, I want to build my own minimal server distro. I only use the web client so far. In my home project, I individually linked each package in Base:build, one by one (very tedious!), until I had all 78 packages. After a long time, they all built. The tutorial mentions aggregate vs. link, but I could not see how to link a whole project using the web client. Anyone have suggestions for how to construct a minimal server distro, with compiler and basic dev tools, tracking factory and/or the latest stable release? -- Webmail for Dialup Users http://www.isp2dial.com/freeaccounts.html -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2008/11/13 John Kelly
Hi,
I want to build my own minimal server distro. I only use the web client so far.
In my home project, I individually linked each package in Base:build, one by one (very tedious!), until I had all 78 packages. After a long time, they all built.
The tutorial mentions aggregate vs. link, but I could not see how to link a whole project using the web client. I'm not expert in XML data of OBS, but i think you need to use MonoOSC (GUI OBS client) or osc command line to change Data in the XML files where "link" are managed : http://en.opensuse.org/Build_Service/Client_MonoOSC http://download.opensuse.org/repositories/home:/surfzoid/ http://sourceforge.net/projects/monoosc/
Anyone have suggestions for how to construct a minimal server distro, with compiler and basic dev tools, tracking factory and/or the latest stable release?
-- Webmail for Dialup Users http://www.isp2dial.com/freeaccounts.html
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Donnerstag 13 November 2008 18:53:59 schrieb John Kelly: > Hi, > > I want to build my own minimal server distro. I only use the web > client so far. > > In my home project, I individually linked each package in Base:build, > one by one (very tedious!), until I had all 78 packages. After a long > time, they all built. Yes,its very tedious and unnecessary - DON'T DO THIS! > The tutorial mentions aggregate vs. link, but I could not see how to > link a whole project using the web client. If you want to use a whole project as base for your own packages, add it as repository! Thats how is it done for all projects (openSUSE:11.0, openSUSE:Factory - all are projects). Then _your_ project has a repository derived/on top of e.g. Base:build. So the easy way would be: * remove all the Base:build packages * hit "Add Repository" ind your home and on the next page "[Advanced]" * there you can select Base:Build as repository. * now add your own packages to your home: - they will be build using the stuff from Base:Build. > Anyone have suggestions for how to construct a minimal server distro, > with compiler and basic dev tools, tracking factory and/or the latest > stable release? That's the way for factory (Base:Build). Please keep in mind: every duplicate package is wasting space and cpu-cycles. If you just import packages, but have no patch or other changes, use _aggregate. If there's no change, why it should get rebuilt ? (Thats what _link would do.) Overall - what do you want to do exactly ? Please describe - there might be an even easier way. Feel free to ask here or on irc.freenode.net channel #opensuse-buildservice . Best regards, Jan-Simon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, 13 Nov 2008 19:20:11 +0100, "Jan-Simon Möller"wrote: >Am Donnerstag 13 November 2008 18:53:59 schrieb John Kelly: >> Hi, >> >> I want to build my own minimal server distro. I only use the web >> client so far. >> >> In my home project, I individually linked each package in Base:build, >> one by one (very tedious!), until I had all 78 packages. After a long >> time, they all built. >Yes,its very tedious and unnecessary - DON'T DO THIS! >> The tutorial mentions aggregate vs. link, but I could not see how to >> link a whole project using the web client. >If you want to use a whole project as base for your own packages, add it as repository! >Thats how is it done for all projects (openSUSE:11.0, openSUSE:Factory - all are projects). >Then _your_ project has a repository derived/on top of e.g. Base:build. >So the easy way would be: >* remove all the Base:build packages >* hit "Add Repository" ind your home and on the next page "[Advanced]" >* there you can select Base:Build as repository. >* now add your own packages to your home: - they will be build using the stuff from Base:Build. > >> Anyone have suggestions for how to construct a minimal server distro, >> with compiler and basic dev tools, tracking factory and/or the latest >> stable release? >That's the way for factory (Base:Build). > >Please keep in mind: every duplicate package is wasting space and cpu-cycles. >If you just import packages, but have no patch or other changes, use _aggregate. >If there's no change, why it should get rebuilt ? (Thats what _link would do.) > >Overall - what do you want to do exactly ? Please describe - there might be an even easier way. OK, thanks for the hint about using Base:build as a repo. I did not understand that was possible. What I want to do is, build a very small server distro with as few base packages as possible. However, maybe I also want to tweak some of the base packages -- I'm not sure yet. But most of all, I want it to be small. I will add my own local customization primarily in /usr/local from upstream and homegrown source tarballs, not rpm packages from the build service. I put many things in /usr/local because I make various local source hacks to integrate billing and other systems, and my hacks are useless outside any environment except my own. I could build my own complete distro from upstream source tarballs, and I've done some experimental work towards that, but since others have already done much collective work on the suse base distro, why not benefit from their efforts? -- Webmail for Dialup Users http://www.isp2dial.com/freeaccounts.html -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi John, Am Donnerstag, 13. November 2008 schrieb John Kelly: [...]
What I want to do is, build a very small server distro with as few base packages as possible. However, maybe I also want to tweak some of the base packages -- I'm not sure yet.
But most of all, I want it to be small. I will add my own local customization primarily in /usr/local from upstream and homegrown source tarballs, not rpm packages from the build service. [...]
How are you planning to create the distro? There is an example of a very minimal server created with kiwi. svn list https://forgesvn1.novell.com/svn/opensuse/trunk/distribution/images Apart from building your custom packages you can even tweak the system when you create it with kiwi (as a preload for example) and remove files after packages are installed. As far as I know, the config ctso-minimal* are something like what you want, so you may want to look into this. If you have questions concerning kiwi, you may want to subscribe to kiwi-users@lists.berlios.de, we'll be glad to help you. Cheers, Jan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, Op Thursday 13 November 2008 19:20:11 schreef Jan-Simon Möller:
The tutorial mentions aggregate vs. link, but I could not see how to link a whole project using the web client.
If you want to use a whole project as base for your own packages, add it as repository! Thats how is it done for all projects (openSUSE:11.0, openSUSE:Factory - all are projects). Then _your_ project has a repository derived/on top of e.g. Base:build. So the easy way would be: * remove all the Base:build packages * hit "Add Repository" ind your home and on the next page "[Advanced]" * there you can select Base:Build as repository. * now add your own packages to your home: - they will be build using the stuff from Base:Build.
2 questions related to this: - Am I correct that it is only possible to add 1 openSUSE version at a time? So if I want to provide multiple repositories e.g. 10.3, 11.0 and factory, this method has to be executed 3 times, is it indeed like this? - Is it only possible to include (build against) 1 other repository? If I want to build against (include) 2 other repositories (like e.g. the hypothetical repositories devel:lang:perl and devel:lang:php), what would be the best method? - build against (e.g.) devel:lang:perl and aggregate the php ones (or the other way around - or just aggregate both - something else?
Please keep in mind: every duplicate package is wasting space and cpu-cycles. If you just import packages, but have no patch or other changes, use _aggregate. If there's no change, why it should get rebuilt ? (Thats what _link would do.)
Because of the confusing comment on the wiki http://en.opensuse.org/Build_Service/Tips_and_Tricks#The_difference_between_... "Aggregate is possible, but slows down your build and requires double space. Better build directly against the other repository." I don't use aggregate.... Is the comment correct, about the slower builds and double file space???? As the packages are already build, I would expect that aggregated are not build at all. Is the table perhaps missing a row with "build against other repository" or if this is possible, build against multiple repositories? -- Richard Bos We are borrowing the world of our children, It is not inherited from our parents. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Op Thursday 13 November 2008 20:16:48 schreef Richard Bos:
* now add your own packages to your home: - they will be build using the stuff from Base:Build.
2 questions related to this: - Am I correct that it is only possible to add 1 openSUSE version at a time? So if I want to provide multiple repositories e.g. 10.3, 11.0 and factory, this method has to be executed 3 times, is it indeed like this?
- Is it only possible to include (build against) 1 other repository? If I want to build against (include) 2 other repositories (like e.g. the hypothetical repositories devel:lang:perl and devel:lang:php), what would be the best method? - build against (e.g.) devel:lang:perl and aggregate the php ones (or the other way around - or just aggregate both - something else?
Hmmm, while reading this http://en.opensuse.org/Build_Service/Tips_and_Tricks#Adding_multiple_reposit... would the following work for me: # osc meta -e prj <project name> and add the 2 lines with repository="openSUSE_11.0" to the project data, like this: <repository name="openSUSE_11.0"> <path project="openSUSE:11.0" repository="standard"/> <path project="server:php:applications" repository="openSUSE_11.0"/> <path project="devel:languages:perl" repository="openSUSE_11.0"/> <arch>i586</arch> <arch>x86_64</arch> </repository> -- Richard Bos We are borrowing the world of our children, It is not inherited from our parents. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Donnerstag 13 November 2008 20:38:42 Richard Bos wrote:
Op Thursday 13 November 2008 20:16:48 schreef Richard Bos:
* now add your own packages to your home: - they will be build using the stuff from Base:Build.
2 questions related to this: - Am I correct that it is only possible to add 1 openSUSE version at a time? So if I want to provide multiple repositories e.g. 10.3, 11.0 and factory, this method has to be executed 3 times, is it indeed like this?
- Is it only possible to include (build against) 1 other repository? If I want to build against (include) 2 other repositories (like e.g. the hypothetical repositories devel:lang:perl and devel:lang:php), what would be the best method? - build against (e.g.) devel:lang:perl and aggregate the php ones (or the other way around - or just aggregate both - something else?
Hmmm, while reading this http://en.opensuse.org/Build_Service/Tips_and_Tricks#Adding_multiple_reposi tories_to_a_project would the following work for me: # osc meta -e prj <project name>
and add the 2 lines with repository="openSUSE_11.0" to the project data, like this: <repository name="openSUSE_11.0">
You should not add the following line, because it will be anyway followed to this one from the others. But if you add it here, packages with the same name are taken from here instead from the other projects. This could lead to an incompatible mix of binaries:
<path project="openSUSE:11.0" repository="standard"/>
<path project="server:php:applications" repository="openSUSE_11.0"/> <path project="devel:languages:perl" repository="openSUSE_11.0"/> <arch>i586</arch> <arch>x86_64</arch> </repository>
-- Richard Bos We are borrowing the world of our children, It is not inherited from our parents.
-- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Op Friday 14 November 2008 09:53:54 schreef Adrian Schröter:
Hmmm, while reading this http://en.opensuse.org/Build_Service/Tips_and_Tricks#Adding_multiple_repo si tories_to_a_project would the following work for me: # osc meta -e prj <project name>
and add the 2 lines with repository="openSUSE_11.0" to the project data, like this: <repository name="openSUSE_11.0">
You should not add the following line, because it will be anyway followed to this one from the others. But if you add it here, packages with the same name are taken from here instead from the other projects. This could lead to an incompatible mix of
binaries:
<path project="openSUSE:11.0" repository="standard"/>
<path project="server:php:applications" repository="openSUSE_11.0"/> <path project="devel:languages:perl" repository="openSUSE_11.0"/>
Ah, I see. Is this setting active during build time and when people add the repository to there zypper repository list, or is it only used during build time? So If people add "my repository" will they automatically be able to get packages from s:p:a and d:l:p? -- Richard -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Donnerstag 13 November 2008 20:16:48 Richard Bos wrote:
Hi,
Op Thursday 13 November 2008 19:20:11 schreef Jan-Simon Möller: ....
Please keep in mind: every duplicate package is wasting space and cpu-cycles. If you just import packages, but have no patch or other changes, use _aggregate. If there's no change, why it should get rebuilt ? (Thats what _link would do.)
Because of the confusing comment on the wiki http://en.opensuse.org/Build_Service/Tips_and_Tricks#The_difference_between __link_and__aggregate "Aggregate is possible, but slows down your build and requires double space. Better build directly against the other repository." I don't use aggregate.... Is the comment correct, about the slower builds and double file space???? As the packages are already build, I would expect that aggregated are not build at all.
Yes, it is correct. If you do not want to copy it than do not aggregate ;) But just build against the other repository as suggested. ... -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, Op Friday 14 November 2008 10:07:30 schreef u:
Please keep in mind: every duplicate package is wasting space and cpu-cycles. If you just import packages, but have no patch or other changes, use _aggregate. If there's no change, why it should get rebuilt ? (Thats what _link would do.)
Because of the confusing comment on the wiki http://en.opensuse.org/Build_Service/Tips_and_Tricks#The_difference_betwe en __link_and__aggregate "Aggregate is possible, but slows down your build and requires double space. Better build directly against the other repository." I don't use aggregate.... Is the comment correct, about the slower builds and double file space???? As the packages are already build, I would expect that aggregated are not build at all.
Yes, it is correct. If you do not want to copy it than do not aggregate ;) But just build against the other repository as suggested.
That's all nice, but in this wiki section about "The difference between _link and _aggregate", nowhere is building against another repository mentioned. From that point of view, the comment is not given on the right location. Perhaps the section should also talk about "building against another repository", to make the section more complete? If so the table can show the all the differences between: project _link _aggregate When to use aggregate and when to use "build against repository". Is it for 1 or 2 packages use aggregate if more than use "build against repository"? -- Richard -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Donnerstag 13 November 2008 18:53:59 John Kelly wrote:
Hi,
I want to build my own minimal server distro. I only use the web client so far.
In my home project, I individually linked each package in Base:build, one by one (very tedious!), until I had all 78 packages. After a long time, they all built.
The tutorial mentions aggregate vs. link, but I could not see how to link a whole project using the web client.
We have no complete project linking mechanismus yet. We want it for the future, but we need also a better quota system to protect us from getting DoS'd ;)
Anyone have suggestions for how to construct a minimal server distro, with compiler and basic dev tools, tracking factory and/or the latest stable release?
Biggest question here is, why do you want to compile or aggregate this at all ? Wouldn't it be better just to collect the various packages with an imaging system like kiwi ? bye adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, 14 Nov 2008 09:34:09 +0100, Adrian Schröter
The tutorial mentions aggregate vs. link, but I could not see how to link a whole project using the web client.
We have no complete project linking mechanismus yet. We want it for the future, but we need also a better quota system to protect us from getting DoS'd ;)
I tried using Base:build as a repo, as Jan-Simon suggested, and that works. But if factory is also built on Base:build, it seems the base packages will be constantly changing, as factory moves forward. I'm not sure I want the inevitable regression bugs associated with that.
Biggest question here is, why do you want to compile or aggregate this at all Wouldn't it be better just to collect the various packages with an imaging system like kiwi ?
When I add packages beyond base build, I must patch spec files. For instance, procmail and some others depend on postfix. I use sendmail. The postfix dependency seems wrong, where should I file a bug? But there are other cases which are not a bug, and I need to do things differently than suse. Sendmail, for instance, depends on openldap, which I do not use or want. So I have to patch the spec file to do it my way. -- Webmail for Dialup Users http://www.isp2dial.com/freeaccounts.html -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (7)
-
Adrian Schröter
-
Jan-Christoph Bornschlegel
-
Jan-Simon Möller
-
John Kelly
-
Petit Eric
-
Richard Bos
-
Richard Bos