Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Please, help me with ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 779

PostPosted: Mon Apr 20, 2015 4:24 am    Post subject: Please, help me with ebuild Reply with quote

I wrote ebuild for sys-fs/xfsprogs-9999, it was modified from sys-fs/xfsprogs-3.2.2. It builds and works fine, but I got some QA Notice.
I publish ebuild and QA Notice here.
How should ebuild be modified?
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Apr 20, 2015 5:32 am    Post subject: Reply with quote

Insecure RUNPATH is something that needs to be corrected with a patch to the build-system, most likely configure.ac (or configure.in if it's older.)

The best place to get advice on that is ##workingset on IRC: chat.freenode.org

Do you get the same QA warning with the in-tree ebuild? If not, that gives you a point to see what's changed.
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 779

PostPosted: Mon Apr 20, 2015 5:55 am    Post subject: Reply with quote

No, there is no QA notice with the in-tree ebuild.
The point is that ebuild was slightly modified to be as close as possible to the in-tree ebuild.
configure.ac is the same in 3.2.2 and git.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Thu Apr 30, 2015 2:00 am    Post subject: Reply with quote

OK, quick fix is likely to be: run chrpath (as we install libs into a standard location.)

Have a good read of this webpage, and associated links.
You'll see you want to run:
Code:
readelf --dynamic /path/to/prog | grep -F PATH
in the first instance.

Then ask for more help in ##workingset, if you want to get this done in a reasonable timeframe.
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 779

PostPosted: Sun May 10, 2015 1:12 pm    Post subject: Reply with quote

steveL, i ran
Code:
readelf --dynamic
for problem files, but there were no output
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Wed May 13, 2015 4:42 pm    Post subject: Reply with quote

I'd ask in #gentoo-dev-help on IRC: chat.freenode.org, and ##workingset for the underlying utils. lddtree and ldd come to mind, but it's hard to help via ping-pong on a forum.
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 779

PostPosted: Fri May 15, 2015 11:23 am    Post subject: Reply with quote

steveL, i joined IRC, asked, but no reply. Only igli tried to help, but he didn't find out why QA noticed about errors, in his opinion it's falss alarm.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri May 15, 2015 12:37 pm    Post subject: Reply with quote

Heh I'm igli ;)

As I said, I don't recall the variable to set; asking in #gentoo-dev-help again, though really we need to fix the check.

BTW, when it comes to IRC, you need to hang around for a few hours, especially in places like ##workingset where most of the regulars are professionals, and lag times are large. (That's why "If you need help then WAIT for an answer." is in the /topic.)

I was a bit confused as to why there's no dynamic section, but we resolved that on IRC; there is, it just doesn't have any *PATH settings (hence: fix the check, or resolve what's going on precisely.)

edit: man 5 ebuild lists the "QA Control Variables" (thanks idella4 :)
I'm still stumped as to which check this is (or at least which var to set), and as to why it's triggering.

Saving off your pastes, there's no *PATH in any:
Code:
$ readelf -d /sbin/xfs_repair

Dynamic section at offset 0x39dc8 contains 30 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libxfs.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libxlog.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libuuid.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000015 (DEBUG)              0x0
 0x000000000000000c (INIT)               0x403aa0
 0x000000000000000d (FINI)               0x429954
 0x0000000000000019 (INIT_ARRAY)         0x639db0
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x639db8
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x4002b0
 0x0000000000000005 (STRTAB)             0x4017f0
 0x0000000000000006 (SYMTAB)             0x400470
 0x000000000000000a (STRSZ)              3507 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x63a000
 0x0000000000000002 (PLTRELSZ)           4080 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x402ab0
 0x0000000000000007 (RELA)               0x4027f8
 0x0000000000000008 (RELASZ)             696 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x402748
 0x000000006fffffff (VERNEEDNUM)         4
 0x000000006ffffff0 (VERSYM)             0x4025a4
 0x0000000000000000 (NULL)               0x0

Code:
$ readelf -d /lib64/libxfs.so.0

Dynamic section at offset 0x50cc8 contains 27 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000e (SONAME)             Library soname: [libxfs.so.0]
 0x000000000000000c (INIT)               0xac60
 0x000000000000000d (FINI)               0x43760
 0x0000000000000019 (INIT_ARRAY)         0x250890
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x250898
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x1c8
 0x0000000000000005 (STRTAB)             0x4b68
 0x0000000000000006 (SYMTAB)             0x1970
 0x000000000000000a (STRSZ)              9890 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000003 (PLTGOT)             0x251000
 0x0000000000000002 (PLTRELSZ)           10248 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x8458
 0x0000000000000007 (RELA)               0x76a8
 0x0000000000000008 (RELASZ)             3504 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x7638
 0x000000006fffffff (VERNEEDNUM)         2
 0x000000006ffffff0 (VERSYM)             0x720a
 0x000000006ffffff9 (RELACOUNT)          102
 0x0000000000000000 (NULL)               0x0

Code:
$ readelf -d /lib64/libxlog.so.0

Dynamic section at offset 0x3da8 contains 29 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libuuid.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libxfs.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000e (SONAME)             Library soname: [libxlog.so.0]
 0x000000000000000c (INIT)               0xf10
 0x000000000000000d (FINI)               0x335c
 0x0000000000000019 (INIT_ARRAY)         0x203d90
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x203d98
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x1c8
 0x0000000000000005 (STRTAB)             0x778
 0x0000000000000006 (SYMTAB)             0x2e0
 0x000000000000000a (STRSZ)              740 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000003 (PLTGOT)             0x204000
 0x0000000000000002 (PLTRELSZ)           720 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0xc40
 0x0000000000000007 (RELA)               0xb20
 0x0000000000000008 (RELASZ)             288 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0xac0
 0x000000006fffffff (VERNEEDNUM)         2
 0x000000006ffffff0 (VERSYM)             0xa5c
 0x000000006ffffff9 (RELACOUNT)          3
 0x0000000000000000 (NULL)               0x0
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 779

PostPosted: Sat Jun 13, 2015 6:39 am    Post subject: Reply with quote

i got progress. now QA notice is the same as for version in tree
Code:
Auto fixing rpaths for /tmp/portage/sys-fs/xfsprogs-9999/image/usr/sbin/xfs_quota
Auto fixing rpaths for /tmp/portage/sys-fs/xfsprogs-9999/image/usr/sbin/xfs_mdrestore
Auto fixing rpaths for /tmp/portage/sys-fs/xfsprogs-9999/image/usr/sbin/xfs_fsr

 * QA Notice: The following files contain insecure RUNPATHs
 *  Please file a bug about this at http://bugs.gentoo.org/
 *  with the maintaining herd of the package.
 *   /tmp/portage/sys-fs/xfsprogs-9999/image/usr/sbin/xfs_quota
 *   /tmp/portage/sys-fs/xfsprogs-9999/image/usr/sbin/xfs_mdrestore
 *   /tmp/portage/sys-fs/xfsprogs-9999/image/usr/sbin/xfs_fsr
 *

making executable: lib64/libxfs.so.0.0.0
making executable: lib64/libxlog.so.0.0.0
making executable: usr/lib64/libhandle.so.1.0.3
making executable: usr/lib64/libxcmd.so.0.0.0
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/sbin/xfs_copy
   usr/sbin/xfs_logprint
   usr/sbin/xfs_estimate
   sbin/mkfs.xfs
   usr/sbin/xfs_growfs
   usr/sbin/xfs_mdrestore
   usr/sbin/xfs_io
   usr/sbin/xfs_fsr
   usr/sbin/xfs_quota
   usr/sbin/xfs_rtcp
   sbin/xfs_repair
   usr/sbin/xfs_db
   lib64/libxlog.so.0.0.0
   usr/lib64/libxcmd.so.0.0.0
   lib64/libxfs.so.0.0.0
   usr/lib64/libhandle.so.1.0.3
ecompressdir: bzip2 -9 /usr/share/man
ecompressdir: bzip2 -9 /usr/share/doc
>>> Done.


Code:
Auto fixing rpaths for /tmp/portage/sys-fs/xfsprogs-3.2.3/image/usr/sbin/xfs_quota
Auto fixing rpaths for /tmp/portage/sys-fs/xfsprogs-3.2.3/image/usr/sbin/xfs_mdrestore
Auto fixing rpaths for /tmp/portage/sys-fs/xfsprogs-3.2.3/image/usr/sbin/xfs_fsr

 * QA Notice: The following files contain insecure RUNPATHs
 *  Please file a bug about this at http://bugs.gentoo.org/
 *  with the maintaining herd of the package.
 *   /tmp/portage/sys-fs/xfsprogs-3.2.3/image/usr/sbin/xfs_quota
 *   /tmp/portage/sys-fs/xfsprogs-3.2.3/image/usr/sbin/xfs_mdrestore
 *   /tmp/portage/sys-fs/xfsprogs-3.2.3/image/usr/sbin/xfs_fsr
 *

making executable: lib64/libxfs.so.0.0.0
making executable: lib64/libxlog.so.0.0.0
making executable: usr/lib64/libhandle.so.1.0.3
making executable: usr/lib64/libxcmd.so.0.0.0
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/sbin/xfs_estimate
   usr/sbin/xfs_copy
   usr/sbin/xfs_io
   sbin/mkfs.xfs
   sbin/xfs_repair
   usr/sbin/xfs_fsr
   usr/sbin/xfs_growfs
   usr/sbin/xfs_mdrestore
   usr/sbin/xfs_rtcp
   usr/sbin/xfs_logprint
   usr/sbin/xfs_quota
   usr/sbin/xfs_db
   lib64/libxfs.so.0.0.0
   lib64/libxlog.so.0.0.0
   usr/lib64/libxcmd.so.0.0.0
   usr/lib64/libhandle.so.1.0.3
ecompressdir: bzip2 -9 /usr/share/man
ecompressdir: bzip2 -9 /usr/share/doc
>>> Done.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Jun 29, 2015 1:42 am    Post subject: Reply with quote

Perfect Gentleman wrote:
i got progress. now QA notice is the same as for version in tree

Yay :-)

Wanted to check, did you try lddtree on the files mentioned?
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 779

PostPosted: Mon Jun 29, 2015 4:33 am    Post subject: Reply with quote

steveL wrote:

Wanted to check, did you try lddtree on the files mentioned?

No, I didn't try 'lddtree'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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