Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-29 Thread Dušan Stefanović
On Fri, May 29, 2009 at 14:05, Eric Hameleers wrote: > It's really quite simple. If you build a 32bit compatibility package for > slackware64, on slackware64, you are still building with an ARCH set to > "x86_64" and with the "-m32" option added to the gcc invocation (assuming > you are running a

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-29 Thread Eric Hameleers
On Fri, 29 May 2009, [UTF-8] Dušan Stefanovi? wrote: I'm not trying to hijack this thread, but there is another question related to this discussion. What about i486 packages that are created for slackware64? slackware64 is multilib, so it is perfectly legal to do this. How should I name package

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-29 Thread Dušan Stefanović
> But this will bring an other problem. What if the both the files *and* the > directory structure are arch independent?(bash-completion as an example, > although it not in slackware64 now) It's also non-sense to have two names > with one package that exactly the same. > > -- > Cheers, > Grissiom >

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-29 Thread Grissiom
2009/5/29 Dušan Stefanović > I'm not trying to hijack this thread, but there is another question > related to this discussion. What about i486 packages that are created > for slackware64? > slackware64 is multilib, so it is perfectly legal to do this. How > should I name package that has 32bit bi

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-29 Thread Grissiom
On Fri, May 29, 2009 at 12:08, Chess Griffin wrote: > I am probably missing the finer points of this discussion, but it seems > to me that the current system works just fine. User A on a 32 bit > system who has not set ARCH as an environmental variable and builds a > package from a 'noarch' Slac

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-29 Thread Dušan Stefanović
I'm not trying to hijack this thread, but there is another question related to this discussion. What about i486 packages that are created for slackware64? slackware64 is multilib, so it is perfectly legal to do this. How should I name package that has 32bit binary inside, but is created for slack64

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Chess Griffin
On Thu, 28 May 2009 22:57:06 -0500 Robby Workman wrote: > On Thu, 28 May 2009 23:45:40 -0400 > xgiz...@slackbuilds.org wrote: > > > On Thursday 28 May 2009 22:59:18 Dragon Wisard wrote: > > > I don't like the idea of defaulting to noarch if the package is > > > incompatible with x86_64. If we're

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Robby Workman
On Thu, 28 May 2009 23:45:40 -0400 xgiz...@slackbuilds.org wrote: > On Thursday 28 May 2009 22:59:18 Dragon Wisard wrote: > > I don't like the idea of defaulting to noarch if the package is > > incompatible with x86_64. If we're going to have separate packages, > > they should be clearly marked as

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Phillip Warner
giz...@slackbuilds.org > Subject: Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be > architecture dependent > To: slackbuilds-users@slackbuilds.org > Date: Thursday, May 28, 2009, 8:45 PM > On Thursday 28 May 2009 22:59:18 > Dragon Wisard wrote: > > I don&#x

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Phillip Warner
How about using ARCH=x86_32 for Slackware 12.2 and ARCH=x86_64 for Slackware64 unless the package has nothing to do with any lib/lib64 business, etc, which it could then have the pure ARCH=noarch? If setup.py always detects the right python dir as previously mentioned, then perhaps we only nee

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread xgizzmo
On Thursday 28 May 2009 22:59:18 Dragon Wisard wrote: > I don't like the idea of defaulting to noarch if the package is incompatible > with x86_64. If we're going to have separate packages, they should be > clearly marked as such. Making one 'noarch' and one 'x86_64' is > inconsistent. It's either

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Robby Workman
On Thu, 28 May 2009 22:59:18 -0400 Dragon Wisard wrote: > On Thu, May 28, 2009 at 10:40 PM, wrote: > > > On Thursday 28 May 2009 21:15:55 Grissiom wrote: > > > > > > > > IMHO, if a package uses */lib64 then it's an ARCH=x86_64 > > > > package. > > > > > > > > > > > This seems to be what Slackwa

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Dragon Wisard
On Thu, May 28, 2009 at 10:40 PM, wrote: > On Thursday 28 May 2009 21:15:55 Grissiom wrote: > > > > > > IMHO, if a package uses */lib64 then it's an ARCH=x86_64 package. > > > > > > > This seems to be what Slackware does. I think the best thing to do > here is just to make sure we use ARCH=${ARCH

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread xgizzmo
On Thursday 28 May 2009 21:15:55 Grissiom wrote: > > > > IMHO, if a package uses */lib64 then it's an ARCH=x86_64 package. > > > This seems to be what Slackware does. I think the best thing to do here is just to make sure we use ARCH=${ARCH:-noarch} and not hard code it. That way if the package

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Grissiom
On Fri, May 29, 2009 at 09:03, Robby Workman wrote: > Maybe, but I don't like the symlink idea at all. We can't just symlink > the entire /usr/lib (or /usr/lib64) directory, so we'd have to symlink > each additional file in there, and along the way, check for existing > files/dirs on the filesyst

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread paul wisehart
paul wisehart wrote: Grissiom wrote: On Fri, May 29, 2009 at 02:36, Eric Hameleers > wrote: Hi Grissiom If you write a SlackBuild that installs purepython files which are architecture independent you will indeed still have a "lib vs lib64" differen

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread paul wisehart
Grissiom wrote: On Fri, May 29, 2009 at 02:36, Eric Hameleers > wrote: Hi Grissiom If you write a SlackBuild that installs purepython files which are architecture independent you will indeed still have a "lib vs lib64" difference in the final packag

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Robby Workman
On Thu, 28 May 2009 20:34:54 -0400 Dragon Wisard wrote: > I think what Eric was saying is that the Slackbuild is architecture > independent but the package generated by it is architecture > dependent. That seems to be enough to satisfy him. > > Personally, I see no reason why the package should

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Dragon Wisard
I think what Eric was saying is that the Slackbuild is architecture independent but the package generated by it is architecture dependent. That seems to be enough to satisfy him. Personally, I see no reason why the package should *need* to be architecture dependent. We're restricting it based on a

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Grissiom
On Fri, May 29, 2009 at 02:36, Eric Hameleers wrote: > > Hi Grissiom > > If you write a SlackBuild that installs purepython files which are > architecture independent you will indeed still have a "lib vs lib64" > difference in the final package depending on the architecture you > create the packag

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Grissiom
2009/5/28 Dušan Stefanović > On the other hand, why do you expect that package that is build on one > distribution work on another? > Do you expect that i486 package that is build for slack 12.2 work on 12.1? > Even vice versa is not true sometimes. I would never guess that > program will work j

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Grissiom
2009/5/28 Dušan Stefanović > noarch should mean (in my head at least it means) that the files > inside the package are architecture independent. > You can create noarch package that will install correctly in both > x86_64 and i486. For example inside doinst.sh you can check > distribution (either

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Eric Hameleers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Grissiom wrote: > Hi folks, > > While I was taking train this afternoon, a thought came up in my mind -- > SlackBuilds for python modules and many programs that written in pure > python (say, decorator, pysetuptools, logilab-common etc) should be arch

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Dušan Stefanović
On the other hand, why do you expect that package that is build on one distribution work on another? Do you expect that i486 package that is build for slack 12.2 work on 12.1? Even vice versa is not true sometimes. I would never guess that program will work just by looking at ARCH. regards, ds __

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Dušan Stefanović
> > > Hmm, so, what does "noarch" mean? IMHO, a noarch package is the one I can > install it regardless whatever platform I'm running and after installing it, > I can use it. If I installed a package that copy python modules into > /usr/lib/pythonx.x/xxx I will have noway to take use of it under >

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Grissiom
2009/5/28 Dušan Stefanović > Maybe like this: > ARCH=noarch > LIBDIRSUFFIX=${LIBDIRSUFFIX:-32} > > there is no sense to use i486 or x86_64 as ARCH in noarch package just > to set directory right. > > regards, > ds > Hmm, so, what does "noarch" mean? IMHO, a noarch package is the one I can instal

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Dušan Stefanović
On Thu, May 28, 2009 at 15:48, Grissiom wrote: > After some hack, I found a solution for this: write the SlackBuilds like > this: > > if [ "$ARCH" = "i486" ]; then >   SLKCFLAGS="-O2 -march=i486 -mtune=i686" >   LIBDIRSUFFIX="" > elif [ "$ARCH" = "i686" ]; then >   SLKCFLAGS="-O2 -march=i686

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Grissiom
On Thu, May 28, 2009 at 22:09, Dragon Wisard wrote: > Since they bytecode is itself, platform independent, wouldn't it make sense > to just use one directory (eg. /usr/lib/python2.6/site-packages/xxx) and > symlink the /usr/lib64/... to the that directory? Assuming you have both > 32-bit and 64-b

Re: [Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Dragon Wisard
Since they bytecode is itself, platform independent, wouldn't it make sense to just use one directory (eg. /usr/lib/python2.6/site-packages/xxx) and symlink the /usr/lib64/... to the that directory? Assuming you have both 32-bit and 64-bit builds of Python installed, there is no sense in having to

[Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

2009-05-28 Thread Grissiom
Hi folks, While I was taking train this afternoon, a thought came up in my mind -- SlackBuilds for python modules and many programs that written in pure python (say, decorator, pysetuptools, logilab-common etc) should be arch dependent. Maybe most of them are installed via "distutils", if you see