Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227671
b: refs/heads/master
c: 10f26fa
h: refs/heads/master
i:
  227669: a84853f
  227667: c8e2209
  227663: 9d8d8bd
v: v3
  • Loading branch information
Asbjoern Sloth Toennesen authored and Michal Marek committed Nov 25, 2010
1 parent d8ac909 commit ddf1e90
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e86c2412c88fbe4676920c40348d3c547c9edb0d
refs/heads/master: 10f26fa64200095af0e5d80a980e47877865e4b7
35 changes: 34 additions & 1 deletion trunk/scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,41 @@ create_package() {
chown -R root:root "$pdir"
chmod -R go-w "$pdir"

# Attempt to find the correct Debian architecture
local forcearch="" debarch=""
case "$UTS_MACHINE" in
i386|ia64|alpha)
debarch="$UTS_MACHINE" ;;
x86_64)
debarch=amd64 ;;
sparc*)
debarch=sparc ;;
s390*)
debarch=s390 ;;
ppc*)
debarch=powerpc ;;
parisc*)
debarch=hppa ;;
mips*)
debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y .config && echo el) ;;
arm*)
debarch=arm$(grep -q CONFIG_AEABI=y .config && echo el) ;;
*)
echo "" >&2
echo "** ** ** WARNING ** ** **" >&2
echo "" >&2
echo "Your architecture doesn't have it's equivalent" >&2
echo "Debian userspace architecture defined!" >&2
echo "Falling back to using your current userspace instead!" >&2
echo "Please add support for $UTS_MACHINE to ${0} ..." >&2
echo "" >&2
esac
if [ -n "$debarch" ] ; then
forcearch="-DArchitecture=$debarch"
fi

# Create the package
dpkg-gencontrol -isp -p$pname -P"$pdir"
dpkg-gencontrol -isp $forcearch -p$pname -P"$pdir"
dpkg --build "$pdir" ..
}

Expand Down

0 comments on commit ddf1e90

Please sign in to comment.