Bug 760839 - build without tcl
Summary: build without tcl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: usb_modeswitch
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: romal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 799144
TreeView+ depends on / blocked
 
Reported: 2011-12-07 04:28 UTC by Bill Nottingham
Modified: 2014-03-17 03:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-22 02:23:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
spec diff (869 bytes, patch)
2011-12-07 04:28 UTC, Bill Nottingham
no flags Details | Diff

Description Bill Nottingham 2011-12-07 04:28:02 UTC
Created attachment 541721 [details]
spec diff

Description of problem:

Increases size of usb_modeswitch package from 168k to 324k, but allows us to drop a 4.4MB tcl package that is unlikely to be used for anything else on a default install/live image.

Version-Release number of selected component (if applicable):

usb_modeswitch-1.2.0

Additional Information:

'static' just means make a binary out of the tcl script; it's still dynamically linked.

Comment 1 Bill Nottingham 2012-04-24 16:46:37 UTC
Ping?

Comment 2 Dan Williams 2012-04-24 17:24:36 UTC
Updated patch against 1.2.2 is:

diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec
index ae7a4a5..469d0ce 100644
--- a/usb_modeswitch.spec
+++ b/usb_modeswitch.spec
@@ -37,7 +37,7 @@ touch -r device_reference.txt device_reference.txt.new && \
 mv device_reference.txt.new device_reference.txt
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
+CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static
 
 
 %install
@@ -48,7 +48,7 @@ mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
 
 install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/
-install -p -m 755 usb_modeswitch.tcl $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher
+install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/
 install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
 gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1
 install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT/lib/udev/usb_modeswitch

and that works for 6 WWAN dongles I pulled out of my box.

Comment 3 Dan Williams 2012-04-24 17:25:54 UTC
(ZTE MF627, Huawei UMG1831, Alcatel/TCT OneTouch X200, Samsung SGH-Z810, Huawei E1552, Zoom 4597)

Comment 4 Fedora Update System 2012-04-24 19:53:38 UTC
usb_modeswitch-data-20120120-1.fc16,usb_modeswitch-1.2.3-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/usb_modeswitch-data-20120120-1.fc16,usb_modeswitch-1.2.3-1.fc16

Comment 5 Fedora Update System 2012-04-24 19:54:11 UTC
usb_modeswitch-data-20120120-1.fc17,usb_modeswitch-1.2.3-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/usb_modeswitch-data-20120120-1.fc17,usb_modeswitch-1.2.3-1.fc17

Comment 6 Fedora Update System 2012-04-26 03:25:31 UTC
Package usb_modeswitch-data-20120120-1.fc16, usb_modeswitch-1.2.3-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing usb_modeswitch-data-20120120-1.fc16 usb_modeswitch-1.2.3-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6617/usb_modeswitch-data-20120120-1.fc16,usb_modeswitch-1.2.3-1.fc16
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-05-22 02:23:00 UTC
usb_modeswitch-data-20120120-1.fc16, usb_modeswitch-1.2.3-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-05-26 07:12:42 UTC
usb_modeswitch-data-20120120-1.fc17, usb_modeswitch-1.2.3-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.