Bug 196002 - www/tengine 2.0.3_4: build fails on 9.3-RELEASE
Summary: www/tengine 2.0.3_4: build fails on 9.3-RELEASE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Bartek Rutkowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-15 21:58 UTC by iron.udjin
Modified: 2015-03-02 17:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iron.udjin 2014-12-15 21:58:39 UTC
Trying to build:

=> SHA256 Checksum OK for nginx_upload_module-2.2.0.tar.gz.
=> SHA256 Checksum OK for masterzen-nginx-upload-progress-module-v0.9.0-0-ga788dea.tar.gz.
===>  Patching for tengine-2.0.3_4
===>  Applying FreeBSD patches for tengine-2.0.3_4
patch: **** can't cd to /usr/ports/www/tengine/work/alibaba-tengine-5272608: No such file or directory
=> Patch patch-conf-nginx.conf failed to apply cleanly.
*** [do-patch] Error code 1

Stop in /usr/ports/www/tengine.
*** [build] Error code 1

P.S: There is no alibaba-tengine-5272608 in "work" directory.
Comment 1 Bartek Rutkowski freebsd_committer freebsd_triage 2014-12-17 18:01:53 UTC
Hi,

That's strange, because I've tested the current ports version and it seems to build just fine in my poudriere:

http://pd.valinor.palantiri.org/data/latest-per-pkg/tengine/2.0.3_4/

Would you have any fresh installation of updated 9.3 system where you could test it aside from the system where it seems to be failing?

Kind regards,
Bartek Rutkowski
Comment 2 iron.udjin 2014-12-19 20:15:09 UTC
Currently my version is 9.3-RELEASE-p5. It was updated from 8/4-RELEASE.
Unfortunately I don't have fresh installation. How can I debug build process? What should I run?
Comment 3 Bartek Rutkowski freebsd_committer freebsd_triage 2014-12-19 23:28:14 UTC
You could try installing fresh 9.3 system in a VirtualBox virtual machine either on your laptop/desktop either on your server, or you could create new 9.3 jail (make sure to do the fresh 'installation' from the network) and test its build inside, or, at the end, you could use Poudriere to create such jail for you and test the build using Poudriere.

Kind regards,
Bartek Rutkowski
Comment 4 iron.udjin 2014-12-21 11:57:22 UTC
I just tried to install on another server with 10.1-STABLE r275975M. Here is output:


===>  Cleaning for tengine-2.0.3_4
===>  License BSD2CLAUSE accepted by the user
===>  Found saved configuration for tengine-2.0.3_4
===>   tengine-2.0.3_4 depends on file: /usr/local/sbin/pkg - found
=> giom-nginx_accept_language_module-2f69842.tar.gz doesn't seem to exist in /usr/ports/distfiles//.
=> Attempting to fetch https://github.com/giom/nginx_accept_language_module/tarball/master/giom-nginx_accept_language_module-2f69842.tar.gz
fetch: https://github.com/giom/nginx_accept_language_module/tarball/master/giom-nginx_accept_language_module-2f69842.tar.gz: size unknown
fetch: https://github.com/giom/nginx_accept_language_module/tarball/master/giom-nginx_accept_language_module-2f69842.tar.gz: size of remote file is not known
giom-nginx_accept_language_module-2f69842.tar.        3399  B   47 MBps 00m00s
=> agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz doesn't seem to exist in /usr/ports/distfiles//.
=> Attempting to fetch https://github.com/agentzh/set-misc-nginx-module/tarball/v0.23/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz
fetch: https://github.com/agentzh/set-misc-nginx-module/tarball/v0.23/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz: size unknown
fetch: https://github.com/agentzh/set-misc-nginx-module/tarball/v0.23/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz: size of remote file is not known
agentzh-set-misc-nginx-module-v0.23-0-g6ce586e          39 kB  187 kBps 00m00s
=> Fetched file size mismatch (expected 40355, actual 40336)
=> Trying next site
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles// and try again.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/tengine
*** Error code 1

I couldn't find agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz to download.

P.S: I see there is Tengine-2.1.0 released. Could you please update port?
Comment 5 iron.udjin 2014-12-21 12:02:35 UTC
I downloaded by hends https://github.com/agentzh/set-misc-nginx-module/tarball/v0.23/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz and here is output:

===>  License BSD2CLAUSE accepted by the user
===>  Found saved configuration for tengine-2.0.3_4
===>   tengine-2.0.3_4 depends on file: /usr/local/sbin/pkg - found
=> agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz doesn't seem to exist in /usr/ports/distfiles//.
=> Attempting to fetch https://github.com/agentzh/set-misc-nginx-module/tarball/v0.23/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz
fetch: https://github.com/agentzh/set-misc-nginx-module/tarball/v0.23/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz: size mismatch: expected 40355, actual 40336
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles// and try again.
*** Error code 1

It seems size mismatch.
Comment 6 iron.udjin 2014-12-21 12:06:06 UTC
Ok, go further. I downloaded agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz, put it in /usr/ports/distfiles, ran "make makesum" in /usr/ports/www/tengine folder and got the same:

===>  Patching for tengine-2.0.3_4
===>  Applying extra patch /usr/ports/www/tengine/files/extra-patch-agentzh-set-misc-nginx-module-config
patch: **** can't cd to /usr/ports/www/tengine/work/alibaba-tengine-5272608: No such file or directory
*** Error code 2
Comment 7 commit-hook freebsd_committer freebsd_triage 2015-02-20 17:23:23 UTC
A commit references this bug:

Author: robak
Date: Fri Feb 20 17:22:30 UTC 2015
New revision: 379453
URL: https://svnweb.freebsd.org/changeset/ports/379453

Log:
  www/tengine: multiple fixes

  - Fix building issue when using custom port options
  - Fix problem with agentzh modules moved by upstream to openresty repo
  - Convert to @dir usage
  - Add LICENSE FILE
  - Pet portlint

  PR:		196002

Changes:
  head/www/tengine/Makefile
  head/www/tengine/distinfo
  head/www/tengine/files/extra-patch-agentzh-set-misc-nginx-module-config
  head/www/tengine/files/extra-patch-openresty-set-misc-nginx-module-config
  head/www/tengine/pkg-plist
Comment 8 Bartek Rutkowski freebsd_committer freebsd_triage 2015-02-20 17:27:42 UTC
Thanks for your problem report! The issue was with upstream moving agentzh modules to new repo and the standard testing wasnt able to discover it, because those are not chosen in default port options.

I've just committed fix to that and some other problems found in the port.

Kind regards,
Bartek Rutkowski
Comment 9 commit-hook freebsd_committer freebsd_triage 2015-03-02 17:15:26 UTC
A commit references this bug:

Author: robak
Date: Mon Mar  2 17:14:43 UTC 2015
New revision: 380276
URL: https://svnweb.freebsd.org/changeset/ports/380276

Log:
  MFH: r379453

  www/tengine: multiple fixes

  - Fix building issue when using custom port options
  - Fix problem with agentzh modules moved by upstream to openresty repo
  - Convert to @dir usage
  - Add LICENSE FILE
  - Pet portlint

  PR:		196002
  Approved by:	portmgr

Changes:
_U  branches/2015Q1/
  branches/2015Q1/www/tengine/Makefile
  branches/2015Q1/www/tengine/distinfo
  branches/2015Q1/www/tengine/files/extra-patch-agentzh-set-misc-nginx-module-config
  branches/2015Q1/www/tengine/files/extra-patch-openresty-set-misc-nginx-module-config
  branches/2015Q1/www/tengine/pkg-plist