OpenWrt Forum Archive

Topic: Sources for backport packages

The content of this topic has been archived on 3 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to add (and maybe update) some packages from the backports repository to my local build environment. So I did a checkout of the packages folder from svn, but those package definitions seem to be for buildroot-ng and so don't work the whiterussian buildroot. Are those package definitions still available for whiterussion somewhere? If yes where can I get the from?

Simply use the SDK. You have to build a newer version of WR (does not work with the SDK from RC6, select the SDK under packages in menuconfig or do a full build with 'DEVELOPER=1 make menuconfig' followed by a 'make world') by yourself to use the packages repository from Kamikaze with the SDK from WR.

mkdir ~/whiterussian
cd ~/whiterussian
tar -jxf OpenWrt-SDK-Linux-i686-1.tar.bz2
svn co https://svn.openwrt.org/openwrt/packages
cd ~/whiterussian/OpenWrt-SDK-Linux-i686-1/package
ln -s ../../packages/*/* .
cd ~/whiterussian/OpenWrt-SDK-Linux-i686-1
make package/httping-{clean,compile}
ll bin/packages
total 12
-rw-r--r-- 1 ubuntu ubuntu 12150 Jan  3 15:20 httping_1.0.10-1_mipsel.ipk

Not all packages compile (are compatible) with the SDK from WR.

(Last edited by forum2006 on 3 Jan 2007, 22:27)

It works for the packages I want, thanks.

Forum2006, thanks for this step-by-step guide.

Unfortunately my setup seems to be broken. That's what I get when I try to build httping:

fabien@debian:~/whiterussian/OpenWrt-SDK-Linux-i686-1$ make V=99 package/httping-{clean,compile}
make -C package httping-clean SDK=1
make[1]: Entering directory `/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/package'
make -C httping clean
make[2]: Entering directory `/home/fabien/whiterussian/packages/net/httping'
rm -f /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/bin/packages/httping_*
make[3]: Entering directory `/home/fabien/whiterussian/packages/net/httping'
make[3]: `clean-targets' is up to date.
make[3]: Leaving directory `/home/fabien/whiterussian/packages/net/httping'
rm -rf /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10
make[2]: Leaving directory `/home/fabien/whiterussian/packages/net/httping'
make[1]: Leaving directory `/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/package'
make -C package httping-compile SDK=1
make[1]: Entering directory `/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/package'
make -C httping compile
make[2]: Entering directory `/home/fabien/whiterussian/packages/net/httping'
/bin/zcat /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/dl/httping-1.0.10.tgz | /bin/tar -C /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/.. -xf -

Applying ./patches/01-extra_flags.patch using plaintext:
patching file Makefile
touch /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/.prepared
(cd /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/; if [ -x configure ]; then AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX=mipsel-linux-uclibc-g++ RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" CPPFLAGS="-I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include" LDFLAGS="-L/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/lib -L/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/lib" PKG_CONFIG_PATH="/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/lib/pkgconfig"  ./configure --target=mipsel-linux --host=mipsel-linux --build=i486-linux --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/.configured
make -C /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10 AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX=mipsel-linux-uclibc-g++ RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip CROSS="mipsel-linux-uclibc-" EXTRA_CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include " EXTRA_LDFLAGS="-L/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/lib -L/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/lib " ARCH="mipsel" httping;
make[3]: Entering directory `/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10'
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o http.o http.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o io.o io.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o str.o str.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o error.o error.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o utils.o utils.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o main.o main.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o tcp.o tcp.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o mssl.o mssl.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include  -Wall -DVERSION=\"1.0.10\" -g   -c -o res.o res.c
mipsel-linux-uclibc-gcc -Wall -W http.o io.o str.o error.o utils.o main.o tcp.o mssl.o res.o -L/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/lib -L/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/lib  -lssl -lcrypto -g -o httping
#
# Oh, blatant plug: http://keetweej.vanheusden.com/wishlist.html
make[3]: Leaving directory `/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10'
touch /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/.built
mkdir -p /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL
echo "Package: httping" > /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
echo "Version: 1.0.10-1" >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
( DEPENDS=; for depend in +libopenssl; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends:  $DEPENDS" >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control; )
echo "Source: /home/fabien/whiterussian/packages/net/httping" >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
echo "Section: net" >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
echo "Priority: optional" >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>" >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
echo "Architecture: mipsel" >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
echo "Description: Httping is like 'ping' but for http-requests\\ Give it an url, and it'll show you how long it takes to connect, send a \ request and retrieve the reply (only the headers). Be aware that the \ transmission across the network also takes time!" | sed -e 's,\\,\n,g' | sed -e 's,^[[:space:]]*$, .,g' >> /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
chmod 644 /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL/control
(cd /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/CONTROL; var2file "V_Package_httping_conffiles" conffiles; var2file "V_Package_httping_preinst" preinst; var2file "V_Package_httping_postinst" postinst; var2file "V_Package_httping_prerm" prerm; var2file "V_Package_httping_postrm" postrm; )
/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/usr/sbin
--: line 1: /home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/httping-1.0.10/ipkg/httping/usr/sbin: No such file or directory
make[2]: *** [/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/bin/packages/httping_1.0.10-1_mipsel.ipk] Error 127
make[2]: Leaving directory `/home/fabien/whiterussian/packages/net/httping'
make[1]: *** [httping-compile] Error 2
make[1]: Leaving directory `/home/fabien/whiterussian/OpenWrt-SDK-Linux-i686-1/package'
make: *** [package/httping-compile] Error 2
fabien@debian:~/whiterussian/OpenWrt-SDK-Linux-i686-1$

When I try to build palantir (that's the package I actually want), it tells me that libtool is missing... Any suggestions?

Cheers
/T

As written above in my post. It does NOT work with the RC6 SDK. You have to build your own WR SDK (select it in menuconfig)...

EDIT: You have PM.

(Last edited by forum2006 on 6 Jan 2007, 16:16)

Thanks a lot, now compiling httping works as it should!

Just one thing: I run into the problem described in https://dev.openwrt.org/ticket/389 :-/

Help is very much appreciated!

Cheers
/T

Problem solved: there is just one dependency in libjpeg missing! After a manual "make package/libtool-{clean,compile}" libjpeg can be built.

Finally palantir works on my SE505V2/16MB (I get 4,6 frames/sec, which is more than sufficient :-) )

Timo Beil wrote:

Problem solved: there is just one dependency in libjpeg missing! After a manual "make package/libtool-{clean,compile}" libjpeg can be built.

Ticket #1157 with a patch opened.

With the patch applied you only have to run 'make package/libjpeg-{clean,compile}' it'll also build libtool if it's not already built.

(Last edited by forum2006 on 6 Jan 2007, 19:12)

Forum2006, thanks for the patch.

With the patch applied,"make package/libtool-{clean}" followed by "make package/libjpeg-{clean,compile}", libjpeg is being built as expected.

Cheers
/T

Timo Beil wrote:

With the patch applied,"make package/libtool-{clean}" followed by "make package/libjpeg-{clean,compile}", libjpeg is being built as expected.

Running 'make package/libjpeg-{clean,compile}' is enough.

The discussion might have continued from here.