Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some build warnings #2

Open
raveit65 opened this issue Mar 17, 2019 · 14 comments
Open

some build warnings #2

raveit65 opened this issue Mar 17, 2019 · 14 comments

Comments

@raveit65
Copy link

raveit65 commented Mar 17, 2019

During packaging a RPM i see that configure warnings

Configuring config.h using configuration
Compiler for C supports link arguments -Wl,--version-script,/home/rave/rpmbuild/BUILD/group-service-1.0.0/src/libgroupservice/symbol.map: YES
WARNING: Project targetting '>=0.46.0' but tried to use feature introduced in '0.50.0': install arg in configure_file
Configuring org.group.admin.service using configuration
Configuring group-admin-daemon.service using configuration
Build targets in project: 14
WARNING: Project specifies a minimum meson_version '>=0.46.0' but uses features which were added in newer versions:
 * 0.50.0: {'install arg in configure_file'}
Option buildtype is: plain [default: debugoptimized]

Can this be ignored?

@raveit65
Copy link
Author

During compiling i found only one warning

../src/util.c: In function 'setup_loginuid':
../src/util.c:233:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  233 |     write (fd, id, strlen (id));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

@yetist
Copy link

yetist commented Mar 17, 2019

Can this be ignored?

if meson >= 0.50.0, this can be ignored.
if meson >= 0.46.0 and meson <= 0.50.0, an error will occur.

meson <= 0.50.0 does not support this line:

install: true,

@zhuyaliang
Copy link
Owner

@yetist
Use version 1.1.0, which removes compilation warnings

@raveit65
Copy link
Author

raveit65 commented Mar 18, 2019

Thanks, using group-service-1.1.0 and user-admin-1.4.1 fixes all build issues.
I think for fedora 28 i need to lower if meson >= 0.50.0, meson-0.50 is currently only for f30 and f29 available.
But this i can do in spec file of rpm.

You are using a version for include dir, is this really needed?
from my spec file:

%files devel
%dir %{_includedir}/group-service-1.1/
%{_includedir}/group-service-1.1/libgroupservice/
%{_libdir}/libgroup-service.so
%{_libdir}/pkgconfig/group-service.pc

I think versions are only used for major version bumps, e.g. gtk-2/-3, by other packages.

/usr/include/gtk-2.0
/usr/include/gtk-3.0

If this is needed can you use full version, 1.1.0 ?
Than i can use the version rpm-macro in spec file to avoid editing the spec file for every new release.

%dir %{_includedir}/group-service-%{version}/
%{_includedir}/group-service-%{version}/libgroupservice/
%{_libdir}/libgroup-service.so
%{_libdir}/pkgconfig/group-service.pc

@zhuyaliang
Copy link
Owner

@raveit65 You're right. I don't use versions as included directories right now. group-service-1.0 will always be used as the top-level directory name in the future

@raveit65
Copy link
Author

I started a review for fedora https://bugzilla.redhat.com/show_bug.cgi?id=1690482

@raveit65
Copy link
Author

@zhuyaliang
Thank, for latest changes. Include dir is now.

%{_includedir}/group-service-1.0/

But it looks that shared libraries has also a soname bump.

%{_libdir}/libgroup-service.so.1
%{_libdir}/libgroup-service.so.1.1.0

better like this ?

%{_libdir}/libgroup-service.so.1
%{_libdir}/libgroup-service.so.1.0.0

See discussion in review request.
https://bugzilla.redhat.com/show_bug.cgi?id=1690482#c4

@eclipseo
Copy link

It's a minor soname bump, we only care about major soname bump.

@zhuyaliang
Copy link
Owner

@raveit65 @eclipseo Since the next version 1.1.1, the dynamic link library will have a fixed name of 1.0.0.

@raveit65
Copy link
Author

Cool, thanks for fixing that.

@raveit65
Copy link
Author

raveit65 commented Mar 25, 2019

if meson >= 0.50.0, this can be ignored.
if meson >= 0.46.0 and meson <= 0.50.0, an error will occur.

meson <= 0.50.0 does not support this line:
group-service/data/meson.build
Line 25 in 73c0fa9
install: true,

Fedora 28 ships only meson-0.47.2-1.fc28 and build fails for this reason.
https://koji.fedoraproject.org/koji/taskinfo?taskID=33759581
@zhuyaliang
Is there a workaround for this?

@raveit65
Copy link
Author

Or can i simply revert this change for building for meson-0.47.2

-  meson_version : '>=0.46.0',
+  meson_version : '>=0.50.0',

@raveit65
Copy link
Author

@zhuyaliang
Copy link
Owner

@raveit65 Thank you very much for your help。So let's keep the source file unchanged( meson_version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants