paul.
slkbuild for x86_64?
- 
				toothandnail
 - Posts: 165
 - Joined: 20. Sep 2009, 17:30
 - Location: Oxfordshire, UK
 
slkbuild for x86_64?
I've just installed the 64-bit version of Salix. Wanted to build some packages that I need. So far as I can see, SLKBUILD doesn't support x86_64, or am I missing something? So far, I've used it, then gone and edited ARCH and flags to get what I need. 
 Any chance of extending it to support x86_64? 
 
 Either I can't read or the documentation is a bit out of date. Just tried using x86_64 in the arch field of a SLKBUILD and it works.....
paul.
			
			
									
						
										
						paul.
Re: slkbuild for x86_64?
All you have to do is change the arch line in SLKBUILD to:. If you want a SLKBUILD prototype with this, just edit the SLKBUILD prototype in /etc/slkbuild and rename it something like SLKBUILD.x86.  Then when you want to build a new package just issue the following in your build directory: .  See "man slkbuild"
Note that the -g function in the current version of slkbuild has a bug which result in getting the stock SLKBUILD file.
     I believe that gapan is aware of this bug and will be fixing it.
Rich
			
			
									
						
							Code: Select all
arch=x86_64Code: Select all
 slkbuild -g x86Note that the -g function in the current version of slkbuild has a bug which result in getting the stock SLKBUILD file.
Rich
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
			
						― George Orwell, 1984
- damNageHack
 - Posts: 663
 - Joined: 24. Sep 2009, 17:07
 
Re: slkbuild for x86_64?
I think there should be more templates for slkbuild available in the pure standard installation from ISO. So the user and beginning packagers have a clearer way of learning how slkbuild works. Nevertheless, slkbuild is a great tool so far.laprjns wrote:If you want a SLKBUILD prototype with this, just edit the SLKBUILD prototype in /etc/slkbuild and rename it something like SLKBUILD.x86. Then when you want to build a new package just issue the following in your build directory:. See "man slkbuild"Code: Select all
slkbuild -g x86
Yes, I hope also that this bug will be fixed soon.laprjns wrote: Note that the -g function in the current version of slkbuild has a bug which result in getting the stock SLKBUILD file.I believe that gapan is aware of this bug and will be fixing it.
Rich

This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
Re: slkbuild for x86_64?
Don't forget to use "--libdir=/usr/lib${LIBDIRSUFFIX}" in the configure options 
			
			
									
						
										
						- damNageHack
 - Posts: 663
 - Joined: 24. Sep 2009, 17:07
 
Re: slkbuild for x86_64?
Additional question: So it should be possible to run applications built for 32 bits under Salix64 if the according libs will be available under /usr/lib/thenktor wrote:Don't forget to use "--libdir=/usr/lib${LIBDIRSUFFIX}" in the configure options

This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
Re: slkbuild for x86_64?
That has nothing to do with slkbuild or package building. You can do multilib in slackware, just google for it. But don't expect to use a multilib system for package building.damNageHack wrote:Additional question: So it should be possible to run applications built for 32 bits under Salix64 if the according libs will be available under /usr/lib/
- damNageHack
 - Posts: 663
 - Joined: 24. Sep 2009, 17:07
 
Re: slkbuild for x86_64?
Therefore I wrote "Additional question" (means nearly offtopic). I don't expect to do multilib, asked just in case I would need a 32 bits app that is not available (yet) for x86_64.gapan wrote: That has nothing to do with slkbuild or package building. You can do multilib in slackware, just google for it. But don't expect to use a multilib system for package building.
I did not wanted to change the original topic of packaging, sorry.

This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
- 
				toothandnail
 - Posts: 165
 - Joined: 20. Sep 2009, 17:30
 - Location: Oxfordshire, UK
 
Re: slkbuild for x86_64?
Thanks Rich. I managed to get the x86_64 working, so I've managed to build some of the packages I need (mc-4.7.0.1, which finally has Fish fixed, Osmo and associated libraries). I'll go read the packaging rules and submit them sometime in the next few days.laprjns wrote:All you have to do is change the arch line in SLKBUILD to:. If you want a SLKBUILD prototype with this, just edit the SLKBUILD prototype in /etc/slkbuild and rename it something like SLKBUILD.x86. Then when you want to build a new package just issue the following in your build directory:Code: Select all
arch=x86_64. See "man slkbuild"Code: Select all
slkbuild -g x86
Note that the -g function in the current version of slkbuild has a bug which result in getting the stock SLKBUILD file.I believe that gapan is aware of this bug and will be fixing it.
Rich
A bit off topic, but maybe someone can answer - is it possible to build for 32-bit systems from the 64-bit? I'd build for both, but I don't currently have the space to install the 32-bit version as well.
paul.
Re: slkbuild for x86_64?
Not directly, but you can use a VM.toothandnail wrote: A bit off topic, but maybe someone can answer - is it possible to build for 32-bit systems from the 64-bit? I'd build for both, but I don't currently have the space to install the 32-bit version as well.


