Thu, 08 Jan 2009 23:26:54 +0100
Import package vendor original specs for necessary manipulations.
dpkg/dpkg.patch | file | annotate | diff | comparison | revisions | |
dpkg/dpkg.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dpkg/dpkg.patch Thu Jan 08 23:26:54 2009 +0100 1.3 @@ -0,0 +1,162 @@ 1.4 +Index: dpkg-deb/Makefile.in 1.5 +--- dpkg-deb/Makefile.in.orig 2008-03-30 11:58:18 +0200 1.6 ++++ dpkg-deb/Makefile.in 2008-04-01 21:56:55 +0200 1.7 +@@ -213,8 +213,7 @@ 1.8 + main.c 1.9 + 1.10 + dpkg_deb_LDADD = \ 1.11 +- ../libcompat/libcompat.a \ 1.12 +- $(LIBINTL) ../lib/libdpkg.a $(ZLIB_LIBS) $(BZ2_LIBS) $(SELINUX_LIBS) 1.13 ++ $(LIBINTL) ../lib/libdpkg.a $(ZLIB_LIBS) $(BZ2_LIBS) $(SELINUX_LIBS) ../libcompat/libcompat.a 1.14 + 1.15 + all: all-am 1.16 + 1.17 +Index: dpkg-split/Makefile.in 1.18 +--- dpkg-split/Makefile.in.orig 2008-03-30 11:58:18 +0200 1.19 ++++ dpkg-split/Makefile.in 2008-04-01 21:57:43 +0200 1.20 +@@ -217,9 +217,8 @@ 1.21 + split.c 1.22 + 1.23 + dpkg_split_LDADD = \ 1.24 +- ../libcompat/libcompat.a \ 1.25 + $(LIBINTL) \ 1.26 +- ../lib/libdpkg.a 1.27 ++ ../lib/libdpkg.a ../libcompat/libcompat.a 1.28 + 1.29 + pkglib_SCRIPTS = mksplit 1.30 + EXTRA_DIST = mksplit.pl 1.31 +Index: dselect/Makefile.in 1.32 +--- dselect/Makefile.in.orig 2008-03-30 11:58:18 +0200 1.33 ++++ dselect/Makefile.in 2008-04-01 21:56:55 +0200 1.34 +@@ -249,10 +249,9 @@ 1.35 + pkgtop.cc 1.36 + 1.37 + dselect_LDADD = \ 1.38 +- ../libcompat/libcompat.a \ 1.39 + $(LIBINTL) \ 1.40 + $(CURSES_LIBS) \ 1.41 +- ../lib/libdpkg.a 1.42 ++ ../lib/libdpkg.a ../libcompat/libcompat.a 1.43 + 1.44 + EXTRA_DIST = keyoverride mkcurkeys.pl 1.45 + CLEANFILES = curkeys.h 1.46 +@@ -640,8 +639,8 @@ 1.47 + 1.48 + curkeys.$(OBJEXT): curkeys.h 1.49 + curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl 1.50 +- cursesfile=`echo '#include <ncursesw/curses.h>' | \ 1.51 +- $(CC) -E - | grep 'curses.h' | head -n 1 | \ 1.52 ++ cursesfile=`echo '#include <ncurses/curses.h>' | \ 1.53 ++ $(CC) $(CPPFLAGS) -E - | grep 'curses.h' | head -n 1 | \ 1.54 + sed -e 's/^[^"]*"//; s/".*$$//'`; \ 1.55 + if [ "$$cursesfile" = "" ]; then \ 1.56 + echo "can't find curses file"; exit 1; \ 1.57 +Index: dselect/dselect.h 1.58 +--- dselect/dselect.h.orig 2008-03-30 11:57:41 +0200 1.59 ++++ dselect/dselect.h 2008-04-01 21:56:55 +0200 1.60 +@@ -28,7 +28,7 @@ 1.61 + 1.62 + #include <signal.h> 1.63 + #undef ERR 1.64 +-#include <ncursesw/curses.h> 1.65 ++#include <ncurses/curses.h> 1.66 + 1.67 + struct helpmenuentry { 1.68 + char key; 1.69 +Index: dselect/main.cc 1.70 +--- dselect/main.cc.orig 2008-03-30 11:57:41 +0200 1.71 ++++ dselect/main.cc 2008-04-01 21:56:55 +0200 1.72 +@@ -37,7 +37,7 @@ 1.73 + #include <ctype.h> 1.74 + #include <assert.h> 1.75 + 1.76 +-#include <ncursesw/term.h> 1.77 ++#include <ncurses/term.h> 1.78 + 1.79 + extern "C" { 1.80 + #include <dpkg.h> 1.81 +Index: lib/tarfn.c 1.82 +--- lib/tarfn.c.orig 2008-03-30 10:58:51 +0200 1.83 ++++ lib/tarfn.c 2008-04-01 21:56:55 +0200 1.84 +@@ -62,7 +62,9 @@ 1.85 + int len; 1.86 + char * str; 1.87 + 1.88 +- len = strnlen(s, size); 1.89 ++ len = strlen(s); 1.90 ++ if (len > size) 1.91 ++ len = size; 1.92 + str = m_malloc(len + 1); 1.93 + memcpy(str, s, len); 1.94 + str[len] = 0; 1.95 +Index: man/Makefile.in 1.96 +--- man/Makefile.in.orig 2008-03-30 11:58:18 +0200 1.97 ++++ man/Makefile.in 2008-04-01 21:56:55 +0200 1.98 +@@ -189,7 +189,7 @@ 1.99 + top_srcdir = @top_srcdir@ 1.100 + 1.101 + # Extract the list of languages from the po4a config file. 1.102 +-LINGUAS = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg) 1.103 ++LINGUAS = 1.104 + dist_man_MANS = \ 1.105 + 822-date.1 \ 1.106 + cleanup-info.8 \ 1.107 +@@ -540,7 +540,7 @@ 1.108 + all-local: all-local-@USE_NLS@ 1.109 + 1.110 + all-local-no: 1.111 +-all-local-yes: man.stamp 1.112 ++all-local-yes: 1.113 + 1.114 + # FIXME: Use a stamp file until po4a supports them internally. 1.115 + man.stamp: 1.116 +Index: scripts/Makefile.in 1.117 +--- scripts/Makefile.in.orig 2008-03-30 11:58:19 +0200 1.118 ++++ scripts/Makefile.in 2008-04-01 21:56:55 +0200 1.119 +@@ -757,8 +757,8 @@ 1.120 + $(INSTALL_SCRIPT) install-info $(DESTDIR)$(sbindir) 1.121 + 1.122 + install-data-local: 1.123 +- $(mkdir_p) $(DESTDIR)$(sysconfdir)/alternatives 1.124 +- $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README 1.125 ++ $(mkdir_p) $(DESTDIR)$(sysconfdir)/dpkg/alternatives 1.126 ++ $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/dpkg/alternatives/README 1.127 + 1.128 + # Ideally we'd use 'sed -i', but unfortunately that's not portable. 1.129 + install-data-hook: 1.130 +Index: src/Makefile.in 1.131 +--- src/Makefile.in.orig 2008-03-30 11:58:19 +0200 1.132 ++++ src/Makefile.in 2008-04-01 21:56:55 +0200 1.133 +@@ -239,8 +239,8 @@ 1.134 + update.c 1.135 + 1.136 + dpkg_LDADD = \ 1.137 +- ../libcompat/libcompat.a \ 1.138 +- $(LIBINTL) ../lib/libdpkg.a $(ZLIB_LIBS) $(BZ2_LIBS) $(SELINUX_LIBS) 1.139 ++ \ 1.140 ++ $(LIBINTL) ../lib/libdpkg.a $(ZLIB_LIBS) $(BZ2_LIBS) $(SELINUX_LIBS) ../libcompat/libcompat.a 1.141 + 1.142 + dpkg_query_SOURCES = \ 1.143 + errors.c \ 1.144 +@@ -248,17 +248,17 @@ 1.145 + query.c 1.146 + 1.147 + dpkg_query_LDADD = \ 1.148 +- ../libcompat/libcompat.a \ 1.149 ++ \ 1.150 + $(LIBINTL) \ 1.151 +- ../lib/libdpkg.a 1.152 ++ ../lib/libdpkg.a ../libcompat/libcompat.a 1.153 + 1.154 + dpkg_trigger_SOURCES = \ 1.155 + trigcmd.c 1.156 + 1.157 + dpkg_trigger_LDADD = \ 1.158 +- ../libcompat/libcompat.a \ 1.159 ++ \ 1.160 + $(LIBINTL) \ 1.161 +- ../lib/libdpkg.a 1.162 ++ ../lib/libdpkg.a ../libcompat/libcompat.a 1.163 + 1.164 + all: all-am 1.165 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/dpkg/dpkg.spec Thu Jan 08 23:26:54 2009 +0100 2.3 @@ -0,0 +1,112 @@ 2.4 +## 2.5 +## dpkg.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package version 2.28 +%define V_tarball 1.14.24 2.29 +%define V_subdir 1.14.24 2.30 + 2.31 +# package information 2.32 +Name: dpkg 2.33 +Summary: Debian Package Management Toolchain 2.34 +URL: http://packages.debian.org/dpkg 2.35 +Vendor: Ian Jackson et al. 2.36 +Packager: OpenPKG Foundation e.V. 2.37 +Distribution: OpenPKG Community 2.38 +Class: EVAL 2.39 +Group: Archiver 2.40 +License: GPL 2.41 +Version: %{V_tarball} 2.42 +Release: 20081229 2.43 + 2.44 +# list of sources 2.45 +Source0: http://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_%{version}.tar.gz 2.46 +Patch0: dpkg.patch 2.47 + 2.48 +# build information 2.49 +Prefix: %{l_prefix} 2.50 +BuildRoot: %{l_buildroot} 2.51 +BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, gcc::with_cxx = yes 2.52 +PreReq: OpenPKG, openpkg >= 20040130 2.53 +BuildPreReq: gettext, libiconv, bzip2, zlib 2.54 +PreReq: gettext, libiconv, bzip2, zlib 2.55 +AutoReq: no 2.56 +AutoReqProv: no 2.57 + 2.58 +%description 2.59 + dpkg is the heart of the Debian GNU/Linux package management 2.60 + toolchain. It is the package format technology underlying APT and 2.61 + other higher-level package management tools. 2.62 + 2.63 +%track 2.64 + prog dpkg = { 2.65 + version = %{version} 2.66 + url = http://ftp.debian.org/debian/pool/main/d/dpkg/ 2.67 + regex = dpkg_(__VER__)\.tar\.gz 2.68 + } 2.69 + 2.70 +%prep 2.71 + %setup -q -n dpkg-%{V_subdir} 2.72 + %patch -p0 2.73 + 2.74 +%build 2.75 + CC="%{l_cc}" \ 2.76 + CXX="%{l_cxx}" \ 2.77 + CFLAGS="%{l_cflags -O}" \ 2.78 + CXXFLAGS="%{l_cxxflags -O}" \ 2.79 + CPPFLAGS="%{l_cppflags}" \ 2.80 + LDFLAGS="%{l_ldflags}" \ 2.81 + ./configure \ 2.82 + --prefix=%{l_prefix} \ 2.83 + --mandir=%{l_prefix}/man \ 2.84 + --with-libiconv-prefix=%{l_prefix} \ 2.85 + --with-libintl-prefix=%{l_prefix} \ 2.86 + --without-included-gettext \ 2.87 + --with-dselect \ 2.88 + --without-start-stop-daemon \ 2.89 + --with-admindir=%{l_prefix}/var/dpkg \ 2.90 + --with-zlib \ 2.91 + --with-bz2 \ 2.92 + --without-selinux 2.93 + %{l_make} %{l_mflags} 2.94 + 2.95 +%install 2.96 + rm -rf $RPM_BUILD_ROOT 2.97 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.98 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.99 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale 2.100 + for bin in 822-date cleanup-info install-info update-alternatives; do 2.101 + if [ -f $RPM_BUILD_ROOT%{l_prefix}/bin/$bin ]; then 2.102 + mv $RPM_BUILD_ROOT%{l_prefix}/bin/$bin \ 2.103 + $RPM_BUILD_ROOT%{l_prefix}/bin/dpkg-$bin 2.104 + elif [ -f $RPM_BUILD_ROOT%{l_prefix}/sbin/$bin ]; then 2.105 + mv $RPM_BUILD_ROOT%{l_prefix}/sbin/$bin \ 2.106 + $RPM_BUILD_ROOT%{l_prefix}/sbin/dpkg-$bin 2.107 + fi 2.108 + done 2.109 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.110 + 2.111 +%files -f files 2.112 + 2.113 +%clean 2.114 + rm -rf $RPM_BUILD_ROOT 2.115 +