Package build failed!
Package build utility output:
./packages/Ubuntu/ati-packager.sh: 294: ./packages/Ubuntu/ati-packager.sh: debclean: not found
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.970-0ubuntu1
dpkg-buildpackage: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
dpkg-source --before-build fglrx.dFOuwh
dpkg-buildpackage: host architecture i386
debian/rules build
#Create important strings
for i in 10fglrx \
dkms.conf \
fglrx.install \
fglrx-dev.install \
fglrx-dev.links \
fglrx-amdcccle.install \
fglrx.grub-gfxpayload \
fglrx.dirs \
fglrx.links \
fglrx.postinst \
fglrx.postrm \
fglrx.preinst \
fglrx.prerm \
overrides/fglrx; do \
sed -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \
-e "s|#LIBDIR#|usr/lib|g" \
-e "s|#LIBDIR32#|usr/lib32|g" \
-e "s|#BINDIR#|usr/bin|g" \
-e "s|#SYSCONFDIR#|etc|g" \
-e "s|#MANDIR#|usr/share/man/man1|g" \
-e "s|#LDSOCONF#|usr/lib/fglrx/ld.so.conf|g" \
-e "s|#ALTLDSOCONF#|usr/lib/fglrx/alt_ld.so.conf|g" \
-e "s|#ALTPRIORITY#|1000|g" \
-e "s|#PXALTPRIORITY#|900|g" \
-e "s|#AUTOSTARTDIR#|etc/xdg/autostart|g" \
-e "s|#DATADIR#|usr/share|g" \
-e "s|#PKGDESKDIR#|usr/share/fglrx|g" \
-e "s|#PKGDATADIR#|usr/share/fglrx|g" \
-e "s|#PKGCONFIGDIR#|usr/lib/fglrx|g" \
-e "s|#PKGBINDIR#|usr/lib/fglrx/bin|g" \
-e "s|#PKGLIBDIR#|usr/lib/fglrx|g" \
-e "s|#PKGLIBDIR32#|usr/lib32/fglrx|g" \
-e "s|#PKGDRIVERSDIR#|usr/lib/fglrx/xorg|g" \
-e "s|#XORGEXTRA#|usr/lib/i386-linux-gnu/xorg/extra-modules|g" \
-e "s|#PKGEXTENSIONDIR#|usr/lib/fglrx/xorg|g" \
-e "s|#XORGEXTENSIONSDIR#|usr/lib/xorg/modules/extensions|g" \
-e "s|#DRIVERNAME#|fglrx|g" \
-e "s|#DRIVERDEVNAME#|fglrx-dev|g" \
-e "s|#DRIVERSRCNAME#||g" \
-e "s|#INCLUDEDIR#|usr/include|g" \
-e "s|#PKGLIBCONFDIR#|lib/fglrx|g" \
-e "s|#GRUBBLKLISTDIR#|usr/share/grub-gfxpayload-lists/blacklist|g" \
-e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \
-e "s|#PXDIR#|usr/lib/pxpress|g" \
-e "s|#PXDIR32#|usr/lib32/pxpress|g" \
-e "s|#PXXMODDIR#|usr/lib/pxpress/xorg/modules|g" \
-e "s|#PXDIRNAME#|pxpress|g" \
-e "s|#PXLIBDIR#|usr/lib/pxpress/lib|g" \
-e "s|#PXLIBDIR32#|usr/lib32/pxpress/lib|g" \
-e "s|#PXLDSOCONF#|usr/lib/pxpress/ld.so.conf|g" \
-e "s|#ALTPXLDSOCONF#|usr/lib/pxpress/alt_ld.so.conf|g" \
-e "s|#CVERSION#|8.970|g" \
-e "s|#SRCXARCH#|xpic|g" \
-e "s|#SRCARCH#|x86|g" \
-e "s|#SRCLIBDIR#|lib|g" \
-e "s|#DEB_HOST_MULTIARCH#|i386-linux-gnu|g" \
-e "s|#OTHER_ARCH#|x86_64-linux-gnu|g" \
debian/$i.in > debian/$i; \
done
# remove exec bit on everything
find arch \
etc \
lib \
module \
usr \
xpic -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86/usr/sbin \
arch/x86/usr/X11R6/bin \
usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# set the permissions on the pxpress scripts
chmod 744 debian/pxpress/switch*
dh build
dh_testdir
dh_auto_configure
dh_auto_build
dh_auto_test
debian/rules binary
# refresh copyright file
cat debian/copyright_stub_0 > debian/copyright
cat usr/share/doc/fglrx/LICENSE.TXT >> debian/copyright
cat debian/copyright_stub_1 >> debian/copyright
#Steps that we can't easily represent in debhelper files or .in files yet
# Remove any libraries that may be caught by shell expansion
find . -name libGLE* | xargs rm -f
find . -name libEGL* | xargs rm -f
dh_installdirs -pfglrx
dh_installdirs -pfglrx-dev
dh_installdocs -pfglrx usr/share/doc/fglrx/* --exclude LICENSE.TXT
dh_installdocs -pfglrx debian/AUTHORS
dh_installdocs -pfglrx debian/copyright
dh_installinit -pfglrx --name="atieventsd" --no-start --update-rcd-params="defaults 31"
#remove executable bits from stack
dh_install -pfglrx-amdcccle
execstack -c debian/fglrx-amdcccle/usr/lib/fglrx/bin/amdcccle
dh_install -pfglrx
for i in \
debian/fglrx/usr/lib/fglrx/bin/clinfo \
debian/fglrx/usr/lib/fglrx/bin/atiode \
debian/fglrx/usr/lib/fglrx/bin/amdnotifyui \
debian/fglrx/usr/lib/fglrx/dri/fglrx_dri.so \
debian/fglrx/usr/lib/fglrx/*libGL.so.*.* \
debian/fglrx/usr/lib/fglrx/*libOpenCL.so.* \
; do execstack -q $i; execstack -c $i; done
- debian/fglrx/usr/lib/fglrx/bin/clinfo
- debian/fglrx/usr/lib/fglrx/bin/atiode
- debian/fglrx/usr/lib/fglrx/bin/amdnotifyui
- debian/fglrx/usr/lib/fglrx/dri/fglrx_dri.so
- debian/fglrx/usr/lib/fglrx/fglrx-libGL.so.1.2
- debian/fglrx/usr/lib/fglrx/libOpenCL.so.1
# Make some additional scripts executable
find debian/fglrx-amdcccle/usr/lib/fglrx/bin/ \
-type f | xargs chmod a+x
# Rename libraries which are supposed to have fglrx-libGL as a prefix
for lib in `find debian/fglrx/ -name 'fglrx-libGL*'`; \
do \
file_name=`echo $lib | awk -F/ '{print $NF}'`; \
path=`echo $lib | sed -e "s|\/$file_name|\/|"`; \
# Remove fglrx prefix \
new_name=`echo $file_name | sed -e "s|fglrx\-||"`; \
full_path=`echo "$path$new_name"`; \
mv -f $lib $full_path; \
done
# Rename libraries which are supposed to have fglrx-libglx as a prefix
for lib in `find debian/fglrx/ -name 'fglrx-libglx*'`; \
do \
file_name=`echo $lib | awk -F/ '{print $NF}'`; \
path=`echo $lib | sed -e "s|\/$file_name|\/|"`; \
new_path=`echo $path | sed -e 's/fglrx\/$//'`; \
# Remove fglrx prefix \
new_name=`echo $file_name | sed -e "s|fglrx\-||"`; \
full_path=`echo "$new_path$new_name"`; \
mv -f $lib $full_path; \
done
# Create links for PowerXpress X modules (except for extensions)
for i in \
debian/fglrx/usr/lib/fglrx/xorg/modules/* \
; do \
orig_name=`echo $i | sed -e "s|debian/fglrx/||"`; \
if [ `echo $orig_name | sed -e "s|usr/lib/fglrx/xorg/modules/||"` != "extensions" ]; then \
link_name=$orig_name ; \
link_name=`echo $orig_name | sed -e "s|usr/lib/fglrx/xorg/modules|usr/lib/pxpress/xorg/modules|"`; \
dh_link -pfglrx $orig_name $link_name ; \
fi \
done
# Create links for PowerXpress libs (except for libGL)
for i in \
debian/fglrx/usr/lib/fglrx/* \
; do \
orig_name=`echo $i | sed -e "s|debian/fglrx/||"`; \
# Copy each file except for libGL* \
if [ -f $i ]; then \
if [ ! `echo $orig_name | grep libGL` ]; then \
link_name=$orig_name ; \
link_name=`echo $orig_name | sed -e "s|usr/lib/fglrx|usr/lib/pxpress/lib|"`; \
dh_link -pfglrx $orig_name $link_name ; \
fi \
else \
# Here we only accept the dri directory \
dir_name=`echo $orig_name | awk -F/ '{print $NF}'`; \
if [ "$dir_name" = "dri" ]; then \
link_name=$orig_name ; \
link_name=`echo $orig_name | sed -e "s|usr/lib/fglrx|usr/lib/pxpress/lib|"`; \
dh_link -pfglrx $orig_name $link_name ; \
fi \
fi \
done
# Blacklist any other driver that udev may want to load instead of fglrx
# and create an alias for the module so that it can be used as fglrx
printf '# This file was installed by fglrx\n# Do not edit this file manually\n\nblacklist radeon\nalias fglrx fglrx\nalias radeon off\nalias lbm-radeon off' > /tmp/fglrx.dFOuwh/debian/fglrx/lib/fglrx/modprobe.conf
#ld.so.conf
echo "/usr/lib/fglrx" > "/tmp/fglrx.dFOuwh/debian/fglrx/usr/lib/fglrx/ld.so.conf"
# ld.so.conf for PowerXpress
echo "/usr/lib/i386-linux-gnu/mesa" > "/tmp/fglrx.dFOuwh/debian/fglrx/usr/lib/pxpress/ld.so.conf"
echo "/usr/lib/pxpress/lib" >> "/tmp/fglrx.dFOuwh/debian/fglrx/usr/lib/pxpress/ld.so.conf"
# empty ld.so.conf for the fake multi-arch alternative
echo "" > "/tmp/fglrx.dFOuwh/debian/fglrx/usr/lib/fglrx/alt_ld.so.conf"
# empty ld.so.conf for the fake multi-arch alternative for PXpress
echo "" > "/tmp/fglrx.dFOuwh/debian/fglrx/usr/lib/pxpress/alt_ld.so.conf"
# Generate modaliases
sh -e debian/modaliases/fglrx_supported \
lib/modules/fglrx/build_mod/fglrxko_pci_ids.h fglrx fglrx > \
debian/fglrx.modaliases
dh_modaliases
make: dh_modaliases: Command not found
make: *** [binary-arch] Error 127
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
[Error] Generate Package - error generating package : Ubuntu/precise