[1] Archiv / MLD 4.x / Development / Fehler beim Kompilieren des Paketes "opkg"
 

Offline BobW

  • Expert Member
  • *****
  • Posts: 652
    • View Profile
Fehler beim Kompilieren des Paketes "opkg"
« on: November 08, 2014, 16:45:42 »
Hallo,

das Kompilieren von opkg schlägt fehl, da

1. dieses Kommando aus dem Makefile scheitert: cd $@; git fetch && git checkout for-0.2.3/fix-124
Die Überprüfung ergibt, dass es den Zweig for-0.2.3/fix-124 bei git.yoctoproject.org nicht mehr gibt.

Nach dem Entfernen/Auskommentieren dieses Kommandos läuft die Übersetzung zwar durch, das Paket kann aber nicht erstellt werden, da

2. opkg-cl fehlt.
In src/opkg/install/usr/bin finden sich lediglich: opkg und opkg-check-config

Weiß jemand Rat?

Schöne Grüße aus Wien
BobW

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Fehler beim Kompilieren des Paketes "opkg"
« Reply #1 on: November 08, 2014, 23:25:19 »
Hi,

ich hab das Paket nun so angepasst, dass die aktuellen Sourcen genommen werden.

Claus
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline BobW

  • Expert Member
  • *****
  • Posts: 652
    • View Profile
Fehler beim Kompilieren des Paketes "opkg"
« Reply #2 on: November 09, 2014, 11:32:16 »
Danke Claus,

das Kompilieren funktioniert nun in der x86 Version.

Auf dem RaspberryPi aber leider noch nicht.
Hier tritt folgender Fehler auf:

Code: [Select]
pi@raspberrypi ~/build/MLD $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.6 (wheezy)
Release:        7.6
Codename:       wheezy
pi@raspberrypi ~/build/MLD $ make checkout name=opkg
git clone http://minidvblinux.de/git-4/opkg.git
Cloning into 'opkg'...
if [ -n "rpi" ]; then \
        cd opkg; \
        if git branch -r | grep -q origin/rpi; then \
                git checkout rpi; \
        fi; \
fi
pi@raspberrypi ~/build/MLD $ cd opkg
pi@raspberrypi ~/build/MLD/opkg $ make
echo "version = 2014.11.09" > Makefile.version
echo "package_version = 63" >> Makefile.version
echo "depends_version = " >> Makefile.version
if type -P dpkg >/dev/null; then \
        for dep in libgpgme11-dev autoconf; do \
                if ! dpkg --get-selections | grep -q -e "^$dep[^a-zA-Z0-9-].*install"; then \
                        echo -e "Das für opkg benötigtes Ubuntu Paket \\033[1;31m${dep}\\033[0;39m fehlt."; \
                        deps="$deps $dep"; \
                fi; \
        done; \
fi; \
test -n "$deps" && echo -e "Sie können es durch folgende Eingabe installieren:"; \
test -n "$deps" && echo -e "sudo apt-get install$deps\n"; \
test -n "$deps" -a -n "" && (apt-get install -sqq libgpgme11-dev autoconf >/dev/null 2>&1 || echo -e "\n"); \
test -z "$deps"
echo -e "\\033[1;38mopkg\\033[0;39m:"
opkg:
if [ -e template ]; then \
        find template -newer template -prune ! -path '*/.git' -exec touch -r {} template ';'; \
fi
make all
make[1]: Entering directory '/home/pi/build/MLD/opkg'
rm -rf package/control
mkdir -p package
cp -rf control package/control
echo "  Build opkg..."
  Build opkg...
rm -rf package/data
mkdir -p package/data
cp -rf template/* package/data
find package/data -name '.gitignore' -exec rm {} ';' 2>/dev/null; true
make translate
make[2]: Entering directory '/home/pi/build/MLD/opkg'
rm -f src/locale/*.pot
cd package/data; \
find . $(test -d ../control && echo ../control) -type f | sort | while read file; do \
        if [ -z "${file#./etc/setup/*.xml}" ]; then \
                grep 'name="[^"]*[()]' "$file" && echo -e "\tUnerlaubte Klammer im Attribut 'name' der Datei: $file"; \
                grep 'help1="[^"]*[()]' "$file" && echo -e "\tUnerlaubte Klammer im Attribut 'help1' der Datei: $file"; \
                grep 'help2="[^"]*[()]' "$file" && echo -e "\tUnerlaubte Klammer im Attribut 'help2' der Datei: $file"; \
                sed 's/ name="\([^"]*\)"/ name="$(gt '"'"'\1'"'"')"/' -i "$file"; \
                sed 's/ help1="\([^"]*\)"/ help1="$(gt '"'"'\1'"'"')"/' -i "$file"; \
                sed 's/ help2="\([^"]*\)"/ help2="$(gt '"'"'\1'"'"')"/' -i "$file"; \
        fi; \
        if grep -Iq "\$(tr " "$file"; then sed "s/\$(tr /\$(gt /g" -i "$file"; fi; if grep -Iq '$(gt ' "$file"; then mkdir -p ../../src/locale; pot_file=../../src/locale/$(test -z "${file#./var/www/*.sh}" && echo "www" || echo "${file##*/}").pot; xgettext $(test -e $pot_file && echo '-j') -F -kgt -L shell --from-code=utf-8 -d "opkg-${file##*/}" --copyright-holder='MLD <mail@minidvblinux.de>' --package-name=MLD --package-version=4.0.1-rpi --msgid-bugs-address='<bugs@minidvblinux.de>' -o $pot_file "$file"; if [ -z "${file#./var/www/*.sh}" ]; then sed "s/\$(gt /\$(TEXTDOMAIN=\"opkg-www\" gt /" -i "$file"; else sed "s/\(\s*\)\(.*rc.functions\)/\1\2\n\1TEXTDOMAIN=\"opkg-${file##*/}\"/" -i "$file"; fi; fi; done
ls -1 src/locale/*.pot 2>/dev/null | while read file; do \
        for lc in en_GB de_DE; do \
                po_file=${file%.*}.$lc.po; \
                if [ -e $po_file ]; then \
                        msgmerge -q -U $po_file $file; \
                else \
                        echo -en "\tÜbersetzungs Datei "; \
                        msginit --no-translator -l $lc -i $file -o $po_file >/dev/null; \
                        sed 's/\(Content\-Type\: text\/plain\; charset\=\).*/\1utf-8\\n"/' -i $po_file; \
                fi; \
        done; \
done
ls -1 src/locale/*.po 2>/dev/null | while read file; do \
        name=${file%.*.*}; \
        name=${name##*/}; \
        lc=${file%.*}; \
        lc=${lc##*.}; \
        mkdir -p package/data/usr/share/locale/$lc/LC_MESSAGES/; \
        msgfmt -o package/data/usr/share/locale/$lc/LC_MESSAGES/opkg-$name.mo $file; \
done
make[2]: Leaving directory '/home/pi/build/MLD/opkg'
make modules
make[2]: Entering directory '/home/pi/build/MLD/opkg'
if [ -n "" ]; then \
        make -C ../kernel lib; \
        mkdir -p package/data/lib/modules; \
        for modul in ; do \
                file=`find lib/modules -name $modul.ko 2>/dev/null`; \
                if [ -z "$file" ]; then \
                        file=`find ../kernel/lib/modules -name $modul.ko`; \
                        if [ -z "$file" ]; then \
                                echo -e "\t  Modul nicht gefunden: \\033[1;31m$modul\\033[0;39m"; \
                                test -z "" || exit; \
                        fi; \
                fi; \
                if [ -n "$file" ]; then \
                        file_to=${file#../kernel/}; \
                        mkdir -p package/data/${file_to%/*}; \
                        cp -up $file package/data/$file_to; \
                fi; \
        done; \
fi
if [ -n "" ]; then \
        make -C ../kernel lib; \
        mkdir -p package/data/lib/modules; \
        for modulDir in ; do \
                path=lib/modules/0/kernel/$modulDir; \
                if [ ! -d "$path" ]; then \
                        path=../kernel/$path; \
                        if [ ! -d "$path" ]; then \
                                echo -e "\t  Modul Verzeichnis nicht gefunden: \\033[1;31m$modulDir\\033[0;39m"; \
                                test -z "" || exit; \
                        fi; \
                fi; \
                if [ -d "$path" ]; then \
                        path_to=${path#../kernel/}; \
                        mkdir -p package/data/$path_to; \
                        cp -upr $path/* package/data/$path_to; \
                fi; \
        done; \
fi
make[2]: Leaving directory '/home/pi/build/MLD/opkg'
mv package/data/var/www/tpl/setup package/data/var/www/tpl/setup.d 2>/dev/null; true
mv package/data/var/www/tpl/quickstart package/data/var/www/tpl/quickstart.d 2>/dev/null; true
touch package/data
rm -rf src/opkg
tar xf src/opkg.tgz -C src
mv src/opkg-HEAD src/opkg
cd src/opkg; ./autogen.sh
Generating configuration files for opkg, please wait....
No option for 'aclocal' given. Possibly you have forgotten to use 'ACLOCAL_FLAGS='?
  aclocal --install
aclocal: --install should copy macros in the directory indicated by the
aclocal: first -I option, but no -I was supplied.
aclocal failed!
Makefile:36: recipe for target 'src/opkg/configure' failed
make[1]: *** [src/opkg/configure] Error 1
make[1]: Leaving directory '/home/pi/build/MLD/opkg'
../Makefile.tools:17: recipe for target '_all' failed
make: *** [_all] Error 2
pi@raspberrypi ~/build/MLD/opkg $

aclocal x86: 1.14.1
aclocal arm: 1.11.6

Ich hoffe, das hilft weiter.

BobW

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Fehler beim Kompilieren des Paketes "opkg"
« Reply #3 on: November 09, 2014, 21:55:46 »
Hab's gefixt

Claus
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

[1] Archiv / MLD 4.x / Development / Fehler beim Kompilieren des Paketes "opkg"
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.