Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FreeFileSync ebuild fails when unpacking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Sun Jun 23, 2013 12:43 am    Post subject: FreeFileSync ebuild fails when unpacking Reply with quote

I am trying to install FreeFileSync and I found an ebuild for it here... http://gpo.zugaina.org/app-misc/freefilesync

I've never used a custom ebuild so I searched the web and followed the instructions on how to do it. First, I added "PORTDIR_OVERLAY=/usr/local/portage" to my /etc/make.conf. Then I created the required directories - /usr/local/portage/app-misc/freefilesync then I downloaded the ebuild into that directory and
Code:
ebuild freefilesync-5.6.ebuild manifest


I added the ~amd64 keyword to the appropriate file so I could emerge it...

Code:
emerge -av freefilesync


but the ebuild fails during the unpacking phase with this error...

Code:
Unpacking FreeFileSync_5.6_source.zip to /var/calculate/tmp/portage/app-misc/freefilesync-5.6/work
[/var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/FreeFileSync_5.6_source.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/FreeFileSync_5.6_source.zip or
        /var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/FreeFileSync_5.6_source.zip.zip, and cannot find /var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/FreeFileSync_5.6_source.zip.ZIP, period.

Here's the build.log...

Code:
* Package:    app-misc/freefilesync-5.6
 * Repository: x-portage
 * USE:        abi_x86_64 amd64 cdistro_CLDX cdistro_desktop elibc_glibc kernel_linux multilib realtime userland$
 * FEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking FreeFileSync_5.6_source.zip to /var/calculate/tmp/portage/app-misc/freefilesync-5.6/work
[/var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/FreeFileSync_5.6_source.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/Fre$
        /var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/FreeFileSync_5.6_source.zip.zip, and cannot$
 * ERROR: app-misc/freefilesync-5.6 failed (unpack phase):
 *   failure unpacking FreeFileSync_5.6_source.zip
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_unpack
 *        environment, line 2324:  Called __eapi0_src_unpack
 *   phase-helpers.sh, line  585:  Called unpack 'FreeFileSync_5.6_source.zip'
 *   phase-helpers.sh, line  339:  Called die
 * The specific snippet of code:
 *                              ( set +x ; while true ; do echo n || break ; done ) | \
 *                              unzip -qo "${srcdir}${x}" || die "$myfail"
 *
 * If you need support, post the output of `emerge --info '=app-misc/freefilesync-5.6'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/freefilesync-5.6'`.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/temp/build.log'.
 * The ebuild environment file is located at '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/temp/environm$
 * Working directory: '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/work'
 * S: '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/work'


I tried to open the file that it is complaining about and I got an error but the archive opened and shows a file in there. What's going on here?
~Thanks
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Sun Jun 23, 2013 1:19 am    Post subject: Reply with quote

I just discovered that I can download a much newer version (new version is 5.16, while the ebuild is 5.6) but I would have to build it from source. I'd like to learn how to do that but searching using keywords "gentoo install application from source" returns a lot of Gentoo source install instructions as you can imagine. I haven't had much luck on finding a howto on installing software in Gentoo from source.

Any suggestions guys? The newest version is located at... http://sourceforge.net/projects/freefilesync/files/freefilesync/v5.16/ How would you do it?

~Thanks
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Jun 23, 2013 1:38 am    Post subject: Reply with quote

/var/calculate/tmp/portage/app-misc/freefilesync-5.6/distdir/FreeFileSync_5.6_source.zip file is missing.....

http://downloads.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip?r=http%3A%2F%2Fsourceforge.jp%2Fprojects%2Fsfnet_freefilesync%2Fdownloads%2Ffreefilesync%2Farchive%2FFreeFileSync_5.6_source.zip%2F&ts=1371951447&use_mirror=iweb

then migrate the sources to line up with the ebuild error messages.....

compile sources from scratch?

tar -xf file.tar.gz
cd file
./configure --prefix=/usr && make && su -c 'make install'

(some sources are touchy, and require ./configure --help to get them set in a way congruent to your system adapting the sources)

reference.... http://www.linuxfromscratch.org/lfs/view/stable/chapter06/file.html (&& = do this command after 1st command executes successfully)

listen to this while ur at it....
http://youtu.be/E-7ST2tJdBw?t=10m26s
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Jun 23, 2013 3:02 am    Post subject: Reply with quote

RexAtHighSpeed,

You should try using layman and add this repo:
Code:
bill@stable ~ $ layman -L|grep zug
 * zugaina                   [Rsync     ] (rsync://gentoo.zugaina.org/zugain...)


The instructions for overlays are located here
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Sun Jun 23, 2013 4:16 am    Post subject: Reply with quote

666threesixes666 wrote:
compile sources from scratch?

tar -xf file.tar.gz
cd file
./configure --prefix=/usr && make && su -c 'make install'

(some sources are touchy, and require ./configure --help to get them set in a way congruent to your system adapting the sources)

reference.... http://www.linuxfromscratch.org/lfs/view/stable/chapter06/file.html (&& = do this command after 1st command executes successfully)
Please do not advocate dangerous actions without adequate cautions. Installing any package directly is unnecessary when Portage is functional, and installing it into /usr is asking for trouble.
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Sun Jun 23, 2013 4:44 am    Post subject: Reply with quote

I tried adding the gentoo-zh layman and it found the ebuild but when I emerge it fails the file verification. Here is the build.log...

Code:
>>> Downloading 'ftp://gentoo.inf.elte.hu/distfiles/FreeFileSync_5.6_source.zip'
--2013-06-23 04:23:11--  ftp://gentoo.inf.elte.hu/distfiles/FreeFileSync_5.6_source.zip
           => ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’
Resolving gentoo.inf.elte.hu... 157.181.161.30
Connecting to gentoo.inf.elte.hu|157.181.161.30|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /distfiles ... done.
==> SIZE FreeFileSync_5.6_source.zip ... done.
==> PASV ... done.    ==> RETR FreeFileSync_5.6_source.zip ...
No such file ‘FreeFileSync_5.6_source.zip’.

>>> Downloading 'ftp://de-mirror.org/gentoo/distfiles/FreeFileSync_5.6_source.zip'
--2013-06-23 04:23:14--  ftp://de-mirror.org/gentoo/distfiles/FreeFileSync_5.6_source.zip
           => ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’
Resolving de-mirror.org... 87.106.54.147
Connecting to de-mirror.org|87.106.54.147|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /gentoo/distfiles ... done.
==> SIZE FreeFileSync_5.6_source.zip ... done.
==> PASV ... done.    ==> RETR FreeFileSync_5.6_source.zip ...
No such file ‘FreeFileSync_5.6_source.zip’.

>>> Downloading 'ftp://cesium.di.uminho.pt/pub/gentoo/distfiles/FreeFileSync_5.6_source.zip'
--2013-06-23 04:23:15--  ftp://cesium.di.uminho.pt/pub/gentoo/distfiles/FreeFileSync_5.6_source.zip
           => ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’
Resolving cesium.di.uminho.pt... 193.136.19.148
Connecting to cesium.di.uminho.pt|193.136.19.148|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/gentoo/distfiles ... done.
==> SIZE FreeFileSync_5.6_source.zip ... done.
==> PASV ... done.    ==> RETR FreeFileSync_5.6_source.zip ...
No such file ‘FreeFileSync_5.6_source.zip’.

>>> Downloading 'http://gentoo.mirrors.pair.com/distfiles/FreeFileSync_5.6_source.zip'
--2013-06-23 04:23:19--  http://gentoo.mirrors.pair.com/distfiles/FreeFileSync_5.6_source.zip
Resolving gentoo.mirrors.pair.com... 216.92.2.140
Connecting to gentoo.mirrors.pair.com|216.92.2.140|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-06-23 04:23:19 ERROR 404: Not Found.

>>> Downloading 'http://gentoo.mirrors.hoobly.com/distfiles/FreeFileSync_5.6_source.zip'
--2013-06-23 04:23:19--  http://gentoo.mirrors.hoobly.com/distfiles/FreeFileSync_5.6_source.zip
Resolving gentoo.mirrors.hoobly.com... 66.160.172.98
Connecting to gentoo.mirrors.hoobly.com|66.160.172.98|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-06-23 04:23:20 ERROR 404: Not Found.

>>> Downloading 'http://jaist.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip'
--2013-06-23 04:23:20--  http://jaist.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Resolving jaist.dl.sourceforge.net... 150.65.7.130
Connecting to jaist.dl.sourceforge.net|150.65.7.130|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip?download&failedmirror=jaist.dl.sourceforge.net [following]
--2013-06-23 04:23:20--  http://downloads.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip?download&failedmirror=jaist.dl.sourceforge.net
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip?download=&failedmirror=jaist.dl.sourceforge.net [following]
--2013-06-23 04:23:20--  http://downloads.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip?download=&failedmirror=jaist.dl.sourceforge.net
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://hivelocity.dl.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip [following]
--2013-06-23 04:23:21--  http://hivelocity.dl.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip
Resolving hivelocity.dl.sourceforge.net... 74.50.101.106
Connecting to hivelocity.dl.sourceforge.net|74.50.101.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3115497 (3.0M) [application/octet-stream]
Saving to: ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’


 0% [                                       ] 0           --.-K/s             
 2% [>                                      ] 88,098       430KB/s             
 8% [==>                                    ] 256,066      618KB/s             
16% [=====>                                 ] 499,330      806KB/s             
22% [=======>                               ] 716,530      795KB/s             
24% [========>                              ] 751,282      678KB/s             
27% [=========>                             ] 870,018      643KB/s             
35% [============>                          ] 1,093,010    701KB/s             
43% [================>                      ] 1,363,786    772KB/s             
53% [===================>                   ] 1,656,282    834KB/s             
61% [=======================>               ] 1,918,370    876KB/s             
73% [===========================>           ] 2,276,026    950KB/s             
82% [===============================>       ] 2,574,314    990KB/s             
96% [====================================>  ] 2,994,234   1.04MB/s             
100%[======================================>] 3,115,497   1.07MB/s   in 2.8s   

2013-06-23 04:23:24 (1.07 MB/s) - ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’ saved [3115497/3115497]

!!! Fetched file: FreeFileSync_5.6_source.zip VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      3115497
!!! Expected: 7405361
Refetching... File renamed to '/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip._checksum_failure_.FpaaAS'

>>> Downloading 'http://ignum.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip'
--2013-06-23 04:23:24--  http://ignum.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Resolving ignum.dl.sourceforge.net... 62.109.128.11
Connecting to ignum.dl.sourceforge.net|62.109.128.11|:80... failed: Connection timed out.
Retrying.

--2013-06-23 04:24:25--  (try: 2)  http://ignum.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Connecting to ignum.dl.sourceforge.net|62.109.128.11|:80... failed: Connection timed out.
Retrying.

--2013-06-23 04:25:27--  (try: 3)  http://ignum.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Connecting to ignum.dl.sourceforge.net|62.109.128.11|:80... failed: Connection timed out.
Giving up.

>>> Downloading 'http://transact.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip'
--2013-06-23 04:26:27--  http://transact.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Resolving transact.dl.sourceforge.net... 67.215.65.132
Connecting to transact.dl.sourceforge.net|67.215.65.132|:80... connected.
HTTP request sent, awaiting response... 303 See Other
Location: http://guidetest.a.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:27--  http://guidetest.a.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving guidetest.a.id.opendns.com... 67.215.67.91
Connecting to guidetest.a.id.opendns.com|67.215.67.91|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w91.guidetest.b.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:27--  http://w91.guidetest.b.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w91.guidetest.b.id.opendns.com... 67.215.67.62
Connecting to w91.guidetest.b.id.opendns.com|67.215.67.62|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w62.w91.guidetest.c.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:27--  http://w62.w91.guidetest.c.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w62.w91.guidetest.c.id.opendns.com... 67.215.67.63
Connecting to w62.w91.guidetest.c.id.opendns.com|67.215.67.63|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w63.w62.w91.guidetest.d.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:28--  http://w63.w62.w91.guidetest.d.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w63.w62.w91.guidetest.d.id.opendns.com... 67.215.67.10
Connecting to w63.w62.w91.guidetest.d.id.opendns.com|67.215.67.10|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w10.w63.w62.w91.guidetest.e.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:28--  http://w10.w63.w62.w91.guidetest.e.id.opendns.com/?url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w10.w63.w62.w91.guidetest.e.id.opendns.com... 67.215.67.10
Connecting to w10.w63.w62.w91.guidetest.e.id.opendns.com|67.215.67.10|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.website-unavailable.com/?wc=GQprGgFxaxpGAQpxBwkdEhMWUhED&url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:28--  http://www.website-unavailable.com/?wc=GQprGgFxaxpGAQpxBwkdEhMWUhED&url=transact%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving www.website-unavailable.com... 208.69.32.136
Connecting to www.website-unavailable.com|208.69.32.136|:80... connected.
HTTP request sent, awaiting response... 200 OK
Cookie coming from www.website-unavailable.com attempted to set domain to www.website-unavailable.com
Length: 5635 (5.5K) [text/html]
Saving to: ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’


 0% [                                       ] 0           --.-K/s             
100%[======================================>] 5,635       --.-K/s   in 0.05s   

2013-06-23 04:26:28 (115 KB/s) - ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’ saved [5635/5635]

!!! Fetched file: FreeFileSync_5.6_source.zip VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      5635
!!! Expected: 7405361
Refetching... File renamed to '/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip._checksum_failure_.CVl4HU'

>>> Downloading 'http://softlayer.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip'
--2013-06-23 04:26:28--  http://softlayer.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Resolving softlayer.dl.sourceforge.net... 67.228.157.232
Connecting to softlayer.dl.sourceforge.net|67.228.157.232|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://downloads.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip?download&failedmirror=softlayer-dal.dl.sourceforge.net [following]
--2013-06-23 04:26:28--  http://downloads.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip?download&failedmirror=softlayer-dal.dl.sourceforge.net
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip?download=&failedmirror=softlayer-dal.dl.sourceforge.net [following]
--2013-06-23 04:26:29--  http://downloads.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip?download=&failedmirror=softlayer-dal.dl.sourceforge.net
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://superb-dca3.dl.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip [following]
--2013-06-23 04:26:29--  http://superb-dca3.dl.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip
Resolving superb-dca3.dl.sourceforge.net... 207.228.224.228
Connecting to superb-dca3.dl.sourceforge.net|207.228.224.228|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3115497 (3.0M) [application/octet-stream]
Saving to: ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’


 0% [                                       ] 0           --.-K/s             
 1% [                                       ] 34,752      76.3KB/s             
 2% [>                                      ] 85,432       109KB/s             
 4% [>                                      ] 133,216      123KB/s             
 6% [=>                                     ] 208,512      137KB/s             
 9% [==>                                    ] 283,808      161KB/s             
10% [===>                                   ] 330,144      125KB/s             
11% [===>                                   ] 367,728      129KB/s             
14% [====>                                  ] 456,056      141KB/s  eta 18s   
16% [=====>                                 ] 502,392      146KB/s  eta 18s   
18% [======>                                ] 573,344      132KB/s  eta 19s   
19% [======>                                ] 616,784      135KB/s  eta 19s   
22% [=======>                               ] 692,080      142KB/s  eta 19s   
27% [=========>                             ] 854,256      168KB/s  eta 19s   
29% [==========>                            ] 931,000      176KB/s  eta 19s   
32% [===========>                           ] 1,022,224    182KB/s  eta 11s   
34% [============>                          ] 1,074,352    193KB/s  eta 11s   
38% [=============>                         ] 1,197,432    200KB/s  eta 11s   
39% [==============>                        ] 1,245,216    202KB/s  eta 11s   
43% [===============>                       ] 1,356,712    218KB/s  eta 9s     
45% [================>                      ] 1,403,048    215KB/s  eta 9s     
48% [==================>                    ] 1,520,336    263KB/s  eta 9s     
49% [==================>                    ] 1,544,952    215KB/s  eta 8s     
50% [==================>                    ] 1,581,152    216KB/s  eta 8s     
53% [====================>                  ] 1,678,168    227KB/s  eta 8s     
55% [====================>                  ] 1,717,264    196KB/s  eta 8s     
55% [====================>                  ] 1,718,712    175KB/s  eta 8s     
56% [=====================>                 ] 1,760,704    195KB/s  eta 8s     
60% [======================>                ] 1,883,784    208KB/s  eta 8s     
60% [======================>                ] 1,892,472    188KB/s  eta 7s     
62% [=======================>               ] 1,940,256    191KB/s  eta 7s     
65% [========================>              ] 2,051,752    189KB/s  eta 7s     
66% [========================>              ] 2,067,680    174KB/s  eta 7s     
67% [=========================>             ] 2,103,880    162KB/s  eta 6s     
71% [==========================>            ] 2,221,168    174KB/s  eta 6s     
71% [===========================>           ] 2,241,440    162KB/s  eta 6s     
73% [===========================>           ] 2,274,744    155KB/s  eta 5s     
75% [============================>          ] 2,358,728    161KB/s  eta 5s     
80% [==============================>        ] 2,496,288    168KB/s  eta 5s     
81% [==============================>        ] 2,532,488    155KB/s  eta 5s     
82% [===============================>       ] 2,564,344    154KB/s  eta 3s     
85% [================================>      ] 2,659,912    153KB/s  eta 3s     
86% [================================>      ] 2,704,800    140KB/s  eta 2s     
87% [=================================>     ] 2,727,968    151KB/s  eta 2s     
90% [==================================>    ] 2,814,848    154KB/s  eta 2s     
92% [===================================>   ] 2,878,560    143KB/s  eta 1s     
92% [===================================>   ] 2,880,008    155KB/s  eta 1s     
93% [===================================>   ] 2,924,896    156KB/s  eta 1s     
97% [=====================================> ] 3,037,840    161KB/s  eta 1s     
98% [=====================================> ] 3,053,768    148KB/s  eta 0s     
99% [=====================================> ] 3,088,520    147KB/s  eta 0s     
100%[======================================>] 3,115,497    149KB/s   in 19s   

2013-06-23 04:26:50 (161 KB/s) - ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’ saved [3115497/3115497]

!!! Fetched file: FreeFileSync_5.6_source.zip VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      3115497
!!! Expected: 7405361
Refetching... File renamed to '/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip._checksum_failure_.FpaaAS'

>>> Downloading 'http://internap.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip'
--2013-06-23 04:26:50--  http://internap.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Resolving internap.dl.sourceforge.net... 67.215.65.132
Connecting to internap.dl.sourceforge.net|67.215.65.132|:80... connected.
HTTP request sent, awaiting response... 303 See Other
Location: http://guidetest.a.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:50--  http://guidetest.a.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving guidetest.a.id.opendns.com... 67.215.67.91
Connecting to guidetest.a.id.opendns.com|67.215.67.91|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w91.guidetest.b.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:50--  http://w91.guidetest.b.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w91.guidetest.b.id.opendns.com... 67.215.67.62
Connecting to w91.guidetest.b.id.opendns.com|67.215.67.62|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w62.w91.guidetest.c.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:51--  http://w62.w91.guidetest.c.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w62.w91.guidetest.c.id.opendns.com... 67.215.67.63
Connecting to w62.w91.guidetest.c.id.opendns.com|67.215.67.63|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w63.w62.w91.guidetest.d.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:51--  http://w63.w62.w91.guidetest.d.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w63.w62.w91.guidetest.d.id.opendns.com... 67.215.67.10
Connecting to w63.w62.w91.guidetest.d.id.opendns.com|67.215.67.10|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://w10.w63.w62.w91.guidetest.e.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:51--  http://w10.w63.w62.w91.guidetest.e.id.opendns.com/?url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving w10.w63.w62.w91.guidetest.e.id.opendns.com... 67.215.67.10
Connecting to w10.w63.w62.w91.guidetest.e.id.opendns.com|67.215.67.10|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.website-unavailable.com/?wc=GQprGgFxaxpGAQpxBwkdEhMWUhED&url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip [following]
--2013-06-23 04:26:51--  http://www.website-unavailable.com/?wc=GQprGgFxaxpGAQpxBwkdEhMWUhED&url=internap%2Edl%2Esourceforge%2Enet%2Ffreefilesync%2FFreeFileSync%5F5%2E6%5Fsource%2Ezip
Resolving www.website-unavailable.com... 208.69.32.136
Connecting to www.website-unavailable.com|208.69.32.136|:80... connected.
HTTP request sent, awaiting response... 200 OK
Cookie coming from www.website-unavailable.com attempted to set domain to www.website-unavailable.com
Length: 5635 (5.5K) [text/html]
Saving to: ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’


 0% [                                       ] 0           --.-K/s             
100%[======================================>] 5,635       --.-K/s   in 0.05s   

2013-06-23 04:26:51 (121 KB/s) - ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’ saved [5635/5635]

!!! Fetched file: FreeFileSync_5.6_source.zip VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      5635
!!! Expected: 7405361
Refetching... File renamed to '/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip._checksum_failure_.fH68Oy'

>>> Downloading 'http://ovh.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip'
--2013-06-23 04:26:51--  http://ovh.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Resolving ovh.dl.sourceforge.net... 91.121.188.201, 91.121.189.201
Connecting to ovh.dl.sourceforge.net|91.121.188.201|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-06-23 04:26:52 ERROR 404: Not Found.

>>> Downloading 'http://nchc.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip'
--2013-06-23 04:26:52--  http://nchc.dl.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip
Resolving nchc.dl.sourceforge.net... 211.79.60.17
Connecting to nchc.dl.sourceforge.net|211.79.60.17|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip?download&failedmirror=nchc.dl.sourceforge.net [following]
--2013-06-23 04:26:52--  http://downloads.sourceforge.net/freefilesync/FreeFileSync_5.6_source.zip?download&failedmirror=nchc.dl.sourceforge.net
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip?download=&failedmirror=nchc.dl.sourceforge.net [following]
--2013-06-23 04:26:53--  http://downloads.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip?download=&failedmirror=nchc.dl.sourceforge.net
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://hivelocity.dl.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip [following]
--2013-06-23 04:26:53--  http://hivelocity.dl.sourceforge.net/project/freefilesync/freefilesync/archive/FreeFileSync_5.6_source.zip
Resolving hivelocity.dl.sourceforge.net... 74.50.101.106
Connecting to hivelocity.dl.sourceforge.net|74.50.101.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3115497 (3.0M) [application/octet-stream]
Saving to: ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’


 0% [                                       ] 0           --.-K/s             
 3% [>                                      ] 106,922      522KB/s             
 9% [==>                                    ] 286,474      699KB/s             
15% [=====>                                 ] 487,746      794KB/s             
23% [========>                              ] 728,114      888KB/s             
32% [===========>                           ] 1,009,026    984KB/s             
40% [==============>                        ] 1,272,562   1.01MB/s             
50% [==================>                    ] 1,583,882   1.07MB/s             
61% [=======================>               ] 1,928,506   1.14MB/s             
74% [============================>          ] 2,329,602   1.23MB/s             
87% [=================================>     ] 2,740,834   1.30MB/s             
100%[======================================>] 3,115,497   1.35MB/s   in 2.2s   

2013-06-23 04:26:55 (1.35 MB/s) - ‘/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip’ saved [3115497/3115497]

!!! Fetched file: FreeFileSync_5.6_source.zip VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      3115497
!!! Expected: 7405361
Refetching... File renamed to '/var/calculate/remote/distfiles/FreeFileSync_5.6_source.zip._checksum_failure_.FpaaAS'

!!! Couldn't download 'FreeFileSync_5.6_source.zip'. Aborting.
 * Fetch failed for 'app-misc/freefilesync-5.6', Log file:
 *  '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/temp/build.log'
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Jun 23, 2013 5:01 am    Post subject: Reply with quote

RexAtHighSpeed,

Definitely some problems there :roll:

I don't know exactly what your needs are, but maybe dev-util/meld would be useful in the interim.

http://meldmerge.org/features.html
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Sun Jun 23, 2013 3:06 pm    Post subject: Reply with quote

I need a utility to sync my laptop to an external drive. I generate a lot of data and I need something that will keep the two drives in sync. I've used meld before but it's not designed to do what I want it to - but thanks anyways.

How can I get this program installed in Gentoo?
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sun Jun 23, 2013 3:15 pm    Post subject: Reply with quote

You need to remanifest after you download the file, do that by removing the Manifest file and running `repoman manifest --force`

If you don't want to go through writing an ebuild yourself, consider using something simple like rsync or rdiff-backup.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Jun 23, 2013 3:35 pm    Post subject: Reply with quote

RexAtHighSpeed wrote:
I need a utility to sync my laptop to an external drive. I generate a lot of data and I need something that will keep the two drives in sync. I've used meld before but it's not designed to do what I want it to - but thanks anyways.

How can I get this program installed in Gentoo?


For syncing files to an external drive or nfs mount, rsync is the way to go as TomWij alluded to. I've been using it for years :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Sun Jun 23, 2013 3:53 pm    Post subject: Reply with quote

Thanks Tom, I did as you suggested and it failed again for another reason. AAAARRRRGGGHHH!!!!

I'm about to throw in the towel...

Here's the build log...

Code:
^[[32;01m * ^[[39;49;00mPackage:    app-misc/freefilesync-5.6
^[[32;01m * ^[[39;49;00mRepository: x-portage
^[[32;01m * ^[[39;49;00mUSE:        abi_x86_64 amd64 cdistro_CLDX cdistro_desktop elibc_glibc kernel_linux multilib realtime userland_GNU
^[[32;01m * ^[[39;49;00mFEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking FreeFileSync_5.6_source.zip to /var/calculate/tmp/portage/app-misc/freefilesync-5.6/work
>>> Source unpacked in /var/calculate/tmp/portage/app-misc/freefilesync-5.6/work
>>> Preparing source in /var/calculate/tmp/portage/app-misc/freefilesync-5.6/work ...
>>> Source prepared.
>>> Configuring source in /var/calculate/tmp/portage/app-misc/freefilesync-5.6/work ...
>>> Source configured.
>>> Compiling source in /var/calculate/tmp/portage/app-misc/freefilesync-5.6/work ...
make -j9
mkdir -p OBJ/FFS_Release_GCC_Make/
mkdir -p OBJ/FFS_Release_GCC_Make/
mkdir -p OBJ/FFS_Release_GCC_Make/
mkdir -p OBJ/FFS_Release_GCC_Make/
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
mkdir -p OBJ/FFS_Release_GCC_Make/
mkdir -p OBJ/FFS_Release_GCC_Make/
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
mkdir -p OBJ/FFS_Release_GCC_Make/ui/
mkdir -p OBJ/FFS_Release_GCC_Make/ui/
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
mkdir -p OBJ/FFS_Release_GCC_Make/ui/
x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe  -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-co$
In file included from lib/process_xml.h:12:0,
                 from application.h:11,
                 from application.cpp:7:
lib/xml_base.h:10:24: fatal error: zenxml/xml.h: No such file or directoryIn file included from lib/process_xml.h:12:0,
                 from comparison.h:12,
                 from comparison.cpp:7:
lib/xml_base.h:10:24: fatal error: zenxml/xml.h: No such file or directory
compilation terminated.

compilation terminated.
In file included from lib/process_xml.h:12:0,
                 from synchronization.h:12,
                 from synchronization.cpp:7:
lib/xml_base.h:10:24: fatal error: zenxml/xml.h: No such file or directory
compilation terminated.
make: *** [OBJ/FFS_Release_GCC_Make/comparison.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [OBJ/FFS_Release_GCC_Make/application.o] Error 1
make: *** [OBJ/FFS_Release_GCC_Make/synchronization.o] Error 1
 ^[[31;01m*^[[0m ERROR: app-misc/freefilesync-5.6 failed (compile phase):
 ^[[31;01m*^[[0m   emake failed
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the output of `emerge --info '=app-misc/freefilesync-5.6'`,
 ^[[31;01m*^[[0m the complete build log and the output of `emerge -pqv '=app-misc/freefilesync-5.6'`.
 ^[[31;01m*^[[0m This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 ^[[31;01m*^[[0m The complete build log is located at '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/temp/build.log'.
 ^[[31;01m*^[[0m The ebuild environment file is located at '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/temp/environment'.
 ^[[31;01m*^[[0m Working directory: '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/work'
 ^[[31;01m*^[[0m S: '/var/calculate/tmp/portage/app-misc/freefilesync-5.6/work'
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sun Jun 23, 2013 4:21 pm    Post subject: Reply with quote

That error "fatal error: zenxml/xml.h: No such file or directory." expects http://sourceforge.net/projects/zenxml/ to be installed on your system, which appears to not be in the Portage tree or any overlay. :(
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Sun Jun 23, 2013 9:45 pm    Post subject: Reply with quote

Nice!
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Sun Jun 23, 2013 11:31 pm    Post subject: Reply with quote

I tried downloading the source files of the latest version and followed the post from above to install from source but when I issue the command I get
Code:
./configure file not found


There is no configure file in the freefilesync archive.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sun Jun 23, 2013 11:57 pm    Post subject: Reply with quote

RexAtHighSpeed wrote:
I tried downloading the source files of the latest version and followed the post from above to install from source but when I issue the command I get
Code:
./configure file not found


There is no configure file in the freefilesync archive.


It gets made using `autoconf`, for more details see http://devmanual.gentoo.org/general-concepts/autotools/index.html
Back to top
View user's profile Send private message
foontala
n00b
n00b


Joined: 21 Jul 2005
Posts: 5

PostPosted: Wed Jun 26, 2013 12:03 pm    Post subject: zenxml ebuild and update FreeFileSync ebuild Reply with quote

Ok folks, using the information y'all provided I got us a little further. I'm not an expert ebuild writer, but I got part of this to work. It would be great for an expert to come clean this up so we could eventually submit something nice to the tree.

To get started,

First, I created a simple ebuild for zenxml that downloads and installs the zenxml headers into /usr/include/zenxml

Code:

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"

inherit eutils toolchain-funcs

MY_P="zenXml"

DESCRIPTION="Zen XML header c++ library"
HOMEPAGE=""
SRC_URI="mirror://sourceforge/project/${PN}/${MY_P}_v${PV}.zip"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="${DEPEND}"

S="${WORKDIR}"
D="/usr/include/"

src_install(){
        insinto /usr/include/zenxml
        doins -r "${S}/zen/" || die "Install failed!"
        doins -r "${S}/zenxml/" || die "Install failed!"
}



Next, I upgraded the ebuild to FreeFileSync5.16. No sense in playing with the older version because a lot has changed in the Makefile (for the better, but it still needs some work -- there are things like "Desktop/root", etc). The FreeFileSync author also changed the download filename from _source.zip to _Source.zip, so I made that fix in our new ebuild also.

You will need boost 1.53 for FreeFileSync to compile and work, however. Installing boost 1.53 required, for the amd64-desktop profile, to go into /usr/portage/profiles/package.mask and remove the hard mask on boost 1.53 which is there "for testing." Of course, when I tried to install it, it didn't work.

I had to edit the FreeFileSync Makefile in several places. The author of the original ebuild already included some sed commands for doing this with the old, 5.6 Makefile. I was going to modify the FreeFileSync ebuild to change the Makefile in the appropriate places, but when boost 1.53 didn't compile for me. I gave up for now.

Here is the top of the Makefile that "almost" worked for me after my changes. The only thing seems to be to get boost 1.53 to work. Hopefully someone can lend a hand!

Code:

BLAH_BLUBB_123=
#for some buggy reason the first row in the make file has no effect on Suse Linux! => make sure there's no important command
APPNAME     = FreeFileSync
prefix      = /usr
BINDIR      = $(DESTDIR)$(prefix)/bin
SHAREDIR    = $(DESTDIR)$(prefix)/share
APPSHAREDIR = $(SHAREDIR)/$(APPNAME)
DOCSHAREDIR = $(SHAREDIR)/doc/$(APPNAME)

CXXFLAGS  = -std=c++11 -Wall -pipe -O3 -DNDEBUG -DwxUSE_UNICODE -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" -include "zen/warn_static.h" -I/usr/include/wx-2.8 -I/usr/lib64/wx/include/gtk2-unicode-release-2.8
LINKFLAGS =

#distinguish Linux/OSX builds
OPERATING_SYSTEM_NAME := $(shell uname)

#################### Linux ############################
ifeq ($(OPERATING_SYSTEM_NAME), Linux)
COMPILER_BIN=x86_64-pc-linux-gnu-g++ -pthread
CXXFLAGS += -DFFS_LINUX

#Gtk - support recycler/icon loading/no button border/grid scrolling
CXXFLAGS  += `pkg-config --cflags gtk+-2.0`
LINKFLAGS += `pkg-config --libs   gtk+-2.0`

#support for SELinux (optional)
SELINUX_EXISTING=$(shell pkg-config --exists libselinux && echo YES)
ifeq ($(SELINUX_EXISTING),YES)
CXXFLAGS  += `pkg-config --cflags libselinux` -DHAVE_SELINUX
LINKFLAGS += `pkg-config --libs libselinux`
endif

#support for Ubuntu Unity (optional)
UNITY_EXISTING=$(shell pkg-config --exists unity && echo YES)
ifeq ($(UNITY_EXISTING),YES)
CXXFLAGS  += `pkg-config --cflags unity` -DHAVE_UBUNTU_UNITY
LINKFLAGS += `pkg-config --libs unity`
endif

ifeq ($(BUILD),Launchpad)
#default build/Launchpad
CXXFLAGS  += `wx-config --cxxflags      --debug=no`
LINKFLAGS += `wx-config --libs std, aui --debug=no` -lboost_thread -lboost_system -lz
else
#static wxWidgets and boost library linkage for precompiled release
WX_CONFIG_BIN =/usr/bin/wx-config
CXXFLAGS  += -I/usr/include/boost
BOOST_LIB_DIR =/usr/lib64

CXXFLAGS  += `$(WX_CONFIG_BIN) --cxxflags      --debug=no --static=no`
LINKFLAGS += `$(WX_CONFIG_BIN) --libs std, aui --debug=no --static=no` $(BOOST_LIB_DIR)/libboost_thread.a $(BOOST_LIB_DIR)/libboost_system.a -lX11
endif

endif
#################### OS X ############################
ifeq ($(OPERATING_SYSTEM_NAME), Darwin)
COMPILER_BIN=clanx86_64-pc-linux-gnu-g++ -stdlib=libc++
CXXFLAGS += -DFFS_MAC

WX_CONFIG_BIN =$(HOME)/Desktop/wxWidgets-2.9.4/lib/release/bin/wx-config
CXXFLAGS  += -I$(HOME)/Desktop/boost_1_53_0
BOOST_LIB_DIR =$(HOME)/Desktop/boost_1_53_0/stage/lib
MACOS_SDK     =-mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk

#-Wl,-Bstatic not supported on OSX!

# link wxWidgets and boost statically -> check dependencies with: otool -L FreeFileSync
CXXFLAGS  += $(MACOS_SDK) `$(WX_CONFIG_BIN) --cxxflags      --debug=no --static=yes`
LINKFLAGS += $(MACOS_SDK) `$(WX_CONFIG_BIN) --libs std, aui --debug=no --static=yes` $(BOOST_LIB_DIR)/libboost_thread.a $(BOOST_LIB_DIR)/libboost_system.a

endif
#####################################################################################################

CPP_LIST= #internal list of all *.cpp files needed for compilation
CPP_LIST+=algorithm.cpp
CPP_LIST+=application.cpp
CPP_LIST+=comparison.cpp
CPP_LIST+=structures.cpp
CPP_LIST+=synchronization.cpp
CPP_LIST+=file_hierarchy.cpp
CPP_LIST+=ui/custom_grid.cpp
CPP_LIST+=ui/folder_history_box.cpp
CPP_LIST+=ui/exec_finished_box.cpp
CPP_LIST+=ui/dir_name.cpp
CPP_LIST+=ui/batch_config.cpp
CPP_LIST+=ui/batch_status_handler.cpp
CPP_LIST+=ui/check_version.cpp
CPP_LIST+=ui/grid_view.cpp
CPP_LIST+=ui/tree_view.cpp
CPP_LIST+=ui/gui_generated.cpp
CPP_LIST+=ui/gui_status_handler.cpp
CPP_LIST+=ui/main_dlg.cpp
CPP_LIST+=ui/msg_popup.cpp
CPP_LIST+=ui/progress_indicator.cpp
CPP_LIST+=ui/search.cpp
CPP_LIST+=ui/small_dlgs.cpp
CPP_LIST+=ui/sync_cfg.cpp
CPP_LIST+=ui/taskbar.cpp
CPP_LIST+=ui/triple_splitter.cpp
CPP_LIST+=ui/tray_icon.cpp
CPP_LIST+=lib/binary.cpp
CPP_LIST+=lib/db_file.cpp
CPP_LIST+=lib/dir_lock.cpp
CPP_LIST+=lib/hard_filter.cpp
CPP_LIST+=lib/icon_buffer.cpp
CPP_LIST+=lib/localization.cpp
CPP_LIST+=lib/parallel_scan.cpp
CPP_LIST+=lib/process_xml.cpp
CPP_LIST+=lib/resolve_path.cpp
CPP_LIST+=lib/resources.cpp
CPP_LIST+=lib/perf_check.cpp
CPP_LIST+=lib/status_handler.cpp
CPP_LIST+=lib/versioning.cpp
CPP_LIST+=lib/ffs_paths.cpp
CPP_LIST+=lib/xml_base.cpp
CPP_LIST+=zen/recycler.cpp
CPP_LIST+=zen/file_handling.cpp
CPP_LIST+=zen/file_id.cpp
CPP_LIST+=zen/file_io.cpp
CPP_LIST+=zen/file_traverser.cpp
CPP_LIST+=zen/zstring.cpp
CPP_LIST+=zen/format_unit.cpp
CPP_LIST+=zen/process_priority.cpp
CPP_LIST+=wx+/grid.cpp
CPP_LIST+=wx+/button.cpp
CPP_LIST+=wx+/graph.cpp
CPP_LIST+=wx+/tooltip.cpp
CPP_LIST+=wx+/zlib_wrap.cpp

# OS X
ifeq ($(OPERATING_SYSTEM_NAME), Darwin)
MM_LIST= #objective C files
MM_LIST+=ui/osx_dock.mm
MM_LIST+=lib/osx_file_icon.mm
endif

#list of all *.o files
OBJECT_LIST =  $(CPP_LIST:%.cpp=OBJ/FFS_GCC_Make_Release/%.o)
OBJECT_LIST += $(MM_LIST:%.mm=OBJ/FFS_GCC_Make_Release/%.mm.o)

all: FreeFileSync

OBJ/FFS_GCC_Make_Release/%.mm.o : %.mm
   mkdir -p $(dir $@)
   $(COMPILER_BIN) $(CXXFLAGS) -c $< -o $@

OBJ/FFS_GCC_Make_Release/%.o : %.cpp
   mkdir -p $(dir $@)
   $(COMPILER_BIN) $(CXXFLAGS) -c $< -o $@

FreeFileSync: $(OBJECT_LIST)
   $(COMPILER_BIN) -o ./BUILD/$(APPNAME) $(OBJECT_LIST) $(LINKFLAGS)

clean:
   rm -rf OBJ/FFS_GCC_Make_Release
   rm -f BUILD/$(APPNAME)
   rm -f wx+/pch.h.gch

install:
   mkdir -p $(BINDIR)
   cp BUILD/$(APPNAME) $(BINDIR)

   mkdir -p $(APPSHAREDIR)
   cp -R BUILD/Languages/ \
   BUILD/Help/ \
   BUILD/Sync_Complete.wav \
   BUILD/Resources.zip \
   BUILD/styles.gtk_rc \
   $(APPSHAREDIR)

   mkdir -p $(DOCSHAREDIR)
   cp BUILD/Changelog.txt $(DOCSHAREDIR)/changelog
   gzip $(DOCSHAREDIR)/changelog


CXX="x86_64-pc-linux-gnu-g++"
Back to top
View user's profile Send private message
foontala
n00b
n00b


Joined: 21 Jul 2005
Posts: 5

PostPosted: Wed Jun 26, 2013 12:09 pm    Post subject: Reply with quote

PS: I downloaded the Debian binary package 64bit package, and it worked for me. I'd much rather compile, but at least it is a temporary fix.

However, after looking at the Makefile for FreeFileSync, I'm not convinced it will be better than "luckybackup," which is based on rsync. I'm trying to decide between freefilesync, luckybackup, and unison.

Unison isn't developed anymore, and luckybackup seems to depend on dates a little too much for my taste (that is, if one computer's clock is wrong, serious tragedy can occur!).

PPS: How the heck am I still a "n00b" if I've been here since 2005? :)
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Wed Jun 26, 2013 4:35 pm    Post subject: Reply with quote

This is why I love Gentoo - the community. Thank you so much for the work you've contributed foontala. Hopefully, someone will swoop in and fill in the blanks.

Hey, I've been here since 2002, posted 50 times and I'm still a noob. :roll: I actually still consider myself a noob because most of my linux experience has been on and off for the last 12 years. Then I found a way to make the software I use run in linux in half the time it takes in Windows. Since then I've been working hard in Gentoo and I have come a long way in the last several months. I think your ranking has to do with the number of posts you make.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Wed Jun 26, 2013 7:43 pm    Post subject: Reply with quote

You can file ebuilds, even those that aren't necessarily perfect, at https://bugs.gentoo.org for them to be added to the Portage tree; from having a quick view at the ebuild, apart from some very minor details it looks good.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Wed Jun 26, 2013 10:29 pm    Post subject: Re: zenxml ebuild and update FreeFileSync ebuild Reply with quote

foontala wrote:
Code:
RDEPEND="${DEPEND}"
Since you know that Boost is required, you should add DEPEND=">=dev-libs/boost-1.53" if it is required to build. If it is also required to run, then leave your RDEPEND statement. If Boost is only required for headers, but not at runtime, then you should set RDEPEND="".
foontala wrote:
Code:
S="${WORKDIR}"
D="/usr/include/"
Never reassign D. It will be set by the package manager to the correct value. Even if it were not, setting it to the live filesystem is wrong.
foontala wrote:
Code:
src_install(){
        insinto /usr/include/zenxml
        doins -r "${S}/zen/" || die "Install failed!"
        doins -r "${S}/zenxml/" || die "Install failed!"
}
For the convenience of users, it would be nice to use a die message that is specific to what failed.
foontala wrote:
Here is the top of the Makefile that "almost" worked for me after my changes. The only thing seems to be to get boost 1.53 to work. Hopefully someone can lend a hand!
This Makefile still has some quality control issues. They may be mistakes from upstream, but it would be a good idea to fix them here and send the changes back.
foontala wrote:
Code:

CXXFLAGS  = -std=c++11 -Wall -pipe -O3 -DNDEBUG -DwxUSE_UNICODE -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" -include "zen/warn_static.h" -I/usr/include/wx-2.8 -I/usr/lib64/wx/include/gtk2-unicode-release-2.8
Setting CXXFLAGS explicitly overrides the user's CXXFLAGS, so it should not be done.

Setting -std=c++11 will fail for <sys-devel/gcc-4.7. In some cases, you may be able to use older versions of gcc with C++11 mode by specifying -std=c++0x, but this depends on which C++11 features the program uses.

Forcing -O3 is a poor choice.

Using -I/usr/lib64... will work only on architectures that place their 64-bit libraries in /usr/lib64. On x86, that -I will have no effect. There are more amd64-specific problems later on.
foontala wrote:
Code:
COMPILER_BIN=x86_64-pc-linux-gnu-g++ -pthread

foontala wrote:
Code:
LINKFLAGS += `$(WX_CONFIG_BIN) --libs std, aui --debug=no --static=no` $(BOOST_LIB_DIR)/libboost_thread.a $(BOOST_LIB_DIR)/libboost_system.a -lX11

Static linking is discouraged.
foontala wrote:
Code:

FreeFileSync: $(OBJECT_LIST)
   $(COMPILER_BIN) -o ./BUILD/$(APPNAME) $(OBJECT_LIST) $(LINKFLAGS)
This should reference user $LDFLAGS.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Thu Jun 27, 2013 6:21 am    Post subject: Re: zenxml ebuild and update FreeFileSync ebuild Reply with quote

Hu wrote:
foontala wrote:
Code:
RDEPEND="${DEPEND}"
Since you know that Boost is required, you should add DEPEND=">=dev-libs/boost-1.53" if it is required to build. If it is also required to run, then leave your RDEPEND statement. If Boost is only required for headers, but not at runtime, then you should set RDEPEND="".
foontala wrote:
Code:
S="${WORKDIR}"
D="/usr/include/"
Never reassign D. It will be set by the package manager to the correct value. Even if it were not, setting it to the live filesystem is wrong.


Thank you for looking it through; on top of those I had these in mind: The Copyright can be 2013, the EAPI can be 5 and I am wondering if HOMEPAGE can be filled in.

Hu wrote:
foontala wrote:
Code:
src_install(){
        insinto /usr/include/zenxml
        doins -r "${S}/zen/" || die "Install failed!"
        doins -r "${S}/zenxml/" || die "Install failed!"
}
For the convenience of users, it would be nice to use a die message that is specific to what failed.


Users can see which line failed; also, ebuild functions die on their own since EAPI 4 so the die call is discouraged and can be removed.
Back to top
View user's profile Send private message
RexAtHighSpeed
n00b
n00b


Joined: 09 Nov 2002
Posts: 52
Location: Charlotte, NC

PostPosted: Thu Jun 27, 2013 6:08 pm    Post subject: Reply with quote

awesome
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Thu Jun 27, 2013 8:57 pm    Post subject: Re: zenxml ebuild and update FreeFileSync ebuild Reply with quote

TomWij wrote:
Users can see which line failed; also, ebuild functions die on their own since EAPI 4 so the die call is discouraged and can be removed.
True, assuming the failed build is posted in full. I suggested giving unique die lines in the hope that it might discourage new users from reporting that they have "the same problem" as a thread that is related only by way of both using die. Thanks for the reminder about the EAPI auto-die behavior.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum