bug in pkg-fglrx 156
hello,
when i make an .deb for fglrx-driver 9-1-2 with the svn version
Current directory: [pkg-fglrx]
Current revision: 156
there is no problems to build the pakage, but when i install it on my debian
lenny there gives me
the following error
/var/lib/dpkg/info/fglrx-driver.config: line 12: syntax error near unexpected
token `else'
this i have been fix in debian/fglrx-driver.config in line 12 from
if `laptop-detect > /dev/null`;
to
if `laptop-detect > /dev/null`; then
but then i have an new error
/var/lib/dpkg/info/fglrx-driver.config: line 9: [: missing `]'
this i have been fix in debian/fglrx-driver.config in line 9 from
if [ "$RET" != "true" && "$RET" != "false" && -x `which laptop-detect` ]; then
to
if [ "$RET" != "true" ] && [ "$RET" != "false" ] && [ -x `which
laptop-detect` ]; then
it seems to be fixed the problems when i install my new pakete there was no
error.
i provided and send one patch for these.
sorry for my bad english, i hope you will understand my text ;)
PS:
i have also changed the Depends for xserver-xorg in debian/control from
xserver-xorg (>= 1:7.4) to xserver-xorg (>= 1:7.3), to run it for the default
xserver-xorg in debian lenny.
--- fglrx-driver-9-1.orig/debian/fglrx-driver.config 2009-02-05 23:28:24.000000000 +0100
+++ fglrx-driver-9-1/debian/fglrx-driver.config 2009-02-05 22:30:16.000000000 +0100
@@ -6,8 +6,8 @@
db_get fglrx-driver/acpi_switch || true
-if [ "$RET" != "true" && "$RET" != "false" && -x `which laptop-detect` ]; then
- if `laptop-detect > /dev/null`;
+if [ "$RET" != "true" ] && [ "$RET" != "false" ] && [ -x `which laptop-detect` ]; then
+ if `laptop-detect > /dev/null`; then
db_set fglrx-driver/acpi_switch false
else
db_set fglrx-driver/acpi_switch true
Reply to: