[Fink-devel] fauxsu-0.9.1-1 fails to build on 10.9

2014-09-10 Thread Hanspeter Niederstrasser
The new fauxsu that was just checked into the 10.7 tree fails to build 
if Fink's sed is installed:

fauxsu-0.9.1/theos/bin/target.pl
fauxsu-0.9.1/theos/bin/vercmp.pl
sudo -u fink-bld [ENV] sh -c /tmp/fink.W_1N4
/tmp/fink.liQvL
+ sed -i '' -e s/libexec/lib/ Makefile
sed: can't read : No such file or directory

Can probably just get away with '/usr/bin/sed' instead of just 'sed'.

Also, later on there is this silent failure:

+ cp LICENSE /sw/build.build/root-fauxsu-0.9.1-1/sw/share/doc/fauxsu
cp: LICENSE: No such file or directory

1) This should be fixed to not try to copy a non-existent file,
2) DocFiles field does the same thing and is the preferred way.

Lastly,

Why is the pkg doing the whole spaghetti thing with mktemp, $d, and 
rsyncing to %d, rather than just using %i from the beginning? A safer 
place than /tmp is into a directory in %b that the fink build process 
controls 100%, and then copy from there as needed into %i.

Hanspeter

--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] How to build for Qt 4

2014-09-10 Thread Hanspeter Niederstrasser
On 9/10/2014 12:37 AM, Trevor Harmon wrote:
> Hi,
>
> I’m trying to update an old package (xxdiff) for the latest Fink on OS X 
> 10.9. The upstream code now requires Qt 4 instead of Qt 3, but it seems the 
> Qt 4 packages in Fink are much different. Also I’m very rusty at writing 
> .infos, so I’m having difficulty understanding how to specify the Qt 
> dependencies.
>
> I tried to find some other Qt 4 app in Fink to use as an example but could 
> not locate one. Does anyone know of a package like this, or better yet some 
> docs on how to write a package that depends on Qt 4?

Fink's Qt4 (mac or x11) lives in a private directory, so you have to 
tell the build script where to find things. Also, the package has been 
split up so that the libraries are all in separate SplitOffs, so you'll 
need to know which libraries (or Frameworks if you decide to use the 
-mac variant) it needs. There is just one headers/etc package for 
BuildDepends: qt4-base-x11 or qt4-base-mac.

CompileScript usually just needs the following line near the beginning:

export PATH=%p/lib/qt4-%type_pkg[qt4]/bin:$PATH

If that's not sufficient, 'fink info qt4-base-mac' has other compiler 
flags to try.

Hanspeter


--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel