Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13658 - [jpilot] is not easy to do hotsync

Attached to Project: Arch Linux
Opened by Daniel YC Lin (dlin) - Wednesday, 04 March 2009, 10:14 GMT
Last edited by Roman Kyrylych (Romashka) - Tuesday, 21 July 2009, 21:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:


Additional info: jpilot 1.6.2-1
* package version(s)
* config and/or log files etc.


Steps to reproduce:
do hotsync with usb hotplug.

I modify the PKGBUILD as
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
# for wait dynamic /dev/pilot apprear when hotsync
patch sync.c ${srcdir}/pilot_udev.patch || return 1

./configure --prefix=/usr --disable-pl-test
make || return 1
make DESTDIR=${startdir}/pkg install
}

and the pilot_udev.patch
diff -r b1d2ee43c305 sync.c
--- a/sync.c Mon Jul 07 12:26:22 2008 +0800
+++ b/sync.c Mon Jul 07 13:49:53 2008 +0800
@@ -484,8 +484,23 @@
int sd;
int ret;
struct SysInfo sys_info;
+ int wait_seconds=10;
+ struct stat st;

*Psd=0;
+
+ jp_logf(JP_LOG_GUI, _("Checking device %s exist for %d seconds\n"),
+ device, wait_seconds);
+ while (wait_seconds) {
+ jp_logf(JP_LOG_GUI, _("wait left %d seconds\n"), wait_seconds);
+ if (lstat(device, &st) == 0) {
+ jp_logf(JP_LOG_GUI, _("found %s\n"), device);
+ break;
+ }
+ sleep(1);
+ wait_seconds--;
+ }
+ jp_logf(JP_LOG_GUI, _("Checking finished\n"));

sd = pi_socket(PI_AF_PILOT, PI_SOCK_STREAM, PI_PF_DLP);
if (sd < 0) {

This task depends upon

Closed by  Roman Kyrylych (Romashka)
Tuesday, 21 July 2009, 21:59 GMT
Reason for closing:  Upstream
Comment by Eric Belanger (Snowman) - Wednesday, 04 March 2009, 18:01 GMT
If you didn't created the patch by yourself, can you post its source?
Comment by Daniel YC Lin (dlin) - Thursday, 05 March 2009, 00:35 GMT
I've created my personal dirty patch. as previous pilot_udev.patch

and the PKGBUILD should add as what I've post on PKGBUILD
patch sync.c ${srcdir}/pilot_udev.patch || return 1
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 02 June 2009, 00:48 GMT
@Daniel: can you submit this patch to upstream?
Comment by Daniel YC Lin (dlin) - Wednesday, 03 June 2009, 01:23 GMT
djgera: I don't know where is upstream to contact. As I've said, this is a 'dirty' patch.
It is not work smoothly, I found sometimes it can not work. I don't know how to really fix this problem.
Comment by Roman Kyrylych (Romashka) - Tuesday, 21 July 2009, 21:58 GMT
Please report here: http://bugs.jpilot.org Thanks.

Loading...