[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fink-devel
Subject:    Re: [Fink-devel] libjpeg-shlibs and libjpeg dependencies in your
From:       Sjors Gielen <mailinglist () dazjorz ! com>
Date:       2010-06-23 14:56:39
Message-ID: 469E6DE0-6B02-4D93-A9D9-2A2F15988983 () dazjorz ! com
[Download RAW message or body]

Op 23 jun 2010, om 16:17 heeft Koen van der Drift het volgende geschreven:

> Sjors,
> 
> Feel free to send me those files if they could help. I have some time
> tonight (I'm in the US) to test, but after that I am very busy for
> several days.

I have committed an updated apt.info to my experimental. I have also attached it to \
this e-mail. A diff is included in this e-mail too. The script now runs 'autoconf' \
before running 'configure'.

By the way, this is what CompileScript used to be:

CompileScript: <<
 rm buildlib/config.guess buildlib/config.sub
 ln -s %p/share/libtool/config/config.sub buildlib/config.sub
 ln -s %p/share/libtool/config/config.guess buildlib/config.guess
 ./configure %c
 mkdir -p build/doc/doxygen
 make NOISY=1
<<

This is because config.guess and config.sub in apt's buildlib/ are, by default, \
symlinks to files on Debian. On Fink they are in different places, so I symlink them \
from the right locations myself. I don't know if this is still necessary after \
running 'autoconf', or if this is a possible cause for problems - I'd guess it isn't, \
since the problem seems to occur in config.status, not in .sub or .guess.

Thanks again for trying, Koen!
Sjors


["apt.info" (apt.info)]

Package: apt
Version: 0.7.25.3
Revision: 3
GCC: 4.0
BuildDepends: fink (>= 0.24.12), libtool2, docbook-xsl
Depends: %N-shlibs (= %v-%r), dpkg (>= 1.15.5.6-1)
Source: http://ftp.debian.org/debian/pool/main/a/apt/apt_%v.tar.gz
Source-MD5: ee59a90b91764aefeb5eb0f29d5cab96
SourceDirectory: %n-%v
PatchFile: %n.patch
PatchFile-MD5: 8eab70b75b0c261ca06f7ac6206ea3bc
PatchScript: <<
 sed -e 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
 sh patch_flush
 perl -pi -e 's|/usr|%p|g' doc/*.8.xml
 for i in `grep -rl '#ifdef __GNUG__' .` ; do perl -pi -e 's/#ifdef __GNUG__/#if \
defined(__GNUG__) && !defined(__APPLE_CC__)/' $i; done <<
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetCXXFLAGS: -O2 -D__USE_MISC -fconstant-cfstrings
SetLDFLAGS: -liconv
ConfigureParams: --host=%m-apple-darwin`uname -r|cut -f1 -d.`
CompileScript: <<
 rm buildlib/config.guess buildlib/config.sub
 ln -s %p/share/libtool/config/config.sub buildlib/config.sub
 ln -s %p/share/libtool/config/config.guess buildlib/config.guess
 autoconf
 ./configure %c
 #make -f makefile.wrap NOISY=1
 mkdir -p build/doc/doxygen
 make NOISY=1
<<
InstallScript: <<
 mkdir -p %i/bin
 install -m 755 bin/apt-cache %i/bin/
 install -m 755 bin/apt-cdrom %i/bin/
 install -m 755 bin/apt-config %i/bin/
 install -m 755 bin/apt-extracttemplates %i/bin/
 install -m 755 bin/apt-get %i/bin/
 install -m 755 bin/apt-key %i/bin/
 install -m 755 bin/apt-sortpkgs %i/bin/
 install -m 755 bin/apt-mark %i/bin/
 mkdir -p %i/lib
 install -m 644 bin/libapt-pkg.4.8.0.dylib %i/lib
 cd %i/lib/ && ln -s libapt-pkg.4.8.0.dylib libapt-pkg.4.8.dylib && \
   ln -s libapt-pkg.4.8.0.dylib libapt-pkg.dylib
 install -m 644 bin/libapt-inst.1.1.0.dylib %i/lib
 cd %i/lib/ && ln -s libapt-inst.1.1.0.dylib libapt-inst.1.1.dylib && \
   ln -s libapt-inst.1.1.0.dylib libapt-inst.dylib
 mkdir -p %i/lib/apt/methods
 install -m 755 bin/methods/cdrom %i/lib/apt/methods/
 install -m 755 bin/methods/copy %i/lib/apt/methods/
 install -m 755 bin/methods/file %i/lib/apt/methods/
 install -m 755 bin/methods/ftp %i/lib/apt/methods/
 install -m 755 bin/methods/gpgv %i/lib/apt/methods/
 install -m 755 bin/methods/gzip %i/lib/apt/methods/
 install -m 755 bin/methods/http %i/lib/apt/methods/
 install -m 755 bin/methods/https %i/lib/apt/methods/
 install -m 755 bin/methods/rred %i/lib/apt/methods/
 install -m 755 bin/methods/rsh %i/lib/apt/methods/
 cd %i/lib/apt/methods && ln -s gzip bzip2 && ln -s gzip lzma && ln -s rsh ssh
 mkdir -p %i/lib/dpkg/methods/apt
 install -m 644 scripts/dselect/desc.apt %i/lib/dpkg/methods/apt/
 install -m 755 scripts/dselect/install %i/lib/dpkg/methods/apt/
 install -m 644 scripts/dselect/names %i/lib/dpkg/methods/apt/
 install -m 755 scripts/dselect/setup %i/lib/dpkg/methods/apt/
 install -m 755 scripts/dselect/update %i/lib/dpkg/methods/apt/
 mkdir -p %i/include/apt-pkg
 cp include/apt-pkg/*.h %i/include/apt-pkg/
 mkdir -p %i/share/man
 mkdir -p %i/share/man/man1
 mkdir -p %i/share/man/man5
 mkdir -p %i/share/man/man8
 install -m 644 doc/*.1 %i/share/man/man1/
 install -m 644 doc/*.5 %i/share/man/man5/
 install -m 644 doc/*.8 %i/share/man/man8/
 mkdir -p %i/etc/apt/apt.conf.d
 cp fink/fink_unauthenticated.conf %i/etc/apt/apt.conf.d
 mkdir -p %i/etc/apt/preferences.d
 mkdir -p %i/etc/apt/sources.list.d
 mkdir -p %i/var/cache/apt/archives/partial
 mkdir -p %i/var/lib/apt/lists/partial
 mkdir -p %i/var/log/apt
<<
SplitOff: <<
  Package: %N-shlibs
  Depends: dpkg (>= 1.15.5.6-1), fink (>= 0.24.12)
  Files: <<
    lib/libapt-inst.1.1.dylib lib/libapt-inst.1.1.0.dylib
    lib/libapt-pkg.4.8.dylib  lib/libapt-pkg.4.8.0.dylib
  <<
  Shlibs: <<
    %p/lib/libapt-inst.1.1.dylib 1.1.0 %n (>= 0.7.25.3-1)
    %p/lib/libapt-pkg.4.8.dylib 4.8.0 %n (>= 0.7.25.3-1)
  <<
  DocFiles: COPYING* AUTHORS README.*
<<
SplitOff2: <<
  Package: %N-dev
  Depends: %N-shlibs (= %v-%r)
  BuildDependsOnly: true
  Files: lib/libapt-inst.dylib lib/libapt-pkg.dylib include
  DocFiles: COPYING* AUTHORS README.*
<<
DocFiles: COPYING* AUTHORS README.*
PostInstScript: <<
if [ ! -f %p/var/lib/dpkg/cmethopt ]; then
  echo "apt apt" >%p/var/lib/dpkg/cmethopt
  chmod 644 %p/var/lib/dpkg/cmethopt
else
  read a b <%p/var/lib/dpkg/cmethopt
  if [ "$a" != "apt" -o "$b" != "apt" ]; then
    /bin/echo ""
    /bin/echo "dselect is not set up to use apt as its access method. Downloading \
binary"  /bin/echo "packages will likely not work. Do you want to use apt instead?\c"
    read answer
    answer=`echo $answer | sed 's/^[yY].*$/y/'`
    if [ -z "$answer" -o "x$answer" = "xy" ]; then
      echo "apt apt" >%p/var/lib/dpkg/cmethopt
      chmod 644 %p/var/lib/dpkg/cmethopt
    fi
  fi
fi

rm -f %p/var/cache/apt/pkgcache.bin %p/var/cache/apt/srcpkgcache.bin
<<
#
Description: Advanced front-end for dpkg
DescPort: <<
There are three troublemakers when porting apt:
- It was written for Linux/ELF/glibc.
- It was written to maintain a distribution that is in charge of the
  system and hardcodes paths like /usr/bin, /usr/lib and /var/lib.
- There is no install target in the Makefiles because the Debian
  packaging files take care of what goes where.
There's also the usual trouble like not recognizing Darwin and
depending on a case-sensitive file system. All of this amounts to a
big, bad patch.

Ben Hines - added patch to make apt recognize macosx and darwin pkgs

The sources.list file is now supplied by the fink program rather than
by apt-get.

The type of the fifth parameter for getsocklen keeps changing. The
original code uses unsigned int, which was never correct for darwin,
so we patch several choices. Through OS X 10.3, it was int; starting
in 10.4 it is socklen_t, a symbol that first appeared in 10.3 but was
an int. So starting in 10.3 we can just use socklen_t.
See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323716

dmacks - Implemented "--ignore-breakage" cmdline flag to 'apt-get install'
(first appears in: 10.2-gcc3.3/0.5.4-41, 10.3/0.5.4-51)

Patch extracttar.cc so it understands negative UIDs, such as -2 for 'nobody'.

Sjors - __deprecated is already defined in sys/cdefs.h. MAP_ANONYMOUS is called
MAP_ANON on Mac. strdupa() doesn't exist on Mac, so use strdup() instead and
free everything ourselves. memrchr() doesn't exist on Mac, so add a public
domain implementation. sighandler_t is called sig_t on Mac.

<<
DescPackaging: <<
Previous versions by Christoph Pfisterer. Version 0.7.25.3 by Sjors Gielen.

	Raise cachesize limit. See:
	http://permalink.gmane.org/gmane.os.apple.fink.core/2025

  config.sub and config.guess are symlinks to /usr/share/misc. This path does
  not contain these files on a standard Mac installation. This package links
  them to the right files, provided by libtool2 (not libtool14, those files are
  older and in different places). Therefore, this package build-depends on
  libtool2, but does not depend on libtool2-shlibs.

  Sjors - The TODO in libversion.mak regarding the ABI break after libc6.9-6,
  doesn't apply on Mac, so remove the LIBEXT.

  Sjors - APT now supports GPG, so use the correct paths for the trustdb's too.
  Because Fink doesn't cryptosign any of its packages at this moment, ignore
  authentication errors because of unsigned packages. Hopefully we can enable it
  again as soon as possible.

  Sjors - IssuerCert and CrlFile require a version of Curl that is in 10.6, but
  not in 10.5. Therefore, IssuerCert and CrlFile support are only compiled in on
  platforms where the CURLOPTs are defined. Also, add a WARNING to the docs.

  Sjors - Fix docs, since docbook.xsl is in another location on Mac. Also depend
  on docbook-xsl to create the documentation.
<<
License: GPL
Maintainer: Fink Core Group <fink-core@lists.sourceforge.net>
Homepage: http://packages.qa.debian.org/a/apt.html



-----
cvs diff: Diffing .
Index: apt.info
===================================================================
RCS file: /cvsroot/fink/experimental/dazjorz/finkinfo/apt.info,v
retrieving revision 1.2
diff -u -r1.2 apt.info
--- apt.info	14 Jun 2010 10:13:23 -0000	1.2
+++ apt.info	23 Jun 2010 14:54:33 -0000
@@ -1,10 +1,10 @@
 Package: apt
 Version: 0.7.25.3
-Revision: 2
+Revision: 3
 GCC: 4.0
 BuildDepends: fink (>= 0.24.12), libtool2, docbook-xsl
 Depends: %N-shlibs (= %v-%r), dpkg (>= 1.15.5.6-1)
-Source: http://ftp.debian.org/debian/pool/main/a/apt/apt_0.7.25.3.tar.gz
+Source: http://ftp.debian.org/debian/pool/main/a/apt/apt_%v.tar.gz
 Source-MD5: ee59a90b91764aefeb5eb0f29d5cab96
 SourceDirectory: %n-%v
 PatchFile: %n.patch
@@ -24,6 +24,7 @@
  rm buildlib/config.guess buildlib/config.sub
  ln -s %p/share/libtool/config/config.sub buildlib/config.sub
  ln -s %p/share/libtool/config/config.guess buildlib/config.guess
+ autoconf
  ./configure %c
  #make -f makefile.wrap NOISY=1
  mkdir -p build/doc/doxygen



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic