Bug 213311 - [NEW PORTS] ftp/fastdfs: open source high performance distributed file system (and supporting ports)
Summary: [NEW PORTS] ftp/fastdfs: open source high performance distributed file system...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-08 18:23 UTC by Daniel Ylitalo
Modified: 2016-10-27 08:12 UTC (History)
1 user (show)

See Also:


Attachments
Svn patch that creates the ports (37.87 KB, patch)
2016-10-08 18:23 UTC, Daniel Ylitalo
no flags Details | Diff
svn patch that creates the ports (38.42 KB, patch)
2016-10-09 09:25 UTC, Daniel Ylitalo
no flags Details | Diff
svn patch that creates the ports (38.59 KB, patch)
2016-10-12 11:07 UTC, Daniel Ylitalo
no flags Details | Diff
svn patch that creates the ports (38.36 KB, patch)
2016-10-21 10:40 UTC, Daniel Ylitalo
no flags Details | Diff
svn patch that creates the ports (38.25 KB, patch)
2016-10-21 12:43 UTC, Daniel Ylitalo
no flags Details | Diff
svn patch that creates the ports (38.26 KB, patch)
2016-10-21 12:52 UTC, Daniel Ylitalo
no flags Details | Diff
svn patch that creates the ports (38.28 KB, patch)
2016-10-24 07:48 UTC, Daniel Ylitalo
no flags Details | Diff
svn patch that creates the ports (38.28 KB, patch)
2016-10-26 12:22 UTC, Daniel Ylitalo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ylitalo 2016-10-08 18:23:42 UTC
Created attachment 175532 [details]
Svn patch that creates the ports

4 new ports that adds support for FastDFS
devel/libfastcommon
ftp/fastdfs
ftp/php56-fastdfs
ftp/php70-fastdfs

- All 4 ports needs to be commited together becasue they depend on each other
- All 4 ports passes poudriere testport
- All 4 ports builds without a problem on fbsd 10.3 and 11, haven't tried others
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2016-10-09 03:13:08 UTC
Make Summary more informative.

Note to submitter: these ports should really have a COMMENT= line after the MAINTAINER= line to be correct.  Since they were missing, I used something that would likely be the COMMENT text for the Summary.
Comment 2 Daniel Ylitalo 2016-10-09 09:25:32 UTC
Created attachment 175560 [details]
svn patch that creates the ports

Adding comments as pointed out by Mark
Comment 3 Daniel Ylitalo 2016-10-12 11:07:32 UTC
Created attachment 175657 [details]
svn patch that creates the ports
Comment 4 Daniel Ylitalo 2016-10-21 10:40:43 UTC
Created attachment 176012 [details]
svn patch that creates the ports

Changing a few things after pointers from gahr in #bsdports
Comment 5 Pietro Cerutti freebsd_committer freebsd_triage 2016-10-21 11:30:59 UTC
Please make sure that portlint -AC is mostly clear. Thanks!
Comment 6 Daniel Ylitalo 2016-10-21 12:43:21 UTC
Created attachment 176019 [details]
svn patch that creates the ports

portlint -AC fixes
Comment 7 Daniel Ylitalo 2016-10-21 12:44:37 UTC
They now pass portlint -AC without warnings except a false positive because I'm using "make.sh install" so it triggeres on the install part
Comment 8 Daniel Ylitalo 2016-10-21 12:52:27 UTC
Created attachment 176020 [details]
svn patch that creates the ports

sorry, uploaded the old patch and not the new one
Comment 9 Pietro Cerutti freebsd_committer freebsd_triage 2016-10-21 12:53:47 UTC
(In reply to Daniel Ylitalo from comment #7)
Could be modified to use ${INSTALL_TARGET}.. I'll do that
Comment 10 Pietro Cerutti freebsd_committer freebsd_triage 2016-10-21 13:18:01 UTC
Another thing, devel/libfastcommon doesn't respect PREFIX. I haven't checked the other ports.

Please make sure that whatever is installed in /usr/local uses ${PREFIX} instead.
Comment 11 Daniel Ylitalo 2016-10-24 07:48:33 UTC
Created attachment 176095 [details]
svn patch that creates the ports

Changed hardcoded /usr/local to $(PREFIX)
Comment 12 Pietro Cerutti freebsd_committer freebsd_triage 2016-10-24 08:22:01 UTC
Please install ports-mgmt/porttools and make sure to "port test" your ports.

The PREFIX vs. LOCALBASE issue isn't solved yet (try building ftp/fastdfs with a prefix != /usr/local).
Comment 13 Daniel Ylitalo 2016-10-26 09:08:20 UTC
Sorry but I am not seeing what you are seeing, when running test port it does install to PREFIX=/tmp/libfastcommon-1.0.30/ as expected?

This is unfortunately my first larger port, could you point out what I'm missing and I'll sort it out.
Comment 14 Pietro Cerutti freebsd_committer freebsd_triage 2016-10-26 09:18:05 UTC
Sorry, I meant "try building ftp/fastdfs with a prefix != localbase".

Basically, it's looking for dependencies in PREFIX (/tmp/fastdfs-5.0.8) instead of LOCALBASE (/usr/local):

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I/tmp/fastdfs-5.0.8/include/fastcommon
../common/fdfs_global.c:20:10: fatal error: 'logger.h' file not found
#include "logger.h"
         ^
1 error generated.
*** Error code 1

As you can see, -I/tmp/fastdfs-5.0.8/include/fastcommon should really be -I/usr/local/include/fastcommon
Comment 15 Daniel Ylitalo 2016-10-26 09:24:22 UTC
Aaaaah, so all compile includes should use LOCALBASE and all install paths should use PREFIX if I'm understanding you correctly?
Comment 16 Pietro Cerutti freebsd_committer freebsd_triage 2016-10-26 09:27:47 UTC
That is correct :)
Comment 17 Daniel Ylitalo 2016-10-26 12:22:51 UTC
Created attachment 176185 [details]
svn patch that creates the ports

Change so that includes uses LOCALBASE instead of PREFIX
Comment 18 Pietro Cerutti freebsd_committer freebsd_triage 2016-10-26 15:25:29 UTC
Alright, this is mostly fine, I have:

- removed BUILD_DEPENDS where they were duplicate of LIB_DEPENDS
- made sure that libfdfsclient.so has a soname

I'm now building the ports in poudriere (10 and 11, i386 and amd64). I hope they build on 9... I don't have any(more) jails on that version.
Comment 19 commit-hook freebsd_committer freebsd_triage 2016-10-27 05:49:57 UTC
A commit references this bug:

Author: gahr
Date: Thu Oct 27 05:49:12 UTC 2016
New revision: 424743
URL: https://svnweb.freebsd.org/changeset/ports/424743

Log:
  New ports: devel/libfastcommon, ftp/fastdfs, ftp/php(56|70)-fastdfs

  FastDFS is an open source high performance distributed file system (DFS).
  It's major functions include: file storing, file syncing and file accessing,
  and design for high capacity and load balance.

  WWW: https://github.com/happyfish100/fastdfs

  PR:		213311
  Submitted by:	Daniel Ylitalo <daniel@blodan.se>

Changes:
  head/GIDs
  head/UIDs
  head/devel/Makefile
  head/devel/libfastcommon/
  head/devel/libfastcommon/Makefile
  head/devel/libfastcommon/distinfo
  head/devel/libfastcommon/files/
  head/devel/libfastcommon/files/patch-make.sh
  head/devel/libfastcommon/files/patch-src_Makefile.in
  head/devel/libfastcommon/pkg-descr
  head/devel/libfastcommon/pkg-plist
  head/ftp/Makefile
  head/ftp/fastdfs/
  head/ftp/fastdfs/Makefile
  head/ftp/fastdfs/distinfo
  head/ftp/fastdfs/files/
  head/ftp/fastdfs/files/fdfs_storaged.in
  head/ftp/fastdfs/files/fdfs_trackerd.in
  head/ftp/fastdfs/files/patch-client-Makefile.in
  head/ftp/fastdfs/files/patch-conf-client.conf
  head/ftp/fastdfs/files/patch-conf-storage.conf
  head/ftp/fastdfs/files/patch-conf-tracker.conf
  head/ftp/fastdfs/files/patch-make.sh
  head/ftp/fastdfs/files/patch-storage-Makefile.in
  head/ftp/fastdfs/files/patch-tracker-Makefile.in
  head/ftp/fastdfs/pkg-descr
  head/ftp/fastdfs/pkg-plist
  head/ftp/php56-fastdfs/
  head/ftp/php56-fastdfs/Makefile
  head/ftp/php56-fastdfs/distinfo
  head/ftp/php56-fastdfs/files/
  head/ftp/php56-fastdfs/files/patch-config.m4
  head/ftp/php56-fastdfs/pkg-descr
  head/ftp/php56-fastdfs/pkg-message
  head/ftp/php70-fastdfs/
  head/ftp/php70-fastdfs/Makefile
  head/ftp/php70-fastdfs/distinfo
  head/ftp/php70-fastdfs/files/
  head/ftp/php70-fastdfs/files/patch-config.m4
  head/ftp/php70-fastdfs/pkg-descr
  head/ftp/php70-fastdfs/pkg-message
Comment 20 Daniel Ylitalo 2016-10-27 08:12:22 UTC
Thanks for all the help!