Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532514 - net-fs/nfs-utils-1.3.0-r1: add support for building against sys-libs/musl
Summary: net-fs/nfs-utils-1.3.0-r1: add support for building against sys-libs/musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard: hardened-dev overlay, musl branch
Keywords: PATCH
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2014-12-13 21:45 UTC by DaggyStyle
Modified: 2016-06-14 04:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-Add-string.h-to-source-files-that-need-it.patch (0001-Add-string.h-to-source-files-that-need-it.patch,2.02 KB, patch)
2014-12-13 21:46 UTC, DaggyStyle
Details | Diff
0001-conffile-use-standard-uint-_t-and-unsigned-char.patch (0001-conffile-use-standard-uint-_t-and-unsigned-char.patch,2.25 KB, patch)
2014-12-13 21:47 UTC, DaggyStyle
Details | Diff
0001-fix_queue_h_include.patch (0001-fix_queue_h_include.patch,1.04 KB, patch)
2014-12-13 21:47 UTC, DaggyStyle
Details | Diff
0002-Fix-header-include-for-definition-of-NULL.patch (0002-Fix-header-include-for-definition-of-NULL.patch,736 bytes, patch)
2014-12-13 21:47 UTC, DaggyStyle
Details | Diff
0002-mountd-talk-to-kernel-using-file-descriptors-instead.patch (0002-mountd-talk-to-kernel-using-file-descriptors-instead.patch,17.95 KB, patch)
2014-12-13 21:48 UTC, DaggyStyle
Details | Diff
0003-replace-__attribute_malloc__-with-the-more-portable-.patch (0003-replace-__attribute_malloc__-with-the-more-portable-.patch,6.66 KB, patch)
2014-12-13 21:48 UTC, DaggyStyle
Details | Diff
0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch (0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch,2.09 KB, patch)
2014-12-13 21:48 UTC, DaggyStyle
Details | Diff
0004-nfsexport-talk-to-kernel-using-file-descriptors-inst.patch (0004-nfsexport-talk-to-kernel-using-file-descriptors-inst.patch,3.72 KB, patch)
2014-12-13 21:49 UTC, DaggyStyle
Details | Diff
0005-exportfs-define-_GNU_SOURCE-for-stat64.patch (0005-exportfs-define-_GNU_SOURCE-for-stat64.patch,687 bytes, patch)
2014-12-13 21:49 UTC, DaggyStyle
Details | Diff
0005-nfslib-remove-now-unused-FILE-helpers.patch (0005-nfslib-remove-now-unused-FILE-helpers.patch,4.55 KB, patch)
2014-12-13 21:49 UTC, DaggyStyle
Details | Diff
0006-mountd-define-_GNU_SOURCE-for-statfs64-and-use-stand.patch (0006-mountd-define-_GNU_SOURCE-for-statfs64-and-use-stand.patch,988 bytes, patch)
2014-12-13 21:49 UTC, DaggyStyle
Details | Diff
0007-nfsstat-replace-the-legacy-SA_ONESHOT-with-standard-.patch (0007-nfsstat-replace-the-legacy-SA_ONESHOT-with-standard-.patch,753 bytes, patch)
2014-12-13 21:49 UTC, DaggyStyle
Details | Diff
0009-gssd-talk-to-kernel-using-file-descriptors-instead-o.patch (0009-gssd-talk-to-kernel-using-file-descriptors-instead-o.patch,5.65 KB, patch)
2014-12-13 21:50 UTC, DaggyStyle
Details | Diff
0010-fix_missing_basename_header.patch (0010-fix_missing_basename_header.patch,877 bytes, patch)
2014-12-13 21:50 UTC, DaggyStyle
Details | Diff
0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch (0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch,1.02 KB, patch)
2014-12-13 21:50 UTC, DaggyStyle
Details | Diff
0012_add_strings_header_to_missing_src_files.patch (0012_add_strings_header_to_missing_src_files.patch,274 bytes, patch)
2014-12-13 21:50 UTC, DaggyStyle
Details | Diff
musl-getservbyport.patch (musl-getservbyport.patch,457 bytes, patch)
2014-12-13 21:51 UTC, DaggyStyle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description DaggyStyle 2014-12-13 21:45:48 UTC
this hefty patchset allows net-fs/nfs-utils-1.3.0-r1 to be build against musl libc

this patchset isn't intended for inclusion to official portage tree, it is intended for the musl branch in the hardened-dev overlay.

Reproducible: Always
Comment 1 DaggyStyle 2014-12-13 21:46:33 UTC
Created attachment 391610 [details, diff]
0001-Add-string.h-to-source-files-that-need-it.patch
Comment 2 DaggyStyle 2014-12-13 21:47:03 UTC
Created attachment 391612 [details, diff]
0001-conffile-use-standard-uint-_t-and-unsigned-char.patch
Comment 3 DaggyStyle 2014-12-13 21:47:43 UTC
Created attachment 391614 [details, diff]
0001-fix_queue_h_include.patch
Comment 4 DaggyStyle 2014-12-13 21:47:58 UTC
Created attachment 391616 [details, diff]
0002-Fix-header-include-for-definition-of-NULL.patch
Comment 5 DaggyStyle 2014-12-13 21:48:14 UTC
Created attachment 391618 [details, diff]
0002-mountd-talk-to-kernel-using-file-descriptors-instead.patch
Comment 6 DaggyStyle 2014-12-13 21:48:33 UTC
Created attachment 391620 [details, diff]
0003-replace-__attribute_malloc__-with-the-more-portable-.patch
Comment 7 DaggyStyle 2014-12-13 21:48:49 UTC
Created attachment 391622 [details, diff]
0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch
Comment 8 DaggyStyle 2014-12-13 21:49:02 UTC
Created attachment 391624 [details, diff]
0004-nfsexport-talk-to-kernel-using-file-descriptors-inst.patch
Comment 9 DaggyStyle 2014-12-13 21:49:17 UTC
Created attachment 391626 [details, diff]
0005-exportfs-define-_GNU_SOURCE-for-stat64.patch
Comment 10 DaggyStyle 2014-12-13 21:49:35 UTC
Created attachment 391628 [details, diff]
0005-nfslib-remove-now-unused-FILE-helpers.patch
Comment 11 DaggyStyle 2014-12-13 21:49:46 UTC
Created attachment 391630 [details, diff]
0006-mountd-define-_GNU_SOURCE-for-statfs64-and-use-stand.patch
Comment 12 DaggyStyle 2014-12-13 21:49:59 UTC
Created attachment 391632 [details, diff]
0007-nfsstat-replace-the-legacy-SA_ONESHOT-with-standard-.patch
Comment 13 DaggyStyle 2014-12-13 21:50:10 UTC
Created attachment 391634 [details, diff]
0009-gssd-talk-to-kernel-using-file-descriptors-instead-o.patch
Comment 14 DaggyStyle 2014-12-13 21:50:24 UTC
Created attachment 391636 [details, diff]
0010-fix_missing_basename_header.patch
Comment 15 DaggyStyle 2014-12-13 21:50:40 UTC
Created attachment 391638 [details, diff]
0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
Comment 16 DaggyStyle 2014-12-13 21:50:52 UTC
Created attachment 391640 [details, diff]
0012_add_strings_header_to_missing_src_files.patch
Comment 17 DaggyStyle 2014-12-13 21:51:07 UTC
Created attachment 391642 [details, diff]
musl-getservbyport.patch
Comment 18 DaggyStyle 2014-12-13 21:52:26 UTC
the following patches are taken from alpine linux:
0001-Add-string.h-to-source-files-that-need-it.patch                            
0001-conffile-use-standard-uint-_t-and-unsigned-char.patch                      
0002-Fix-header-include-for-definition-of-NULL.patch                            0002-mountd-talk-to-kernel-using-file-descriptors-instead.patch                 0003-replace-__attribute_malloc__-with-the-more-portable-.patch                 0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch                 0004-nfsexport-talk-to-kernel-using-file-descriptors-inst.patch                 0005-exportfs-define-_GNU_SOURCE-for-stat64.patch                               0005-nfslib-remove-now-unused-FILE-helpers.patch                                0006-mountd-define-_GNU_SOURCE-for-statfs64-and-use-stand.patch                 0007-nfsstat-replace-the-legacy-SA_ONESHOT-with-standard-.patch                 0009-gssd-talk-to-kernel-using-file-descriptors-instead-o.patch                 0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch                     musl-getservbyport.patch

some of them needed to undergo some adjustments
Comment 19 Anthony Basile gentoo-dev 2015-01-03 16:31:15 UTC
(In reply to DaggyStyle from comment #18)
> the following patches are taken from alpine linux:
> 0001-Add-string.h-to-source-files-that-need-it.patch                        
> 
> 0001-conffile-use-standard-uint-_t-and-unsigned-char.patch                  
> 
> 0002-Fix-header-include-for-definition-of-NULL.patch                        
> 0002-mountd-talk-to-kernel-using-file-descriptors-instead.patch             
> 0003-replace-__attribute_malloc__-with-the-more-portable-.patch             
> 0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch             
> 0004-nfsexport-talk-to-kernel-using-file-descriptors-inst.patch             
> 0005-exportfs-define-_GNU_SOURCE-for-stat64.patch                           
> 0005-nfslib-remove-now-unused-FILE-helpers.patch                            
> 0006-mountd-define-_GNU_SOURCE-for-statfs64-and-use-stand.patch             
> 0007-nfsstat-replace-the-legacy-SA_ONESHOT-with-standard-.patch             
> 0009-gssd-talk-to-kernel-using-file-descriptors-instead-o.patch             
> 0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch                 
> musl-getservbyport.patch
> 
> some of them needed to undergo some adjustments

Can you make this into a single patch against hardened-dev::musl overlay.
Comment 20 SpanKY gentoo-dev 2015-02-24 16:12:33 UTC
there's an upstream mailing list that the maintainers watch.  these patches really should get sent there.
Comment 21 Felix Janda 2015-02-25 18:18:28 UTC
Most of the patches are already upstream. The alpine linux distribution
is based on musl libc and, for version 1.3.2, uses only 3 patches:

http://git.alpinelinux.org/cgit/aports/tree/main/nfs-utils
Comment 22 SpanKY gentoo-dev 2016-06-05 21:22:13 UTC
if everything is upstream now then, we're all set :)

1.3.3 is in the tree now
Comment 23 Felix Janda 2016-06-14 04:29:09 UTC
It's not the case that all of the patches are upstream, just *most* of
them. At least

0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
musl-getservbyport.patch

are still necessary.